diff --git a/CHANGELOG.md b/CHANGELOG.md index 246cd7059f3..33c93b4b9a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.32.0] - 2023-10-24 + +- SDK is compatible with trimming(https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/2174) +- Latest metadata updates from 24th October 2023. + ## [5.31.0] - 2023-10-19 - Latest metadata updates from 17th October 2023. diff --git a/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs index 0a64f612d21..64e84b7af90 100644 --- a/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AdminRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs index 69972340d1b..baf53f1ce52 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdgeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs index 3685250e4d3..d360239c26c 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Inter UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InternetExplorerModeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs index a5cd12d2046..e53a3af0450 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs index dcfd0d4e34a..4ca4835b2c2 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(BrowserSiteList body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BrowserSiteListItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs index ffa14b298c6..2f0b7a6648a 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs @@ -75,7 +75,7 @@ public static PublishPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"revision", n => { Revision = n.GetStringValue(); } }, {"sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("revision", Revision); writer.WriteCollectionOfObjectValues("sharedCookies", SharedCookies); diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs index 886844ae444..66ed62a2d28 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(PublishPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PublishRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs index fe853443cd3..9d13be4486a 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs index 659ed428008..7bb5e4bf2a6 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(BrowserSharedCookie body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs index bec918931da..85da1405f27 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BrowserSharedCookie body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedCookiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs index 0aaf777d464..aa046762c51 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs index d0ded69f22d..17d18178f3d 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(BrowserSite body, Action diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs index 8091c67d7b7..32a64495f41 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BrowserSite body, Action diff --git a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs index 47118f8ffb7..d0153915ce9 100644 --- a/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BrowserSiteList body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SiteListsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/People/PeopleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/People/PeopleRequestBuilder.cs index d6c692e0efb..252a8210e62 100644 --- a/src/Microsoft.Graph/Generated/Admin/People/PeopleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/People/PeopleRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(PeopleAdminSettings body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PeopleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs index 7a2065c259a..9136d90a8f9 100644 --- a/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs index 88e08a99f02..ad22eb37a99 100644 --- a/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ProfileCardProperty body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProfileCardPropertyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs index ab7f410ef41..8553c91174c 100644 --- a/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ProfileCardProperty body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProfileCardPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs index cef8985507c..687f81dae7e 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs index 800bcc675f3..5404403a090 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ServiceHealth body, Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs index e46a1cb6ad3..964cfd797ef 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs index 046baa49bfb..9c2f3c4f523 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IssuesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs index d43aaf9bcad..6f250e4faca 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs index 05a63494cca..d0884ae0aa8 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceHealthIssueItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs index 9a8be75c600..1254cc0145e 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ServiceHealth body, Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs index 41d3d74bf21..7d9c450adc7 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs index 940f797d8af..927c1f2afc9 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IssuesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs index 89b9e51ee29..964c4c782b3 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs index ee4a85d4eff..f1d28f1786f 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Issues/Item/ServiceHealthIssueItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceHealthIssueItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs index e3a3cbbf0a8..9969d953187 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs @@ -46,7 +46,7 @@ public static ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("messageIds", MessageIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs index 2d7d86cc346..7e2e57ec62e 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs @@ -37,7 +37,7 @@ public static ArchivePostResponse CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs index 217abf8fae8..59fb97eeed3 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArchiveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs index 8198f15aad3..d826c73c819 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs index aeaa8c70180..cec1677a0a4 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs @@ -46,7 +46,7 @@ public static FavoritePostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("messageIds", MessageIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs index 4ec0f80370b..045f7bcdc4b 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs @@ -37,7 +37,7 @@ public static FavoritePostResponse CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs index ecc9e38debc..0b510c04f0e 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(FavoritePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FavoriteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 7467749834b..91205083a8f 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ServiceAnnouncementAttachment UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttachmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs index b77f293be20..cf246695a44 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs index dd43e19aacd..83f49c4e879 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs index e7073dc6176..ee8a1315198 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/ServiceAnnouncementAttachmentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ServiceAnnouncementAttachmen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceAnnouncementAttachmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs index f7f4af02b1f..b482c4427af 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs index b663821188d..50cd5fa3a19 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Item/ServiceUpdateMessageItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(ServiceUpdateMessage body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceUpdateMessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs index ddf4efbbdbe..387df3fd373 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs @@ -46,7 +46,7 @@ public static MarkReadPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("messageIds", MessageIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs index 2e8779411f0..ba3f9e44015 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs @@ -37,7 +37,7 @@ public static MarkReadPostResponse CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs index ce30c1a98ac..b86b71bc03c 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(MarkReadPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkReadRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs index 1487d02f1c0..d800f95ddad 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs @@ -46,7 +46,7 @@ public static MarkUnreadPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("messageIds", MessageIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs index c7a0cb433ea..b79f1082c3f 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs @@ -37,7 +37,7 @@ public static MarkUnreadPostResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs index 548ac687bed..fa7428b5dd9 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(MarkUnreadPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkUnreadRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs index c050d609409..e0c99680ac7 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs @@ -128,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +156,14 @@ public RequestInformation ToPostRequestInformation(ServiceUpdateMessage body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs index 431167f95af..03da96772cf 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs @@ -46,7 +46,7 @@ public static UnarchivePostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("messageIds", MessageIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs index 5f9a488ce99..e1c583dbce2 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs @@ -37,7 +37,7 @@ public static UnarchivePostResponse CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs index c828ea8362b..c63963b1a87 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(UnarchivePostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnarchiveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs index 5b7e08a7ce5..add4d6fb316 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs @@ -46,7 +46,7 @@ public static UnfavoritePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("messageIds", MessageIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs index 9b6a84cd920..295ae43923d 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs @@ -37,7 +37,7 @@ public static UnfavoritePostResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs index d36c1c36686..2c4a88d9a2a 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(UnfavoritePostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnfavoriteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs index d0732eda354..7e9ece39ff6 100644 --- a/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Servi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceAnnouncementRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs index b044745833e..be302845bcc 100644 --- a/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(SharepointSettings body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Admin/Sharepoint/SharepointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Sharepoint/SharepointRequestBuilder.cs index 87d2c5a6e2c..b6935f4328a 100644 --- a/src/Microsoft.Graph/Generated/Admin/Sharepoint/SharepointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Sharepoint/SharepointRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Share UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharepointRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index 1c4c0114c6b..f161267a44d 100644 --- a/src/Microsoft.Graph/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -120,14 +120,14 @@ public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementAcceptancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 669d1fa8c23..2d211508d53 100644 --- a/src/Microsoft.Graph/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementAcceptanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/AgreementsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/AgreementsRequestBuilder.cs index 13e11c2895e..d2a099bfbb1 100644 --- a/src/Microsoft.Graph/Generated/Agreements/AgreementsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/AgreementsRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -120,14 +120,14 @@ public RequestInformation ToPostRequestInformation(Agreement body, Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs index 448468871c4..f40a618784b 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs index c29c18980df..8d2eb57f613 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 41a334d4b2d..7634879b61c 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementAcceptanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/AgreementItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/AgreementItemRequestBuilder.cs index e611a8b646b..09aa0b4a700 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/AgreementItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Agreement body, Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs index 939e24df7aa..b03bb62fd42 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFile body, Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs index 3a23189512b..11e63509925 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs index bc6f2a167a5..72dd3ed8764 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileLocalization bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileLocalizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs index 0d7ade474b1..6fb9c9b8d79 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs index 6c7441bd9d6..d40ed809e03 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public AgreementFileVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class AgreementFileVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs index 15c044c3a69..de43503884e 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(AgreementFileVersion body, Act return await RequestAdapter.SendAsync(requestInfo, AgreementFileVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -143,7 +143,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index f2746f3a7f3..cfdbd7ac96a 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LocalizationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Count/CountRequestBuilder.cs index 12696b7540b..e372974a5be 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs index 0d7f58f603e..fab26689e52 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/FilesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs index dc245958807..02382002a4a 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileLocalization bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileLocalizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs index 029eb32ff96..42bac211ed3 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs index 24ff6742f9e..0e642fc9d46 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public AgreementFileVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class AgreementFileVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs index 2cab7f2f848..fce49abb1ed 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(AgreementFileVersion body, Act return await RequestAdapter.SendAsync(requestInfo, AgreementFileVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -143,7 +143,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/AppCatalogsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/AppCatalogsRequestBuilder.cs index b7a388b7bdc..1b56c19c925 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/AppCatalogsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/AppCatalogsRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.AppCa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppCatalogsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs index ccb5c687858..feac47e542a 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs index 8b505df3ca9..c8b11d56332 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TeamsA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs index 6e72414e626..121a47e244f 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs index d2cfb7a35ca..250e480594e 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkBot body, Action diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs index 97554691cfe..a239eb5ff26 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Teams UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs index 386aa07b0b5..f73faa0d5cb 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Teams UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs index 2305d79a7a9..0b99c883178 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TeamsA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs index d1ca8b2f8b9..cead1b0d664 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs @@ -42,7 +42,7 @@ public ApplicationTemplatesRequestBuilder(Dictionary pathParamet public ApplicationTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applicationTemplates{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is available in the following national cloud deployments. + /// Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ApplicationTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is available in the following national cloud deployments. + /// Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -95,7 +95,7 @@ public ApplicationTemplatesRequestBuilder WithUrl(string rawUrl) { return new ApplicationTemplatesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of applicationTemplate objects from the Azure AD application gallery. This API is available in the following national cloud deployments. + /// Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. This API is available in the following national cloud deployments. /// public class ApplicationTemplatesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/Count/CountRequestBuilder.cs index 5c4b79888ff..7aaee3fc7e0 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs index 54bca46a12a..528b4120a39 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs index 50a0dd0d8ae..2b4690dddc3 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs @@ -46,7 +46,7 @@ public static InstantiatePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs index cc245fe98c1..70448f8e886 100644 --- a/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs @@ -29,7 +29,7 @@ public InstantiateRequestBuilder(Dictionary pathParameters, IReq public InstantiateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applicationTemplates/{applicationTemplate%2Did}/instantiate", rawUrl) { } /// - /// Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is available in the following national cloud deployments. + /// Add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(InstantiatePostRequestB return await RequestAdapter.SendAsync(requestInfo, ApplicationServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add an instance of an application from the Azure AD application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is available in the following national cloud deployments. + /// Add an instance of an application from the Microsoft Entra application gallery into your directory. You can also use this API to instantiate non-gallery apps. Use the following ID for the applicationTemplate object: 8adf8e6e-67b2-4cf2-a259-e3dc5476c621. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(InstantiatePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstantiateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs index bd7e7ecc488..a9ad92893f2 100644 --- a/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/ApplicationsRequestBuilder.cs @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Applic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplicationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Count/CountRequestBuilder.cs index d8513ddd108..c7b1768d45d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs index 5beaad47dd7..3332908d446 100644 --- a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs index 7de434dab63..0d6b4c14780 100644 --- a/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 6bc0b0ecee1..cc92dd5a7a7 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 04493268d7b..5543982cd04 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 46f370ea497..3fc4241423a 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostRequestBody.cs index b5c6910042e..478da517b48 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs index ee4ca1ed83d..4841c76f4d7 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs index a3383565ec2..467df999e5f 100644 --- a/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs index eb309cd2c89..447ef9cb32e 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs @@ -75,7 +75,7 @@ public static AddKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyCredential", n => { KeyCredential = n.GetObjectValue(Microsoft.Graph.Models.KeyCredential.CreateFromDiscriminatorValue); } }, {"passwordCredential", n => { PasswordCredential = n.GetObjectValue(Microsoft.Graph.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("keyCredential", KeyCredential); writer.WriteObjectValue("passwordCredential", PasswordCredential); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs index 9d2c50527b0..9595120b357 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddKeyPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddKeyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs index c1d44e3e61c..ebbb58de2dd 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPasswordPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"passwordCredential", n => { PasswordCredential = n.GetObjectValue(Microsoft.Graph.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("passwordCredential", PasswordCredential); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs index c02af6f5d5c..c414cece11f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPasswordPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddPasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs index 91d804621ca..e113c8def5d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs @@ -81,7 +81,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs index fb3c8e2722a..4ae38273235 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs index c56c44c7f7c..d92edd77f9f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs index e48e70518a9..e0ef2f371fc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs @@ -85,7 +85,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -113,13 +113,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs index ef74af9abf7..2cc34c41b80 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs @@ -217,6 +217,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -235,7 +236,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -263,14 +264,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Appli UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplicationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index e87caee0f90..931022c611c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index bfba58804c1..61dfd32efb7 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 6959f6ad930..9789d04239b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index f919c3c1d91..3a316235b5c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index eb97782cabd..8f84cb5b40a 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 52f5faa1241..87ec38e0f5b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs index fac49cdb480..979c7ecadee 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs index ecc90b7cfac..76413b0fb5d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs index 4694609f1c8..bd8bffd6c08 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ExtensionProperty body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs index 642d3bcb176..288a408c6fb 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ExtensionProperty body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExtensionPropertyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs index c336c61ec1c..177fc777734 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs index 068a4b6cc3c..f34faafa8d7 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredentialCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is available in the following national cloud deployments. + /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Azure AD application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is available in the following national cloud deployments. + /// Create a new federatedIdentityCredential object for an application. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(FederatedIdentityCredential b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FederatedIdentityCredentialsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs index 37e921431eb..1405a0c3359 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index bcd9c091dbb..13c5905cb34 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 6544c9ec66b..15d5f483a6a 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 6f217012b28..35d09cedbbe 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 98da7a1282c..f85dcec44a8 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 4a13cfb4df2..8f6f7325dac 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 73b76307932..411da409938 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs index ab8bb90d0f3..f57f3d787fa 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs index b2468ffbf92..40fb0f32c5f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs index 437baf8d409..defbd583a76 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Logo/LogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Logo/LogoRequestBuilder.cs index 0eef1b69197..5469546d6a0 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Logo/LogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Logo/LogoRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Count/CountRequestBuilder.cs index a0e97ab6819..33521aef0f4 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index e4c4bdd2d76..fccdc153df2 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 02d8cc15c26..1ec1852df3c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs index 7a5a726281b..5cfcd515e99 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs index ec0203abe7d..ed5e829a8e3 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs index f7cf61d36b4..5d6a998e15f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index c528bd9b584..47b6b232c0f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs index 6f60cda2bd3..56628a76376 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs index cc742972c3d..a1449983aaf 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index cba79f54f40..64ae45f0edc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index d6be5a3b623..cb1dd4dd59d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index dc217489baf..8a4d29367d2 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs index 85c612400d8..6cac8045e1f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs index 0f631dab7b2..aa8ca08305e 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/OwnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/OwnersRequestBuilder.cs index 22a5f8e8917..c41b8033664 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/OwnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/OwnersRequestBuilder.cs @@ -102,7 +102,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs index 9eab194c655..e9a6879dcdc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs index 77f8335f747..6f79633c81b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs @@ -51,7 +51,7 @@ public static RemoveKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyId", n => { KeyId = n.GetGuidValue(); } }, {"proof", n => { Proof = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("keyId", KeyId); writer.WriteStringValue("proof", Proof); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs index a8ef1f42956..314a0a478bf 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RemoveKeyPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoveKeyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs index ee6ee06f169..2e69fc55054 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs @@ -37,7 +37,7 @@ public static RemovePasswordPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyId", n => { KeyId = n.GetGuidValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("keyId", KeyId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs index 2b16c9a87b0..8f0a789e4cc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RemovePasswordPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemovePasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs index 13275d7573a..0914c999d02 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherPostRequestBody.cs index df40d10d3c3..b021d38931a 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetVerifiedPublisherPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"verifiedPublisherId", n => { VerifiedPublisherId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("verifiedPublisherId", VerifiedPublisherId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs index 0b974ad6bcc..14fe5509fe6 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetVerifiedPublisherPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetVerifiedPublisherRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs index ca1c90bc4e2..a675526fdcb 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs @@ -47,7 +47,7 @@ public static AcquireAccessTokenPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("credentials", Credentials); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs index da79de6af6e..1dc673cff09 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs @@ -28,7 +28,7 @@ public AcquireAccessTokenRequestBuilder(Dictionary pathParameter public AcquireAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/acquireAccessToken", rawUrl) { } /// - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is available in the following national cloud deployments. + /// Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcquireAccessTokenPostRequestBody body, Action - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is available in the following national cloud deployments. + /// Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcquireAccessTokenPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcquireAccessTokenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs index 274574a355e..3495a2f79a9 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs index 172a46bc699..a5293f0e486 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs index c2bbb0b1b48..5691bca1824 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs @@ -47,7 +47,7 @@ public static ProvisionOnDemandPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"parameters", n => { Parameters = n.GetCollectionOfObjectValues(SynchronizationJobApplicationParameters.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("parameters", Parameters); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index e228183d46f..a1d80f47488 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ProvisionOnDemandPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProvisionOnDemandRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs index b09abaedd83..6c2e5031677 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs @@ -47,7 +47,7 @@ public static RestartPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(SynchronizationJobRestartCriteria.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs index 7a0dc27a9fc..494e9324217 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RestartPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RestartRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs index 6b5d8ce48b2..65dc711da92 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs index a0234443b16..7ab0664f418 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs index 8cc2e103454..bcf3ab6c600 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 6a16e5d12e4..346a516a199 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs index 8acb5e8eafd..6effadb6827 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index a41f52b5dde..dd9317f6510 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs index e1ad8e52d05..b71d737e780 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs index db6617c9897..6b3caed8e3c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs index 7d8ff9d0f0a..fc934e2ba18 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs @@ -75,7 +75,7 @@ public static ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expression", n => { Expression = n.GetStringValue(); } }, {"targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(AttributeDefinition.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index ef0044aceab..8e956dbf0e3 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParseExpressionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs index 97c230026d2..b09b2ea85b6 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs @@ -131,6 +131,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -149,7 +150,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -177,14 +178,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs index 2d470b2fbbc..139d73181c5 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs index a096a11674f..59596b1709b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationJob body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SynchronizationJobItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs index ce17e388094..4a22aa8ad87 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs @@ -80,7 +80,7 @@ public static ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationIdentifier", n => { ApplicationIdentifier = n.GetStringValue(); } }, {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationIdentifier", ApplicationIdentifier); writer.WriteCollectionOfObjectValues("credentials", Credentials); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index 9f629d6c980..5b13d09f4ea 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidateCredentialsPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidateCredentialsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs index 99c6d709444..ebda72e180b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(SynchronizationJob body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new JobsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs index d71387c98b9..569248967ff 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs @@ -80,7 +80,7 @@ public static ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationIdentifier", n => { ApplicationIdentifier = n.GetStringValue(); } }, {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationIdentifier", ApplicationIdentifier); writer.WriteCollectionOfObjectValues("credentials", Credentials); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index e53c1997edb..b8874a2ec46 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ValidateCredentialsPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidateCredentialsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs index 00a8e7f940b..a7f14c125cb 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs index a759b13719c..9de9669df1d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs @@ -73,14 +73,14 @@ public RequestInformation ToPutRequestInformation(List diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs index 983365bd890..95443f9183c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,10 +129,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Synchro UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SynchronizationRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -209,7 +210,7 @@ public SynchronizationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// public class SynchronizationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs index 19341dde9c8..2443db1bc2d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs index f3204832a66..d15b50e2d1f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs index cf65463f692..651ceaa964d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs index aa237e37f70..8a9f2a8a9f8 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 62aa6326c11..481e6a33b7b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs index 4c36ab4222d..4fea36f4ba9 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index ebbfdd11170..612aed81b51 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs index fcd2845e77c..ad65b86e450 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs index 9b1e2266bfc..5c31f3b90e4 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs index 1ace9987071..83d2d7419e0 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs @@ -75,7 +75,7 @@ public static ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expression", n => { Expression = n.GetStringValue(); } }, {"targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(AttributeDefinition.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 3eb7864b3e0..40ce2504052 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParseExpressionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs index fba539ea841..6fc8a7ef2cc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs index 43fce7bfef7..7c6f45185ab 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationTemplate body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SynchronizationTemplateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs index fdb1279f3ff..387017333cc 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SynchronizationTemplate body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TemplatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs index 0ca7797de47..a1badb3c0ab 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs index a3e9dc5ba27..57730636277 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs index b99e2a092c0..52c57da3543 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs index 7fd0a97f72d..dc13c2cf291 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs index a84a9572fd6..a728a779e65 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs index 0cfcde5af19..229e66ed21b 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs index 359e38f5081..cda7dfbad74 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index 1ae327f7202..ac6db3b7ecf 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs index 087452bde3e..42f405eed4c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 9a0480bc0f4..ad9aecb034a 100644 --- a/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 413e800423c..bc71b0c72db 100644 --- a/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs index a16ac19db12..0f28900065f 100644 --- a/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Appli UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuditLogs/AuditLogsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/AuditLogsRequestBuilder.cs index 3975efaaa6f..a1f0d46977b 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/AuditLogsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/AuditLogsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPatchRequestInformation(AuditLogRoot body, Action diff --git a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs index 323fc0df850..67145b1ddaf 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs index 31631c5fa71..e872e9fb449 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs @@ -42,7 +42,7 @@ public DirectoryAuditsRequestBuilder(Dictionary pathParameters, public DirectoryAuditsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/directoryAudits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is available in the following national cloud deployments. + /// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DirectoryAudit body, Action(requestInfo, DirectoryAudit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is available in the following national cloud deployments. + /// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DirectoryAudit body, Action @@ -144,7 +144,7 @@ public DirectoryAuditsRequestBuilder WithUrl(string rawUrl) { return new DirectoryAuditsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of audit logs generated by Azure Active Directory (Azure AD). This includes audit logs generated by various services within Azure AD, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is available in the following national cloud deployments. + /// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. This API is available in the following national cloud deployments. /// public class DirectoryAuditsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs index 45189f73ea6..36a55f8f86d 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is available in the following national cloud deployments. + /// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -110,10 +110,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is available in the following national cloud deployments. + /// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryAudit body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryAuditItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -190,7 +191,7 @@ public DirectoryAuditItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a specific Azure Active Directory audit log item. This includes an audit log item generated by various services within Azure Active Directory like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is available in the following national cloud deployments. + /// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. This API is available in the following national cloud deployments. /// public class DirectoryAuditItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs index 15b21ae665a..6d4324758bd 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs index bf1d980fd2e..1b7509ca986 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ProvisioningObjectSummary bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProvisioningObjectSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs index b1553ba1586..fc7cabe3eca 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ProvisioningObjectSummary bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProvisioningRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs index f2440610745..a02715a764f 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs index b546f5e9f26..2cceb79c2fb 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is available in the following national cloud deployments. + /// Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -110,10 +110,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is available in the following national cloud deployments. + /// Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SignIn body, Action @@ -190,7 +191,7 @@ public SignInItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a specific Azure AD user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is available in the following national cloud deployments. + /// Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. This API is available in the following national cloud deployments. /// public class SignInItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs index 09fe7ead10d..b3baf062f18 100644 --- a/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuditLogs/SignIns/SignInsRequestBuilder.cs @@ -42,7 +42,7 @@ public SignInsRequestBuilder(Dictionary pathParameters, IRequest public SignInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/signIns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is available in the following national cloud deployments. + /// Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(SignIn body, Action(requestInfo, SignIn.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is available in the following national cloud deployments. + /// Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SignIn body, Action @@ -144,7 +144,7 @@ public SignInsRequestBuilder WithUrl(string rawUrl) { return new SignInsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the Azure AD user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Azure Active Directory (Azure AD) default retention period are available. This API is available in the following national cloud deployments. + /// Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. This API is available in the following national cloud deployments. /// public class SignInsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs index aaad00c315e..154639c1d9c 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethodConfigura UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs index 88eb1c89db1..09f1893b5c6 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs index 197be57527c..0118148bce0 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfigur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs index 861fc5e1969..b4975815295 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethodConfigura UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs index 83b897358c1..73af404b7f8 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs index 7dedd7fe4c3..29e703f5be0 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfigur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs index 00ad91a94d9..f64c202f5d3 100644 --- a/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Authe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodsPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs index 87b4b0b4cab..68cdef8f547 100644 --- a/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Certif UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CertificateBasedAuthConfigurationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs index 931c8eae34a..018acd5089e 100644 --- a/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs index 2a873f911ee..f25ee8eb94d 100644 --- a/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Certi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CertificateBasedAuthConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs index 6420946eeaf..7caa5760be4 100644 --- a/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/ChatsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Chat b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Count/CountRequestBuilder.cs index 78d04e37659..14087e478d7 100644 --- a/src/Microsoft.Graph/Generated/Chats/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs index 6814085fb5d..64b73626d38 100644 --- a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index b4cb66f2174..5ceaec098a1 100644 --- a/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs index 82d6dbf4a74..47f2e781a6e 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/ChatItemRequestBuilder.cs @@ -171,6 +171,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -189,7 +190,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -217,14 +218,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Chat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs index 940327c4623..a6f5415ef0f 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static HideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index c67e4373538..a934c735a9d 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(HideForUserPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HideForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs index 4da1ffd7a2a..b3e6d0a5875 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 8009a2ec450..7cfac43f85c 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 63b529d9390..032de037b85 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 2482956b479..ffe6ae2ec94 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 9cc23371e80..a49116c7467 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index f02a96d3575..ff76fdd3675 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index aaf3b8c94ca..62b0a229bbd 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs index 58db9dbaa36..d03f7dba1b2 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageInfo body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LastMessagePreviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs index 72c35747b29..bdcb7019dc7 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static MarkChatReadForUserPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index 3cd80ebc2ea..e1ad2014560 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(MarkChatReadForUserPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkChatReadForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs index 11e27aeb2e7..1dc43e6ea6d 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs @@ -52,7 +52,7 @@ public static MarkChatUnreadForUserPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastMessageReadDateTime", n => { LastMessageReadDateTime = n.GetDateTimeOffsetValue(); } }, {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastMessageReadDateTime", LastMessageReadDateTime); writer.WriteObjectValue("user", User); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index 2fe5e63c1bd..ac4f9b10edc 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(MarkChatUnreadForUserPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkChatUnreadForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostRequestBody.cs index 4e39a6d0d81..83f24961929 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs index 543066d2225..8ba1322b919 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs index 0dff81a36d2..29962b0ce86 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Count/CountRequestBuilder.cs index bc2c77d02af..3c1362c1494 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 0378c85644d..4fb8e0fb122 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs index 90217d59e68..dfebcc75335 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Count/CountRequestBuilder.cs index c0dd6df1a55..cf938bc77c6 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs index 3a917f01665..9f18aaae878 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index 8b33bd81447..cb36db4bc4f 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index cf3e9b3d22e..2918d40dcc8 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -140,6 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -158,7 +159,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -186,14 +187,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index fed625a078b..1361209fe31 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 2f0dabfb56b..5e6655eddb3 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 46a5ed03899..dbf616ef970 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index e7867614098..3e1f8eb8ba7 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index e6a467401e9..d111e35dadf 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 8dfd4137b40..39b110140cf 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 1a4cfca59a3..fb925a49804 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index cf4612818c2..f09d9c6b16e 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 76d72acc2f0..f8a943c6ae5 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index fa012784589..1956be7bec2 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 79bc9bb7839..0459a584a86 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index b980384367b..f2ce5be01cb 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index a2512393c55..12b287b0686 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index e3b13cd7f07..4f7bbd5427b 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 35a9b99719c..d976fb672ac 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index f37fed39589..87cad9aa356 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 1596cbc1dbb..ccf7dd376fc 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 291f00125fc..6fa77b44b20 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 9805746eb9b..10bf51a4bff 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index cc562e64aac..030eeefd993 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 106d31b584e..1579941b673 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index a789ffc939b..9d06227322a 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 888518f5b4d..d41438e83b0 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 438b3b7e668..4deab9625dd 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index cc92fe3df08..30d60638ea5 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index 14c1e5dcc30..2cb0940c2a7 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments. + /// Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs index 09e0645a20e..ee18a19c009 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index c5a49c22b7a..94fd457502a 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index da604073f2f..72dc6c60868 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs index 5dd731cbfd0..234acbd70ea 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs index adee077dc68..9a0fab433b1 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index b600362585a..14588503dff 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(PinnedChatMessageInfo body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PinnedChatMessageInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index 12714eb534e..fea4c48c3a9 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PinnedChatMessageInfo body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PinnedMessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 820cb3e9430..f1335c9333c 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index e6c4bdf7b37..08447fc8311 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs index ecd5e4943e3..dde1e0d7e49 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 3075845a2a5..a13484ac78c 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 6385ba16637..c6f4fca297b 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs index 3138c30cf53..549b59dba69 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs index 161fbf034f4..fe49315981a 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static UnhideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index 42e6b355e8e..6743359218f 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UnhideForUserPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnhideForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs index 521b3a1041b..11448d6ed07 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/CallRecordsRequestBuilder.cs @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(CallRecord body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Count/CountRequestBuilder.cs index 7fb649b5e20..7455dccbcdb 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs index 4c381705fb2..38d68a337fe 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(CallRecord body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs index 60e838eb9f5..a11421b2340 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs index bde92970e55..ab279950ce4 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs index f83bd0e3c49..90734a634b1 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Segment body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs index ac3c7a0bbe0..563feec49e0 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Segment body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs index 6f4e861970b..63a8b565860 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Session body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs index 27e9814d4c9..305eaf3d473 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Session body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs index e354a400bc7..c6776a04a9d 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs @@ -33,7 +33,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectRoutingLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -42,7 +42,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index 69ce144b8cc..f45bdd32dec 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs index f8d554d37a1..313373db566 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs @@ -33,7 +33,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PstnCallLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -42,7 +42,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index ce9c05484d3..3e31d2772ea 100644 --- a/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs index 9537dc3f08f..0df2f333f2b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/CallsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Call body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Count/CountRequestBuilder.cs index b4344c5af1a..72035ec482b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs index f11f421d0dc..6542c909425 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddLargeGalleryViewPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs index b5503b6e3df..5d4b96a7b14 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddLargeGalleryViewPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddLargeGalleryViewRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs index a890c2b05ab..951bd31b62f 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs @@ -94,7 +94,7 @@ public static AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues()?.ToList(); } }, {"callOptions", n => { CallOptions = n.GetObjectValue(IncomingCallOptions.CreateFromDiscriminatorValue); } }, @@ -107,7 +107,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfEnumValues("acceptedModalities", AcceptedModalities); writer.WriteStringValue("callbackUri", CallbackUri); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs index cbec12cd252..642adc90a46 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AnswerPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AnswerRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs index 07d88a48409..a1dc113b46e 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AudioRoutingGroup body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AudioRoutingGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs index c76ef09a8b9..dbf5b4ce3e1 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs index 49c2b3a1312..50341f912c4 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(AudioRoutingGroup body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AudioRoutingGroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs index 9a1e8ee91ed..3240f855c74 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs @@ -201,6 +201,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -219,7 +220,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -247,14 +248,14 @@ public RequestInformation ToPatchRequestInformation(Call body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs index cdbe1fa795d..c9f1a5747cc 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelMediaProcessingPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs index f179265e52e..57561707e2a 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CancelMediaProcessingPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelMediaProcessingRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs index 34ad459295b..0a69638d34c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs @@ -38,7 +38,7 @@ public static ChangeScreenSharingRolePostRequestBody CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"role", n => { Role = n.GetEnumValue(); } }, }; @@ -47,7 +47,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("role", Role); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs index 5f75813c7cc..eb53b0f170c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ChangeScreenSharingRolePostRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChangeScreenSharingRoleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs index 41b2a1d6b7b..b56f0994c6a 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ContentSharingSession body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentSharingSessionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs index 57da98ecbd0..79e434f65d4 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs index be6c77154b1..9f572f7a59c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(ContentSharingSession body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentSharingSessionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs index c84dae51678..57f346b053e 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MutePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MutePostRequestBody.cs index 23bd0235fd4..1168b15e9a6 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MutePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MutePostRequestBody.cs @@ -46,7 +46,7 @@ public static MutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs index 65688c5fa66..ee11e4da99b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MutePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MuteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs index 8d4d86214d3..64dd57622e6 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs index 52d6e86a3f1..1d1bf0002f3 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(CommsOperation body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommsOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs index 5cf19866730..33689625e74 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(CommsOperation body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs index c0622dcbfd5..996b937736a 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs index a1951e181c1..460a1b0ec81 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs @@ -61,7 +61,7 @@ public static InvitePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, {"participants", n => { Participants = n.GetCollectionOfObjectValues(InvitationParticipantInfo.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteCollectionOfObjectValues("participants", Participants); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index 996c887750d..4f7dc9ca60b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -29,8 +29,8 @@ public InviteRequestBuilder(Dictionary pathParameters, IRequestA public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) { } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. - /// Find more info here + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(InvitePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InviteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs index 7bb04944110..f6c4ef848f6 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs @@ -46,7 +46,7 @@ public static MutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs index 78d51ddcfb5..a0a07224bf6 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MutePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MuteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs index b868e5016de..1fb8a4d36a8 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(Participant body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs index 2058dab280e..239e6768100 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs @@ -61,7 +61,7 @@ public static StartHoldMusicPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, {"customPrompt", n => { CustomPrompt = n.GetObjectValue(Prompt.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteObjectValue("customPrompt", CustomPrompt); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs index 5c72877d757..a81a5042ff4 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(StartHoldMusicPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StartHoldMusicRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs index 976aa7c9855..706e30a0703 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs @@ -46,7 +46,7 @@ public static StopHoldMusicPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs index 22ec1ca7907..51007897f1f 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(StopHoldMusicPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StopHoldMusicRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs index bac2495d9e9..4e73a469cd3 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Participant body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs index 51653cb5274..955af585eec 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs @@ -61,7 +61,7 @@ public static PlayPromptPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, {"prompts", n => { Prompts = n.GetCollectionOfObjectValues(Prompt.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteCollectionOfObjectValues("prompts", Prompts); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs index 30b694eac63..a3d7dec796d 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(PlayPromptPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PlayPromptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs index fcf7429b485..6e9fe1d5efe 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs @@ -100,7 +100,7 @@ public static RecordResponsePostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bargeInAllowed", n => { BargeInAllowed = n.GetBoolValue(); } }, {"clientContext", n => { ClientContext = n.GetStringValue(); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("bargeInAllowed", BargeInAllowed); writer.WriteStringValue("clientContext", ClientContext); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs index 7c777a7a804..d6cd728af28 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(RecordResponsePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RecordResponseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs index f5949ea9fea..9bbe091def0 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs @@ -66,7 +66,7 @@ public static RedirectPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"targets", n => { Targets = n.GetCollectionOfObjectValues(InvitationParticipantInfo.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("callbackUri", CallbackUri); writer.WriteCollectionOfObjectValues("targets", Targets); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs index e985ff1f330..d19c409ffd5 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RedirectPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RedirectRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs index d181c2180db..c30915e3772 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs @@ -52,7 +52,7 @@ public static RejectPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"reason", n => { Reason = n.GetEnumValue(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("callbackUri", CallbackUri); writer.WriteEnumValue("reason", Reason); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs index 7ef3aaa30bb..35aa21fb7c5 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RejectPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RejectRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs index d3b134eb532..0ff40708a23 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs @@ -46,7 +46,7 @@ public static SubscribeToTonePostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs index 12bcc43ec3b..42779ccaef2 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(SubscribeToTonePostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubscribeToToneRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs index 371b397b631..e5779ed678b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs @@ -61,7 +61,7 @@ public static TransferPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"transferTarget", n => { TransferTarget = n.GetObjectValue(InvitationParticipantInfo.CreateFromDiscriminatorValue); } }, {"transferee", n => { Transferee = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("transferee", Transferee); writer.WriteObjectValue("transferTarget", TransferTarget); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs index c10f8307c06..db3043fe6ce 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TransferPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TransferRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs index a8e6fc78d6b..e30228c7ae5 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs @@ -46,7 +46,7 @@ public static UnmutePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs index 9e3dc744b18..fe5171f1c2c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UnmutePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnmuteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs index 21bdb834f11..55e8a9a740d 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs @@ -52,7 +52,7 @@ public static UpdateRecordingStatusPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, {"status", n => { Status = n.GetEnumValue(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteEnumValue("status", Status); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs index 0457b744907..bf8e6220fbf 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UpdateRecordingStatusPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateRecordingStatusRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs index 242a744366c..ac79e261388 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs @@ -47,7 +47,7 @@ public static LogTeleconferenceDeviceQualityPostRequestBody CreateFromDiscrimina /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"quality", n => { Quality = n.GetObjectValue(TeleconferenceDeviceQuality.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("quality", Quality); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs index e2b2f61397e..0f552130f9b 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(LogTeleconferenceDeviceQualit UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogTeleconferenceDeviceQualityRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/CommunicationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/CommunicationsRequestBuilder.cs index f30e3826fc1..7df3bc3c178 100644 --- a/src/Microsoft.Graph/Generated/Communications/CommunicationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/CommunicationsRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPatchRequestInformation(CloudCommunications body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommunicationsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs index bd824325efe..4fd50be747e 100644 --- a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs @@ -46,7 +46,7 @@ public static GetPresencesByUserIdPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs index d76981e8716..6be72e4338f 100644 --- a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Presence.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs index 1645ab03356..b91f5ffc255 100644 --- a/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetPresencesByUserIdPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetPresencesByUserIdRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs index 84a172b92b3..1c68b2e03f6 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs index 3a28a883d05..6bc2d4b45e6 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs @@ -99,7 +99,7 @@ public static CreateOrGetPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"chatInfo", n => { ChatInfo = n.GetObjectValue(Microsoft.Graph.Models.ChatInfo.CreateFromDiscriminatorValue); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index 48c5324efae..2acf30cbfd1 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateOrGetPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateOrGetRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index b658aa8fdb5..ef30ee76c35 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(MeetingAttendanceReport body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceReportsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs index 4d88cd19ca9..4e8c5a868e5 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index 2becfb9f81d..7d8c36888bf 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AttendanceRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs index 2a42a24ddb8..f023dda25b1 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs index d4abfd8f6d6..1ca3d338f9a 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AttendanceRecord body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index efe4c7805a6..9f1cd96fa70 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(MeetingAttendanceReport body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs index f4b9daa3972..25deca8d91e 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs index f25fb587f05..105efe85b5f 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs @@ -46,7 +46,7 @@ public static GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index ac82508e2fc..6d8548644c8 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs index b8ed3375d44..4f0d4ee473b 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(OnlineMeeting body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs index 0c4b9931c75..b8951ebe885 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs index f8b54db7dde..7c18597ee1b 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(CallTranscript body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CallTranscriptItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs index da0494d9ee0..f7786fc7cd5 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs index 4d01ce485bb..77b3cda002a 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs index a8befee26be..4cd70ea2d1d 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(CallTranscript body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index 5c96b192a33..2c87f5db1a5 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(OnlineMeeting body, Action diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Count/CountRequestBuilder.cs index 3442376ca2e..2b999fb61c6 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs index 16d9c34fd9a..f3152191886 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs @@ -46,7 +46,7 @@ public static ClearPresencePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"sessionId", n => { SessionId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("sessionId", SessionId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs index 29687f80bee..c11ff3d07b4 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClearPresencePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ClearPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index 18d49437558..c06c714d668 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs index 206da1389aa..4b8dc29ccdf 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Prese UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PresenceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs index 9450a8f04bb..43d14fafb04 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs @@ -79,7 +79,7 @@ public static SetPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs index fea9b78f861..06daff02257 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetPresencePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs index 3a899285bba..838f2234593 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs @@ -47,7 +47,7 @@ public static SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("statusMessage", StatusMessage); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs index 00d97e5b10a..b50a110c7ad 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetStatusMessageRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs index f40b8ea18ad..2043779516c 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs @@ -65,7 +65,7 @@ public static SetUserPreferredPresencePostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index 41a53abed0f..9362958efc3 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetUserPreferredPresencePostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetUserPreferredPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs index 4c5df0b057a..e51ef9d96bd 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/PresencesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Presen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PresencesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Compliance/ComplianceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Compliance/ComplianceRequestBuilder.cs index c44716e2664..f0bacf3d8ef 100644 --- a/src/Microsoft.Graph/Generated/Compliance/ComplianceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Compliance/ComplianceRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Compl UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ComplianceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/ConnectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/ConnectionsRequestBuilder.cs index 5593f567675..e8eca492887 100644 --- a/src/Microsoft.Graph/Generated/Connections/ConnectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/ConnectionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ExternalConnection body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConnectionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Count/CountRequestBuilder.cs index dc348703aab..08e9aa345e0 100644 --- a/src/Microsoft.Graph/Generated/Connections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs index a0752b5d82a..79840efd7bc 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(ExternalConnection body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExternalConnectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Count/CountRequestBuilder.cs index 3bf32ab29c9..c699bebd095 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs index 1e0e878b324..ed4b136b6ec 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/GroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ExternalGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs index cd791f547c5..8925690a1ce 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ExternalGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs index 904ccfb27b9..ed2f20fd545 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs index 1de736536a5..dfe5db0c860 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,10 +110,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Exter UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -190,7 +191,7 @@ public IdentityItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// public class IdentityItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs index 72ca8c98aa8..9117c4c6dfc 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -42,7 +42,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Extern UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Count/CountRequestBuilder.cs index 05ed95ca35a..b983142a7cd 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs index 57734be1341..1417aa48f32 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ExternalActivity body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ActivitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs index fac17344b59..c6a828b8c25 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs index 3dd72f3271b..3b77398d500 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ExternalActivity body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExternalActivityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs index e3c84d3d225..b286c2c4c44 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs index 1b6d3afcbc3..28f0fc6eb80 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPutRequestInformation(ExternalItem body, Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs index 1c020ba547f..436345b37a3 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddActivitiesPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activities", n => { Activities = n.GetCollectionOfObjectValues(ExternalActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("activities", Activities); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs index 656b44944f6..b97f41e287d 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs @@ -33,7 +33,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -42,7 +42,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs index d7464444342..15179907797 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(AddActivitiesPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs index 78276f97bf6..d257f5f0db4 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Items/ItemsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ExternalItem body, Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Operations/Count/CountRequestBuilder.cs index 34f593665bb..e517aa966ff 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs index e73c703b432..d63164c13d0 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConnectionOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs index 7127eed0bbc..d10c3c34eaf 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ConnectionOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs index ebc43f7d8c1..7afb9304339 100644 --- a/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Connections/Item/Schema/SchemaRequestBuilder.cs @@ -49,7 +49,7 @@ public SchemaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Schema.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schema object. + /// Create a new schema object. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schema object. + /// Create a new schema object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,14 +114,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Exter UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs index 27462536d8b..f943a0ccba3 100644 --- a/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/ContactsRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -146,14 +146,14 @@ public RequestInformation ToPostRequestInformation(OrgContact body, Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Count/CountRequestBuilder.cs index 35fb3c8ee2e..07b8a3410a8 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs index e306bef6281..3e55e986596 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OrgContact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs index 5841b30e5b7..aee3c8ff849 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 05d42cc28c2..ce62336cdc3 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index c6f93f970b4..fbde1632fe0 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 4adaae68314..ad7cea067a5 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs index 3eca2d4e68a..04aa6b04ed8 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs index 32e952dd7be..106105179e8 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs index 2345e1df674..42889eee87a 100644 --- a/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index f7cb2dafb32..00c711126f0 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 23379903913..93da8d982ff 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index db07c0ca01b..6a6fe7c8f3e 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index d2ef85bfb59..7736186cf58 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 4e2afb0d12e..ae5e5f65a32 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 71ba8f09a8f..d0fef95b5f1 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs index d4b3f796cf6..bb316c722c0 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs index e0c778584c5..740d5ed3e14 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs index 0de33d40725..3034fc94004 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 2244912ff23..6fa6f28cf68 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs index ed656cd3351..b52713c6785 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs index bb894bafa8f..79c4e49fcb0 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs index 6c3a394a4c7..b669e01973e 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 89803ef3796..bd3fe4852fd 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs index f92012cb474..71801b77734 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index b38667ac767..7e2c24801f9 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 44c0d7d41da..f698c842e22 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index f1a5b2cb10a..8bdf58c90d3 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 32f22084f91..7cfd56b66db 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 1dad4b24afa..9faab968dd2 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 71152f6c69b..51cc2021d14 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs index c3f6129c3ec..b6b39a4cbd5 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/Manager/ManagerRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs index 71dade3f330..b33035d95cd 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 93e801c4956..da5de2e6404 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 60306dc1213..00d0f1cd214 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index b49253f9217..2ee52b01702 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 628527c4dc4..a04fba559a7 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index fbae8b5e84f..2ed99e41a04 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index cd348b8e6ab..bdf58ada283 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 971fc23e851..a618d44ae1e 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs index 35565fd898e..5cadb15bf82 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs index f4a9cc587fb..1eeffb01597 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/OrgContactItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(OrgContact body, Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs index 1ff412f03cb..48085615003 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs index d7111cb5bb1..58504222b9d 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 5f084e0c213..cfb534a090e 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 6e06305e0b7..26f27ea9eec 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index 08e5fdcf28f..f51b14d5326 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index a8e88f64191..e55c71d2806 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index b78485c152a..fdba1c9e370 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index 03fbd9c1e3a..35d9c2c70e9 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index ea1d59e640d..41bb77c3c10 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 32a676935bd..8efee95e599 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 6b6295e2340..695cac210e1 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 7a96070d1ab..39eda02d774 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index bab7a84bf13..76988a68c36 100644 --- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs index f30f29a08d0..f320603f80a 100644 --- a/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs index a06d900fb80..739fdd6d265 100644 --- a/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs index 1dbc75c15bc..7aee7aaf61b 100644 --- a/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -146,14 +146,14 @@ public RequestInformation ToPostRequestInformation(Contract body, Action diff --git a/src/Microsoft.Graph/Generated/Contracts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Count/CountRequestBuilder.cs index 3b6de709dd0..d5e55e1ef84 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs index 7755f75e20f..4e6a5c1f008 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs index a4b5b8f82bc..54622d96f20 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index c6867369661..e8fa8dd659f 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index d63f1c77d6c..c5d97cfb272 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index b70b3638ed8..6fd413249ac 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs index bc8adca9d0f..6bee9600be4 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs index e92a693ebba..45ed051a228 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs index 32929e3d547..383aa07011c 100644 --- a/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index b81eeabe6a0..718d60d0ddd 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index c8013ac9d7b..e7d522c1d04 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 3d10407b975..32ff4f980e7 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 6c8390b8e4b..c1ca93574d7 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 04e3839372d..eadc3cad5da 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 9ace79118ac..b4c160f94e6 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs index e12add4295d..f70715bb7a4 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/ContractItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(Contract body, Action diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 9b9fb615c2d..66bc49f4968 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 4ca11c406d1..3875578f83a 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index c83aaed124b..c7544c362e9 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 9cf179ffc4e..9eab7b15cc7 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index b019e2aae8b..33838c870d1 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index ec898c76cfc..8c1d445d292 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs index 692778ab1f5..1442185fa37 100644 --- a/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesPostRequestBody.cs index aa71fc0647e..98ae6f196be 100644 --- a/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 9004fabd038..2f38943f7f7 100644 --- a/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DataPolicyOperations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DataPolicyOperations/Count/CountRequestBuilder.cs index 060ddb7e36a..138951a845d 100644 --- a/src/Microsoft.Graph/Generated/DataPolicyOperations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DataPolicyOperations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs index 23dd407d061..863b116740b 100644 --- a/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DataPolicyOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DataPolicyOperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs index efc2628cfea..4109980f7e4 100644 --- a/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(DataPolicyOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DataPolicyOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs index a14955a685f..f836a484332 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AndroidManagedAppProtection b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AndroidManagedAppProtectionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs index f4fd007376a..03927604ef2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs index b6427797a45..567e6d2aed2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(AndroidManagedAppProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AndroidManagedAppProtectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs index 90de48de432..fc3800412f3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs index e4d98ae0b48..24555a2ca66 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 448811e7b95..2935e1cb0f4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedMobileAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs index 3b55d4a07a6..273be3e116e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs index e7f4db71568..fd8e8d1e1c1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index bdb21ed8a66..267c842585e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppPolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index 0176e9f2fc3..15b5030cf0d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeploymentSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs index 86b431cedda..1981aa1dc24 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs index fb3da0f0664..3515376c70f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DefaultManagedAppProtection b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DefaultManagedAppProtectionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs index ef06ec9fbd4..1f2e9e5dd03 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs index b7ebe134f60..c439f9f4a11 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 0d292173b7b..996a1fce731 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedMobileAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs index f4421eec63a..0587fe3bf0d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(DefaultManagedAppProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DefaultManagedAppProtectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index fc218669cc0..2da728af9d6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeploymentSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index f2683da0a31..31aec64fead 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -105,7 +105,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -125,7 +125,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Update the properties of a deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -161,7 +161,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -189,14 +189,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceAppManagementRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs index 6a7d64c497f..22c623aa89a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs index 5718668bf47..b68e107c543 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(IosManagedAppProtection body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IosManagedAppProtectionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs index d15b0dc1b07..321d89f0f56 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs index 9bae729c206..2178f4239c2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 5ca40c08785..5968bad1bc3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedMobileAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs index 618bc298118..7999288e12a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs index e418d784006..3874b260dfd 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 204e9847430..1b20db18ea9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppPolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index 2910b280882..5797841f534 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeploymentSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs index d949785d620..19d8ab6bddb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(IosManagedAppProtection body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IosManagedAppProtectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs index ff20562bf14..93fe26f15cc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index c4fac41d395..504e26d99e2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -53,8 +53,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windowsInformationProtection object. - /// Find more info here + /// Read properties and relationships of the managedAppProtection object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -115,10 +115,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsInformationProtection object. + /// Read properties and relationships of the managedAppProtection object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -195,7 +196,7 @@ public ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the windowsInformationProtection object. + /// Read properties and relationships of the managedAppProtection object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs index a7451e5c153..22ffe6a54af 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs @@ -47,7 +47,7 @@ public static TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 440eab3f560..8f79e7b91c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index 685cea5ce0a..607f5cfc14a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs index 2a563552e87..1f5d22aec93 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs index 728352ed2d4..21a925c3a59 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs index a4db0509dc7..b315e9c6faf 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs index 4d6ff802f02..923e5208ee9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppliedPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs index 96e68bb0dee..ac5be8bed28 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index fd51aa511e8..0a90857660a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs index d3b0754940d..a2260b281d3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs @@ -47,7 +47,7 @@ public static TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 039f74a38ad..cd88af8ab52 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs index 3bd9bc6d9cf..f98ac2ff13c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs index a4f216cbffa..c3b2b714266 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntendedPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index 94740d2d097..fbad247a861 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs index f5f4976ea38..ce2aeefde4d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs @@ -47,7 +47,7 @@ public static TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 4bcbfe09066..c7994d28435 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index bd7ee61f31f..e79040554c9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppRegistration body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppRegistrationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs index 77ae5656bdc..dc035acfc8d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs index a0910f77894..5f88243450d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs index b65cbcd4ff6..b8679dd46b9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedAppOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 6fffd4d3a3d..b40d70c3ef3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ManagedAppRegistration body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppRegistrationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs index 4cf5653b9fd..779ba6f8c50 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs index 068f2bc7eb5..d3d643fd51e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppStatus body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs index 665512d1edc..e18933fa227 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ManagedAppStatus body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedAppStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs index 90755aa72ae..11f9000f8fd 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs index 8e43e5cb7e9..0cdfef3a6c0 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"managedEBookAssignments", n => { ManagedEBookAssignments = n.GetCollectionOfObjectValues(ManagedEBookAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("managedEBookAssignments", ManagedEBookAssignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs index fe4d8964492..7dcd9bd0c98 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index c5a3135dc75..abbc186c76d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -42,8 +42,8 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedEBookAssignment objects. - /// Find more info here + /// List properties and relationships of the iosVppEBookAssignment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedEBookAssignment body, return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedEBookAssignment objects. + /// List properties and relationships of the iosVppEBookAssignment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedEBookAssignment body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedEBookAssignment objects. + /// List properties and relationships of the iosVppEBookAssignment objects. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs index 83ee19ca9e2..525a17bc560 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index 6e57b66aebc..0e585e08761 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a managedEBookAssignment object. - /// Find more info here + /// Update the properties of a iosVppEBookAssignment object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a managedEBookAssignment object. + /// Update the properties of a iosVppEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ManagedEBookAssignment body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs index c9d5a10c886..96f536f1a47 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs index 9e373aea4f3..fc5a85f9253 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceInstallState body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs index cb56ad9c41e..380b2795671 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceInstallStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs index 41a5f0fc162..1f196eabb5e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EBookInstallSummary body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstallSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index dac146eee7a..1cf7e3e77ca 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosVppEBook object. - /// Find more info here + /// Read properties and relationships of the managedEBook object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,10 +137,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(ManagedEBook body, Action @@ -217,7 +218,7 @@ public ManagedEBookItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs index c8d90f4c4d3..865c15c6f2f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs index 858795e9e66..628487ae61c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs index 62c5da068fd..518ca74521c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceInstallState body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs index f964e714053..08db3331c39 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceInstallStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs index e378ff391ca..a95c2aceb5a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(UserInstallStateSummary body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserInstallStateSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs index e176af22460..8155d570c5e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UserInstallStateSummary body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStateSummaryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs index 281213bdf2f..65bbcd22085 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedEBook body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs index a852a9ebef7..aad05e4497b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs index fe7b5cae4f8..b531680a03e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs index 9489cbf50e9..0f17e9aef3b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index ab2019cfd79..ff4a208afeb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppPolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs index 60a00cc4cc8..e477b84bc27 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs index f16cc292669..13f86f9d338 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExemptAppLockerFilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index cb87d785d40..0446ba5a24e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionAppLockerFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs index e892490d334..e5ed0d02035 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(MdmWindowsInformationProtect UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MdmWindowsInformationProtectionPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs index 7257698d3eb..0c0e5f061d5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index 4a348cca7eb..edd430951cd 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionAppLockerFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs index 2ce86f3dde0..463cdea8fb4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProtectedAppLockerFilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs index d922db8c8d9..c070a720022 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MdmWindowsInformationProtecti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MdmWindowsInformationProtectionPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs index 5c88623d1ea..08c29a73a76 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs index 3211caa0e20..948db182501 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppCategory body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppCategoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs index e89e1bf116f..b9f91882aec 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppCategory body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppCategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs index cf54ac12be3..a69b0d33002 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs index 382f56ebcd6..5cc5819c65d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs index 3ea78d12af4..5f9fc38fac6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index ac9580d5ae7..a2e5b515d19 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 8729ae78d29..6dc19875117 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs index 7fe2d1752be..15405ab1db9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs index a2bbc11383d..2da95601fc7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatusSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs index 9f13251a6de..6c40b287ef6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs index 69b29ee44b9..18aa2b3bb41 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs index 70aa5ad114e..7d3eb4e8340 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index 76a180c9022..08afec999a9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,10 +142,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +161,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -188,14 +189,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedDeviceMobileAppConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -222,7 +223,7 @@ public ManagedDeviceMobileAppConfigurationItemRequestBuilderDeleteRequestConfigu } } /// - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs index 41ad31f3d26..2b82e2dae48 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStatusSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs index 4866df8e1f7..2eb69ecf92a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs index 6340b83267e..232b7f5678e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs index 6404e70a2e9..1f6c524b053 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 40331c23c96..9b45f4ca49d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public MobileAppConfigurationsRequestBuilder(Dictionary pathPara public MobileAppConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosMobileAppConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedDeviceMo return await RequestAdapter.SendAsync(requestInfo, ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public MobileAppConfigurationsRequestBuilder WithUrl(string rawUrl) { return new MobileAppConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// public class MobileAppConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs index 5f2900e4b02..dc9c580c6be 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs index ae47a26aedb..36ef85f992f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs index 61560d58939..08e4a2f9ba4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs index 5651f51be2d..cf31413b8dc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs index 7483cbfc88d..69c4a73be88 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs index 433649d6163..21506f6e62d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index a7c421871db..222d836ca2f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs index f7fbdd67bc1..baeebe89e8f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs index 688710343f2..34b9a8c1cee 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs index 71955129324..0e7dc859500 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs index 8c5bb917093..1c09cc5a338 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs index b57939327b1..35384c862a7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs index 45f31d124c6..b69eca87f60 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs index 7a420d94c8d..0852e122fae 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs index 8bab0736ad0..46ee0016172 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs index 2baa36c0107..fa394b95c8a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs index c9b5ff4bffa..ef247ebbce0 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs index 8fa2c1cc2ee..8ecc8b8a515 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs index 620ebb9fc1c..4e656d9e23b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs index 26333e4559f..e70a6e15c32 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs index d852f99cf3f..51225c57d2f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs index e98b296763e..b2e10f9c989 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs index 12c09aca573..0f99b418b8b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs index 997aa5502f5..e6b219be3a2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs index 2030ee99116..660db6f3ea0 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs index 21160d38048..8f9904118a1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs index 4848f71dda9..e22b8ff406d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs index bc690a27dc8..0a588d2bc22 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs index b1bcbd961b6..0dfdd0a416b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs index 9728ee7256b..1eab2b61e1a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs index d1d4cfd7662..686fb619489 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs index b2832114aa7..2d7657bc8a2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs index bb315fdbb22..d4de8653c80 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs index 9bba39f91c7..75b6a2bb06b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mobileAppAssignments", n => { MobileAppAssignments = n.GetCollectionOfObjectValues(MobileAppAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("mobileAppAssignments", MobileAppAssignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs index fbf4efcd66b..47623e4c2d4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs index ab3b98554ee..a678afb1295 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs index 0b0ca6b7608..1022587dd10 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 187e80cd1c5..ad70ad763ba 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs index b75d48c08ba..fb18e65b567 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs index d2ea1fb83ca..1c28b771891 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index b9a6e935e2f..8b26719bc2e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs index 15f6a91bb34..6176aa55719 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs index 12fe7c515d2..37fc780db53 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index cf5681964a8..017730751ac 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs index 668798300b2..f42dff565bc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs index c4e06ec8c12..41782eacf52 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 8950a140559..e471f0129ab 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index 04e2ba20db3..7e217560879 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs index 027aef5562c..bfb770f8ea7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index c4db8d574f1..70c7b70e825 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 5691af4a389..348c5224900 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index f0798959a32..e74d377d121 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 6fc57132a0b..100876b6876 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index e988aef7d32..8437ba15f45 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 443be394d78..65203e8fa81 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 0f832280252..501cb93c61c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 276fdae8930..7f01c7f373a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 25d6384c59f..ca27b6903d4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index c68e8276c93..cb5b9298f52 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs index 315128c8192..a0192c6f089 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs index c77bab8d5f4..aec17066c73 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs index cd0fa9d5b11..c41ef5c8f40 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index fd1b49eb507..2e70a644b58 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs index 9835e8f37a9..1a2aed44eed 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs index 25edbbd2f7e..58d37ef8be2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 6cdb2eb7db0..f66a0d1f025 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs index f02d43d87e1..198f6c94cc1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs index 3bd1d8fbe57..e76e42593b0 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs index eab48c58f1b..9ae75f0dc22 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 41088652d5e..29f2530e899 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs index 0b49f7dfbac..9b2a3644463 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs index 2607f64ae9a..e362f9d4604 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 164a1b12557..e4c97728a73 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index c683224b198..462e36583ae 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs index 13750206feb..4cdadc05ebb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index efeb0a65865..e7d416cd6da 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 47bb7dee97c..3b6520b3c23 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 1c456cae259..90195dab43f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index daf825158b3..22e2d0d5d9e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index cdbd691be2d..56d01c4b9cf 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 831cb754c07..78a45ea2343 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index b5977949498..a010670739b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index bbb97884635..045a5f07e18 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 33315d44f16..1e97bcc17d0 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index c4e2354f5ee..81ea0532826 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index 9f4e2884944..ffebeb9ade8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs index 64593539119..5fa7b2ecb28 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs index 3a429431af8..ae31e26d59f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index e9c97f8f974..1b974eabcb3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs index cf8a6e2a31c..80fb7f6ac1d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs index 3660c806cc1..30e4caca546 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 49f742d0c23..29c3e2dbca7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs index 8987f9eeb68..5e2ebf7e6bc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs index 17883b07651..b0e6102710c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs index 438bc8bd5b9..9f1c2aba2a9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index af9fc4d3e20..ff054aa645e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs index d4fb643df53..5f8275bb853 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs index 8f6abd8bf58..2137c1de570 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 971edb2ac4f..3f421fcfdfe 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs index 994535fcd7d..1089557e1c4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs index eda8b27bd1d..c43ab5a589d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs index 26d964d706d..2072d50913e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index ea36fc324cd..1b375e1dcc6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs index f41ff195b1f..604e999a49f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs index ee4d83a25c0..5bb5d860765 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 0b0fe603c95..1102d5878cf 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs index 66eaeb8f319..1d90de63690 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs index eced2f4522c..4473a59c500 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index f089ec45d9c..7c946ebd1eb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index dced252a345..df6a29976fb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 68285a5f21e..6736d49b0bb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index a08bf8eea8a..0bd032ef992 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index a63a4a38c16..6cff610c605 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 8436815fd13..aff1df39b7c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 9f69854fab4..930c52600c9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index fbbf407be30..af57a5b2c41 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 581222fa842..d3feb9e0860 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index c240f02e6f9..e1e3faa483c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs index f6bceec0959..de32045733a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs index 1f0066f20d0..8e0cfd49956 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs index 66643fc2b13..5ad8decfa93 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 22b2aaa488d..53adeb03ae2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs index 0d6f397eb1b..fe14becf065 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs index b2684119c93..d1fd1605b6f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index a5091249e14..264e16ccb0f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index fa435936e92..95e1f76124d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs index e708d3c7c52..941e76c9866 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 617f1fe54b0..b3c9efccec5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 80ad43c5204..9aa3030f7af 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index c3fc52c5eeb..9bb747561f8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 48613a04cbf..fc7eefbeda1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index f3aa13289d6..99dfd500310 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 7731a935624..0b26580d1c8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 0e5cc48586f..6ad0d248df9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 6e2269c6480..2d15115d4d2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index b62a3caf782..9a63eb5b8a9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index ec57c61ded1..2db61096665 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs index 329955165be..052a4af5691 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs index bd994c8d523..be7cfbe706a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs index 8063fb1b0db..54c4a310a4d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 1b707305cdf..98c795c69ed 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs index d6266738d17..900c18b4600 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs index 6ea0904716f..fd35076344d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index a002fd66c20..08eb524346d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index d64e851a50e..e2bce7c24a5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs index 184638ef90a..b7e7d9881bc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index c53ec8e80c0..2dbdf8702f2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index c7e7f5a3495..36961b36ae7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 25ca89fabd8..1f0ef919fb7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index b04f307f6fd..5a22c5faf95 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 95b4bea5f0d..57a41bab633 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 5bd0c16579e..03593fcb805 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index f624177730b..9a74e818737 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index e302f14e654..264f82cf8fe 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 8409d018815..28bea8e1fc6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index 5590a97a233..0fa8620b9e5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs index d8cd9d5bffc..84d2258a732 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs index 61d17e1c456..4a42e04ec69 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs index 46acbdb7b46..f7e1f76cd27 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 54d9345dc2f..c6e87d796e3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs index 9ae0f2b0213..c420713f198 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs index 563cd59c369..d45d6362e53 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index bde52117e9b..ac8df7bf698 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index 1c99eb272d9..aa1dff03c98 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs index 2da8cb7ae75..0fa76ee5397 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 4176a1c2069..0afcf02103b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 1244d40fe03..1de999ce8f8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 286463f9aad..ad34ee18e2c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index ab07930acc8..1aa5dd91149 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 39d6d2ad496..65dc25eac89 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index b8a0e0a805a..52dc641696a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index f9217cfbc47..ae0fcfed61a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index cab89d275a1..229f101a5f3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 3938af6a205..c6a2608f32e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index ce9501f1536..2490f46c2b6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs index 444537d3cc4..c22077ed2e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs index c0ce412d57c..1bae1fa7302 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs index 27532b7c8d8..ae898bc9390 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 3976aba2206..178ab0ec18e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs index 4aca1063d59..58c279a674b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs index c5097e30795..77bf287f5ab 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index e0f44ab32c1..8aadc4090c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index 577fd29b182..d0efed9d7d6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs index cf1c7b3cdd5..e3e9b4658f7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index a2349b1831f..c4b2692281b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 19313819695..e3f26f96d50 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 3e9e7a4c0e9..c63c9d18859 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index dad61649273..5cbd4112444 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 040a1ab09dc..2abd4a27d84 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index f3e5a1b2d77..4bc5343e958 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 3014f17cb74..7d67863e229 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 12325c81082..f652174618b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 0e4a96900f0..20fd275f554 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index 80a65fbd45e..6e551d24cbb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs index c54df4ab5b6..87294861edb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs index 8e0c79e9a13..0247dab79d2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs index ee7adadd9da..4844d7af60a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 059c2bbe5ab..91cfa994305 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs index 5ed426248aa..001799ca770 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs index dd72c478773..c57a6eb9d4a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 59567df74f0..7e3b0d0f574 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs index 07e4e1cd251..6fca3a62d43 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs index dde883e8932..92bc7b5b5e3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs index 575111d8647..160d8883fb5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index b1486f731c7..d410ec15b99 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs index f329e42666d..fc3acaec5c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs index 45b884398d8..e3834003978 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 132073d9b6b..b55548149f4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs index d984da7090f..0e4995eb8b2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs index fd2b5c87f68..bb6feced090 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index bed6b2eaa87..38f48d6da9c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 1d386d148e8..bf542f6848c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 6f2be5d964d..be14741bd68 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index bb9b33d2fe1..acb77171bc2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 8d6b86b9572..42f827265e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 678a9faeec5..03bb5b084c4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index d34ad35fb4d..521653bf12b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index b9db8d795ca..f6a5f6e08a6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index b1513e51b20..92ac0408f64 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index 9dcf239d29f..d9a9cd06359 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs index 9fd00be122c..c109e1cbc38 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs index 3959e9496ec..2883556c99a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs index e8a0e5f16cb..998b1c326ab 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 6a331a3b026..035f2493599 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs index b210dcde504..f955372aa9c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs index 06d8c200dc3..ee33bab3f81 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 51b942d8262..efdcfa93300 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs index e8c4cfeebd3..755629f2ef0 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs index 8dfbd0a70df..4fc94c84cf6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index c9582b33855..29b1796d05e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index f04eb8badfc..6819884af51 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 3f3f9347718..8036f279b03 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 540a6333c37..c1a510887be 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs index 51453e7ccff..ed5c913e60a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 74122a22dcb..fd600f3c2b6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 84ad957daaa..eed79cd294c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index a213e11e67f..d60bb508ba1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 42a70da86d6..048d2f3f09e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index c35b2adb02c..14c2ddb10e9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs index 22cc940af6e..f16811d9d97 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs index a8f0f49b105..e98577d6a6d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs index 8a937c3a16c..0e857f2968b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index c78e10f3767..a9d61a91db4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs index cbe725d3d72..2bae94365e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs index 0059082780e..defca480d11 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 84200c11c95..73779a89b21 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs index f7737efa8a7..0735d45b98f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs index 1afb6e3892b..e81d84f13cc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 012b88bce62..ac19e72b8e9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 068e96a328d..17e58834903 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 2547ca1f7c3..0fd0752389d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index e007f6418b7..d3a167e4c8b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs index 3b37435af03..9663409c3b5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 377b48256be..4420ee282f3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 1a041526ad5..59664d2c583 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index dd770725362..7338c8d7753 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 623c5db5f8b..3f119fa3c58 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index 8c553992577..860fc35fd5f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs index d332faa7795..e73215b92da 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs index b5f9c137802..d0721e32d50 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs index a4037a3d87a..bd985a7a886 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index c7c2c386ca3..f26d429e089 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs index aebbd41c28f..006655b1009 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs index 71eac3ed5aa..70dd1af547f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index bffc11ebdfa..bec43a004b2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs index 5cd2e23d168..0c2cdceb181 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommittedContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs index c70c1f33b57..9400554ec98 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 00d4b85e1bd..ad01ff1179e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs index 4c9b91204cb..0bec3d34303 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContentVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs index 87ed671542e..75dfee4933c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 092455c46fc..70068fc47f3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContainedAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 9219044f564..8988018fc59 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 83dfd577ba2..a148841325c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileContainedAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 32b97df0a52..60a2f88609c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs index a299359ea30..33b039325d2 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index c43c6cb7057..8e39a5483c6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs @@ -47,7 +47,7 @@ public static CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(Microsoft.Graph.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 66debd147b2..b5c863d1fe7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommitRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index a7644213618..707696e3b76 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index e22ae1abed6..b8f66161719 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs index 0cd796004dd..a5074ee2910 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/MobileAppContentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs index 1d246ec66f7..c0f4e51d50b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -83,7 +83,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs index 3bae831e620..aa44dfcdc8b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs index 32bf52c9e40..97391ec206d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 52891215acf..9af38f72746 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs index 73fe2224309..b49d87cc463 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs index 0887fb30e64..752427361ca 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 1192afcf24d..a35ea14cc76 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs index e5671badd2a..6816d1a7dde 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index ab91ae1f863..d2b5f20932f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -144,8 +144,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windowsAppX object. - /// Find more info here + /// Read properties and relationships of the macOSOfficeSuiteApp object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -164,8 +164,8 @@ public async Task GetAsync(Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a win32LobApp object. - /// Find more info here + /// Update the properties of a windowsMobileMSI object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -207,10 +207,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsAppX object. + /// Read properties and relationships of the macOSOfficeSuiteApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -225,7 +226,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a win32LobApp object. + /// Update the properties of a windowsMobileMSI object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -253,14 +254,14 @@ public RequestInformation ToPatchRequestInformation(MobileApp body, Action @@ -287,7 +288,7 @@ public MobileAppItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the windowsAppX object. + /// Read properties and relationships of the macOSOfficeSuiteApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index 2d9ccabacc1..47ca541bfb3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -122,8 +122,8 @@ public MobileAppsRequestBuilder(Dictionary pathParameters, IRequ public MobileAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windowsMicrosoftEdgeApp objects. - /// Find more info here + /// List properties and relationships of the iosiPadOSWebClip objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,8 +142,8 @@ public async Task GetAsync(Action(requestInfo, MobileAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new windowsUniversalAppX object. - /// Find more info here + /// Create a new iosLobApp object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -164,7 +164,7 @@ public async Task PostAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the windowsMicrosoftEdgeApp objects. + /// List properties and relationships of the iosiPadOSWebClip objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -179,7 +179,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windowsUniversalAppX object. + /// Create a new iosLobApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -207,14 +207,14 @@ public RequestInformation ToPostRequestInformation(MobileApp body, Action @@ -225,7 +225,7 @@ public MobileAppsRequestBuilder WithUrl(string rawUrl) { return new MobileAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the windowsMicrosoftEdgeApp objects. + /// List properties and relationships of the iosiPadOSWebClip objects. /// public class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs index 49bba9d5bdc..a66529d6d7a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.cs index 08419d71c2d..df854f738fc 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs index 57792cf0b27..e4d90229a4b 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs index 357c03646f6..d5c4c7586b7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index b84757e3b8b..b1537eb4b4d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ManagedMobileAppItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs index 8481ed30c6b..2a3945e4eab 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs index a80185d5671..f1d7e30d684 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index 33feea9c430..2b62bd2dee8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 00ce6f69491..e8e6c15a497 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index f1cda2eb3ae..b3fa9b91c57 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppPolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index 2481ed0533b..f9963c0da96 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeploymentSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs index 7dd8422c78d..ea112ab116d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs @@ -52,7 +52,7 @@ public static TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appGroupType", n => { AppGroupType = n.GetEnumValue(); } }, {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("appGroupType", AppGroupType); writer.WriteCollectionOfObjectValues("apps", Apps); diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs index c1a1e77f7b9..7968dba6f20 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs index e34223dbf4f..9e84755ac0c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppConfigurat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs index c8bb6070e37..a4506c2afe1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppConfigurati UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs index 56688a8bb49..d192e025649 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs index c0cc02177a9..1e0e167f24c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.cs index 0c75a418356..43f16fc3537 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/Item/VppTokenItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(VppToken body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs index 1af2d040a65..2bdc60890fb 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(VppToken body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs index c3dd44c8fe3..cd05dd8500a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs index 755c4e51b97..300f094159d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs index ea88fbe967b..6f4a71f2ce3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 62c436b9177..01b41bb47b1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TargetedManagedAppPolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs index c0f56220e57..40e68f270e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs index 59b0e33a6f2..abe7189bd4f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExemptAppLockerFilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index 1de820f27a4..233dae916a9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionAppLockerFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs index 4f55e67a8e3..78b4545e136 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index 96f52d72b25..ee68343c53d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionAppLockerFileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs index 33c46bed76a..342ed20f305 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProtectedAppLockerFilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs index e5d89a8c37d..e1c434bd820 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs index 7f8a28fb6dd..785ee6ab3f9 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs index a396dcf0f00..3eabdbbb394 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Apple UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplePushNotificationCertificateRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs index 1dde7ad0392..1c10bb0b38c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs @@ -46,7 +46,7 @@ public static DownloadApplePushNotificationCertificateSigningRequestGetResponse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs index e8e6c7fd85e..3e4fed5e932 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.cs index 0ee71c7dbe5..04a88c7fd0d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/AuditEventsRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(AuditEvent body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs index a87c4444cd9..26a065cf2dd 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs index dc4af2f7cb3..9373ae1655a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs index 13e5fbf8e99..f6ae515ac95 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs index ef4423c100b..664a915450e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs index 7a643e1b9ed..d24d529cee4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs index 6a6804dab22..c823a702fcf 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(AuditEvent body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs index d4ee6dc02a4..78f0016e3bf 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ComplianceManagementPartner b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ComplianceManagementPartnersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs index 25e0d597bce..0216f145c72 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs index 956f9201ed5..93131db47aa 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ComplianceManagementPartner UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ComplianceManagementPartnerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs index 98c250ca8f9..5944e2a0de1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(OnPremisesConditionalAccessS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConditionalAccessSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs index f73d949a8c5..0b3f0f57b14 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs index c5fc1713d22..1893720552a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DetectedApp body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs index 0161b0c3449..f7582be03e2 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(DetectedApp body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs index 1bbd02d49bc..9535f487f6d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index 723e67b6da1..d8f1694c510 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs index d84c73fccd8..d7868aaf62c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs index 180a6f41733..6d54b0b8e3a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs index ef4a3e6697a..3a5449fc3fa 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Device UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs index d1f92de3d46..f490969bd27 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCategoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs index 1c752ec2b67..3927d977a29 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index 7f38e6c8067..5ea6b1f646e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceCompliancePoliciesRequestBuilder(Dictionary pathPar public DeviceCompliancePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows81CompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the iosCompliancePolicy objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new androidCompliancePolicy object. - /// Find more info here + /// Create a new macOSCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceCompliancePolicy body, return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the windows81CompliancePolicy objects. + /// List properties and relationships of the iosCompliancePolicy objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new androidCompliancePolicy object. + /// Create a new macOSCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicy body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public DeviceCompliancePoliciesRequestBuilder WithUrl(string rawUrl) { return new DeviceCompliancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the windows81CompliancePolicy objects. + /// List properties and relationships of the iosCompliancePolicy objects. /// public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs index fd9ccaa358b..c4a5cb3465d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs index d179597a2ef..9a3a0652544 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs index 07634e041b6..df8c13bfa79 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs index c9e3f866cd2..3fdda285c61 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyAssignm UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs index cfbdb7b2300..3e927f39f45 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs index d2006c83c10..64cc6337902 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyAssign UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index d04ea03b5c7..0d6da1b63cc 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -74,8 +74,8 @@ public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathP public DeviceCompliancePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a iosCompliancePolicy. - /// Find more info here + /// Deletes a androidWorkProfileCompliancePolicy. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -94,8 +94,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the macOSCompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,8 +114,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a windows10CompliancePolicy object. - /// Find more info here + /// Update the properties of a androidWorkProfileCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public async Task PatchAsync(DeviceCompliancePolicy body return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a iosCompliancePolicy. + /// Deletes a androidWorkProfileCompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -157,10 +157,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the macOSCompliancePolicy object. + /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows10CompliancePolicy object. + /// Update the properties of a androidWorkProfileCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicy body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -237,7 +238,7 @@ public DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the macOSCompliancePolicy object. + /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. /// public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs index cb45e40051b..a21dc150c5b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs index c80e7f963cb..998bf050017 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(SettingStateDeviceSummary bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceSettingStateSummariesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs index a9edf9b6586..87d2c2ce9cc 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SettingStateDeviceSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs index 2cad1d53b02..82bb34fdb9c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceDeviceOvervi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatusOverviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs index 65d04590c28..667aaf5768a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs index fe977f45f42..8f2c24f4b09 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceDeviceStatus UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs index 727002df77c..30cc44d3d18 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceDeviceStatus UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceComplianceDeviceStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs index baa0e6ba081..1b7a7ef729b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs @@ -47,7 +47,7 @@ public static ScheduleActionsForRulesPostRequestBody CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceComplianceScheduledActionForRules", n => { DeviceComplianceScheduledActionForRules = n.GetCollectionOfObjectValues(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("deviceComplianceScheduledActionForRules", DeviceComplianceScheduledActionForRules); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs index e7d75831995..0f56569cb2b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ScheduleActionsForRulesPostRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduleActionsForRulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs index d95a6aa5356..85d2c2f8c34 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs index 7777468522a..903fcb631eb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceScheduledAct UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceComplianceScheduledActionForRuleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs index d356f6dc99b..dc151dfc885 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs index 0d8513b7fac..be432d844c6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceActionItem b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceComplianceActionItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs index 0b2d8803dd6..0eaf8727466 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceActionItem bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduledActionConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs index 6f04085f563..134c0f725b0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceScheduledActi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduledActionsForRuleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs index ec9e1090ac9..a04659c6036 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceUserOverview UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStatusOverviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs index fabbd36fdae..2c5b404089b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs index 551d06d74ae..318029967e4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceUserStatus b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceComplianceUserStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs index d2ecc1fc662..9c183125a42 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceUserStatus bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs index bfa851a3339..7f6bb67b086 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyDeviceStateSummaryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs index 18369c322c3..45bd67e7eac 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs index 623a303a0ee..91630e1d162 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicySetting UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicySettingStateSummariesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs index 8184b2c7a74..bf790bae30d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicySettin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicySettingStateSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs index 8a48020092f..6ccc8f58a3b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs index e12d0462d38..b3ea9071bdf 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceSettingState UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceComplianceSettingStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs index 481bdc072a4..1310d5d6a3c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceSettingState UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceComplianceSettingStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs index eff630718d7..c49e7a8a348 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceSta UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationDeviceStateSummariesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs index 279c64c90c1..a5e0d131b45 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index f318d300178..55fe1fbb1c0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceConfigurationsRequestBuilder(Dictionary pathParamet public DeviceConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows10CustomConfiguration objects. - /// Find more info here + /// List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new iosUpdateConfiguration object. - /// Find more info here + /// Create a new macOSGeneralDeviceConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceConfiguration body, Actio return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the windows10CustomConfiguration objects. + /// List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new iosUpdateConfiguration object. + /// Create a new macOSGeneralDeviceConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfiguration body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public DeviceConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the windows10CustomConfiguration objects. + /// List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs index f5daabe660e..5f15fc11739 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs index e9313ce0d10..a1f47b17572 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs index 902ca303543..a000987a028 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index 6eedf1e060b..e3dbec812a5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationAssignment UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index d0bfbd1e63b..1dd2cfbf6f9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs index f04709f1ad8..cc84c36f832 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationAssignmen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 4946566dea6..c1d847d0055 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -65,8 +65,8 @@ public DeviceConfigurationItemRequestBuilder(Dictionary pathPara public DeviceConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a editionUpgradeConfiguration. - /// Find more info here + /// Deletes a windows81GeneralConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,8 +85,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the androidGeneralDeviceConfiguration object. - /// Find more info here + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,8 +113,8 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder GetOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters, RequestAdapter, secretReferenceValueId); } /// - /// Update the properties of a sharedPCConfiguration object. - /// Find more info here + /// Update the properties of a windowsPhone81CustomConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -135,7 +135,7 @@ public async Task PatchAsync(DeviceConfiguration body, Acti return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a editionUpgradeConfiguration. + /// Deletes a windows81GeneralConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,10 +156,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the androidGeneralDeviceConfiguration object. + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,7 +175,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a sharedPCConfiguration object. + /// Update the properties of a windowsPhone81CustomConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -202,14 +203,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfiguration body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -236,7 +237,7 @@ public DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the androidGeneralDeviceConfiguration object. + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs index 8ecdc3d56f0..f3e91836884 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs index 9621dd5cb4a..20970d809a8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SettingStateDeviceSummary bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceSettingStateSummariesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs index d902fd6799b..d9e583c39ea 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SettingStateDeviceSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs index 5ad9a2e3149..9478698dbba 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceOve UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatusOverviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs index 541166d4e04..39c24b9e8ae 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs index 6a236508d52..23dcfb7b5ae 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationDeviceStat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs index a0124ea906e..98b7ddf2bb2 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceSta UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationDeviceStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs index 56f79a0e6d2..cc565fd2759 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs @@ -46,7 +46,7 @@ public static GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse C /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs index e00c43b7c9d..9e9c2e0e006 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs index 805581d5120..e03ec3c9a85 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationUserOverv UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStatusOverviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs index 08fb777e3ce..4fbb7104759 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs index df411766e17..f50f23c4f2b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationUserStatu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationUserStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs index 1d85bc57b59..e0f5ac4fd64 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationUserStatus UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs index f381066ac58..1336f5744ce 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index 5800ca4b33c..8d0f5c85b56 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceEnrollmentConfigurationsRequestBuilder(Dictionary p public DeviceEnrollmentConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. - /// Find more info here + /// List properties and relationships of the deviceEnrollmentConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceEnrollmentConfi return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceEnrollmentConfiguration UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceEnrollmentConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentConfiguration objects. /// public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs index 76056dc6e59..2cc66a4d39c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs @@ -47,7 +47,7 @@ public static AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"enrollmentConfigurationAssignments", n => { EnrollmentConfigurationAssignments = n.GetCollectionOfObjectValues(EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("enrollmentConfigurationAssignments", EnrollmentConfigurationAssignments); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs index 638202cef2a..241cc360e71 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index 669fae2fe6f..27ff28aa2c5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EnrollmentConfigurationAssign UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 054a6fdc270..b6c35daf2b9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs index a9fa49bec60..7905ed2df9e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(EnrollmentConfigurationAssig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EnrollmentConfigurationAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index ef340c50499..70b3be282cd 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -44,8 +44,8 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(Dictionary - /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. - /// Find more info here + /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -64,8 +64,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -106,7 +106,7 @@ public async Task PatchAsync(DeviceEnrollmentConf return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. + /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,10 +127,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(DeviceEnrollmentConfiguratio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -207,7 +208,7 @@ public DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration } } /// - /// Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. /// public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs index 7585c2f9d9f..f0fa6020464 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs @@ -37,7 +37,7 @@ public static SetPriorityPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"priority", n => { Priority = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("priority", Priority); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs index dd2438c1c38..689fe42e3c9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetPriorityPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetPriorityRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs index 7625e52a6e2..6ea746a1c41 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs index 196448bc9f1..3d3a39220af 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceManagementPartner body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementPartnersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs index 5fada1f7859..73deff43d23 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementPartner body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementPartnerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs index cbdca31cb9e..fe0d4621412 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index ba85db00ff2..e3d84fd0ecd 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -322,7 +322,7 @@ public DeviceManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -350,7 +350,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder GetEffectivePermissionsWit } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -386,7 +386,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -414,14 +414,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs index 7a2dbdff1ed..e1888de959e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs index 4a33f4f7ad2..46d05a59c6e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceManagementExchangeConne UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExchangeConnectorsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs index b41813b2f59..0a448430b3a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementExchangeConn UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementExchangeConnectorItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs index 465754cf885..014ef91d1a5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs @@ -38,7 +38,7 @@ public static SyncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"syncType", n => { SyncType = n.GetEnumValue(); } }, }; @@ -47,7 +47,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("syncType", SyncType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs index 7ef73e2c243..2b612e218ef 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SyncPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SyncRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs index daf1cb3821b..87c42fa965b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RolePermission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs index 8aa8e7e0508..5f5e8dae445 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs index 299c933b700..e768fce41ac 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs index eff7cc5e878..bca55f6e8e7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImportPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"importedWindowsAutopilotDeviceIdentities", n => { ImportedWindowsAutopilotDeviceIdentities = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("importedWindowsAutopilotDeviceIdentities", ImportedWindowsAutopilotDeviceIdentities); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs index 078dae125d1..83f56666862 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs index 3d922e27da0..e3e42e5a436 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(ImportPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs index 57274080087..6adf5e29f1c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ImportedWindowsAutopilotDevic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImportedWindowsAutopilotDeviceIdentitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs index 3ed5126c5c7..99dfd645fd2 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ImportedWindowsAutopilotDevi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImportedWindowsAutopilotDeviceIdentityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs index 0bbfa7f704c..5131622875f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs index e11b46ba644..8d77258bff4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(IosUpdateDeviceStatus body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IosUpdateStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs index 0fa56a5aeef..45aa8906095 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(IosUpdateDeviceStatus body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IosUpdateDeviceStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs index da760322b7c..2a03bc56c82 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs index a41ffbdd6ed..6f5a8bbd96f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs index 2992b8a9ac6..297dbc54695 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs index 96a6e4cc7a3..5379a7f7588 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs @@ -37,7 +37,7 @@ public static CleanWindowsDevicePostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keepUserData", n => { KeepUserData = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("keepUserData", KeepUserData); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs index b1bbe77b7db..704c0a421c6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CleanWindowsDevicePostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CleanWindowsDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs index daf2b53e397..ec465c112f9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs @@ -46,7 +46,7 @@ public static DeleteUserFromSharedAppleDevicePostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("userPrincipalName", UserPrincipalName); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs index 1cb4a74300a..4bea8d5ec85 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeleteUserFromSharedAppleDevi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeleteUserFromSharedAppleDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs index 37df8822635..98797af6e73 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCategoryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs index facbcba7f93..6032579607c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs index fb7ee194775..9866863a5a8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyState b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs index e48b041e5ed..496317ecf30 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyState UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs index 3a5fb58fb45..0da74b5552a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs index 5e0d8451e22..13c39267162 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationState body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs index 76aefe1cd70..ce7d909e859 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationState bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs index 291541826c1..aaaffea82c9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs index b4deb63cd52..6dcd060d6fb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs index 793347c0394..31b7d1ac62e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs index 07fea05225e..8292b51af80 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -46,7 +46,7 @@ public static CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index 0ef268412e8..dd704655e8e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs index 225bf58d7c5..e2730f37772 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DeviceLogCollectionResponse UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceLogCollectionResponseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs index a495f8690bb..db1a2424d09 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceLogCollectionResponse b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogCollectionRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs index 78027862c62..c7379e2dd15 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index 4a81f8ea81e..72e972f9625 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -232,6 +232,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -250,7 +251,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -278,14 +279,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDevice body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs index 284cd9de9f7..8506345d591 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs index cb7e0966e02..7fb480aebf9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs index 6064401445d..f12b472bfea 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs index d294f7eaef6..55f1180aef0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs index 11c02ea1d72..c4459ac138d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.cs index e4d9d7d5e8a..1d3c5103986 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Retire/RetireRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs index 28b6077f3e2..09f89877c31 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs index 5087805d41c..f8fdd7c9a79 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs index d74f06b6db7..3ffc0c4a31a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs @@ -47,7 +47,7 @@ public static UpdateWindowsDeviceAccountPostRequestBody CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"updateWindowsDeviceAccountActionParameter", n => { UpdateWindowsDeviceAccountActionParameter = n.GetObjectValue(Microsoft.Graph.Models.UpdateWindowsDeviceAccountActionParameter.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("updateWindowsDeviceAccountActionParameter", UpdateWindowsDeviceAccountActionParameter); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs index 38ba1f2aa78..0d1f4523dd7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpdateWindowsDeviceAccountPos UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateWindowsDeviceAccountRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs index f818dcfa65a..3cf344f3ed1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs index 6d4d2565088..b381bc745bb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs @@ -37,7 +37,7 @@ public static WindowsDefenderScanPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"quickScan", n => { QuickScan = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("quickScan", QuickScan); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs index 1bd2bca8d20..f8d35dc0ce9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WindowsDefenderScanPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsDefenderScanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs index 9fd7e0c5273..27d1eaebc5e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs index 4bf4bbff064..0ffcedfb22e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs index 75d9c795977..eb943b74be4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsDeviceMalwareState bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetectedMalwareStateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs index 949cbaed6fd..6ba02e5e6c9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(WindowsDeviceMalwareState bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsDeviceMalwareStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs index 22faa4c5b22..0f0033ff296 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Windo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsProtectionStateRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs index 29fed55972d..af9edcbb45c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs @@ -61,7 +61,7 @@ public static WipePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keepEnrollmentData", n => { KeepEnrollmentData = n.GetBoolValue(); } }, {"keepUserData", n => { KeepUserData = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("keepEnrollmentData", KeepEnrollmentData); writer.WriteBoolValue("keepUserData", KeepUserData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs index 9bd8ca3f2ad..51f9ebfffa4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WipePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WipeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs index 8bfe4f3c8cb..b24b07c1ddc 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ManagedDevice body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs index d2a92d883cf..c4b96a4cacb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs index d195f0fe009..f5e440e1356 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppLogCollectionRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppLogCollectionRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs index 77db4783cc2..dd4f05e0355 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs index e221a7a7cb2..c3c1ceed2df 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(AppLogCollectionRequest body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppLogCollectionRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index 3979c5dfb1a..23f729eb394 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.cs index 73b62954b29..15e618ae4cd 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/MobileAppTroubleshootingEventItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(MobileAppTroubleshootingEven UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppTroubleshootingEventItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs index e43b8ac0df7..bd0053ea498 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileAppTroubleshootingEvent UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileAppTroubleshootingEventsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs index a45ee80917d..34b48469c9c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs index a006650a189..76e81a07657 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MobileThreatDefenseConnector UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileThreatDefenseConnectorItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs index 2f375517445..95455311d5f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MobileThreatDefenseConnector UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MobileThreatDefenseConnectorsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs index 29157f726b6..c56ceb45aa0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs index 3bc52773fb8..fd1ba31cf54 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs index ab9f554e192..6960348bc9e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(LocalizedNotificationMessage UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LocalizedNotificationMessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs index d43650117d2..1ad9c28cf5f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(LocalizedNotificationMessage UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LocalizedNotificationMessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs index 44bb6b385a1..b385a90d510 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(NotificationMessageTemplate UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NotificationMessageTemplateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs index cddac8b15e9..7d9d074a06a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.cs index 2d997041b5f..8ea9b7d6af3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/NotificationMessageTemplates/NotificationMessageTemplatesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(NotificationMessageTemplate b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NotificationMessageTemplatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs index 6909a54b7d4..eb6959166f7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs index 518945bd791..cbd945f81a8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.cs index b31334231ef..90afa30b031 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/Disconnect/DisconnectRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.cs index dc178b20916..761bb33cd1d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/Item/RemoteAssistancePartnerItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(RemoteAssistancePartner body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoteAssistancePartnerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs index c74baf2693b..fc98836a2ff 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(RemoteAssistancePartner body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoteAssistancePartnersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs index b9e90e9b47f..5e097e4c871 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs index 8e84ef90f1b..e553bc608a8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceManagementExportJob bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExportJobsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs index 8e4b13ba047..09386d5c513 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementExportJob bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementExportJobItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs index dba3cc75650..1a72b7c6ae3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs @@ -112,7 +112,7 @@ public static GetCachedReportPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs index b2a815122a4..21433c97103 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetCachedReportPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetCachedReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs index 1b13681e55a..a3ae32e9acf 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetCompliancePolicyNonComplianceReportPostRequestBody CreateFromDi /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs index 6dc54b3f716..4ed8ec2e69f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetCompliancePolicyNonComplia UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetCompliancePolicyNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs index 1e1cf7b4548..28a773e4971 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetCompliancePolicyNonComplianceSummaryReportPostRequestBody Creat /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs index 2e7183c3aa6..22a623ab245 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetCompliancePolicyNonComplia UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetCompliancePolicyNonComplianceSummaryReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs index 2532468d8e4..897664a8e81 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetComplianceSettingNonComplianceReportPostRequestBody CreateFromD /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs index 69bec1b46ed..df96add8395 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetComplianceSettingNonCompli UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetComplianceSettingNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs index ab72e96d289..7856e6b8bce 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetConfigurationPolicyNonComplianceReportPostRequestBody CreateFro /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs index c3ddd77720e..8f37a08d29a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetConfigurationPolicyNonComp UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetConfigurationPolicyNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs index 0212e624cef..7b22d894bbb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody Cr /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs index c3526cf72ba..8f6bfa2f4c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetConfigurationPolicyNonComp UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetConfigurationPolicyNonComplianceSummaryReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs index 40f1e3ce416..17a02c35b55 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetConfigurationSettingNonComplianceReportPostRequestBody CreateFr /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs index 5a6663dba41..61641431cfa 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetConfigurationSettingNonCom UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetConfigurationSettingNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs index 6aa1c78ea68..21edb710e6d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetDeviceManagementIntentPerSettingContributingProfilesPostRequest /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs index af378992ace..573e09f2c76 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetDeviceManagementIntentPerS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs index 06573d7b295..35dd3f68188 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetDeviceManagementIntentSettingsReportPostRequestBody CreateFromD /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs index 105333761cb..aa8bb871491 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetDeviceManagementIntentSett UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetDeviceManagementIntentSettingsReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs index 97c39169436..66e6b6cca9f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetDeviceNonComplianceReportPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs index 6c1f8ee37f4..1885fde191a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetDeviceNonComplianceReportP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetDeviceNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs index b5a73233192..4dbc0f7c62a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetDevicesWithoutCompliancePolicyReportPostRequestBody CreateFromD /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs index bb6ce2ba24d..6349d635eb5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetDevicesWithoutCompliancePo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs index 8bbdce2991a..189e30e9ee5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs @@ -126,7 +126,7 @@ public static GetHistoricalReportPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -142,7 +142,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs index eb41d5d210a..9dd8a6d5b7f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetHistoricalReportPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetHistoricalReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs index 91b05f5297e..7d1aa846866 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetNoncompliantDevicesAndSettingsReportPostRequestBody CreateFromD /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs index de623aa10ef..bc275e547fe 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetNoncompliantDevicesAndSett UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetNoncompliantDevicesAndSettingsReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs index 56074ec931a..10fe3975347 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetPolicyNonComplianceMetadataPostRequestBody CreateFromDiscrimina /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs index 4f7497a4d7f..4e3d9fa32a4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceMetadat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetPolicyNonComplianceMetadataRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs index 77812fd0b07..08b672247c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetPolicyNonComplianceReportPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs index 9cdabefe717..af95764fce9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceReportP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetPolicyNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs index 04927599918..5db43183fff 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetPolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscr /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs index c90517fad80..6af626921e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceSummary UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetPolicyNonComplianceSummaryReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs index 0b052d6d8eb..49f25a37ba5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetReportFiltersPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs index 3cd38ca1045..9942dee05e8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetReportFiltersPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetReportFiltersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs index 211c0304915..3693ab85ac3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs @@ -140,7 +140,7 @@ public static GetSettingNonComplianceReportPostRequestBody CreateFromDiscriminat /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"filter", n => { Filter = n.GetStringValue(); } }, {"groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("filter", Filter); writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs index a77cf1697cc..433b8badd7e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(GetSettingNonComplianceReport UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetSettingNonComplianceReportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs index b4f0888d300..ef73f554241 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/Reports/ReportsRequestBuilder.cs @@ -206,6 +206,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -224,7 +225,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -252,14 +253,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementReports body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReportsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs index f24a5188f6a..4ff23b7247c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs index 4d2554a740b..ae928cce560 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ResourceOperation body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs index 88e599b703b..6f8cdd51a0b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ResourceOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceOperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs index 13f45216290..25cdefeb20e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs index fd070a1af49..d74ac3933ad 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(DeviceAndAppManagementRoleAs UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceAndAppManagementRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index af7efa34af9..53cf82059b3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 51d0cc5f785..daebb5d075f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DeviceAndAppManagementRoleAss UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs index 7d8ba505859..6e4f2efab0a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs index 7fcf1f480f9..e4890343cc7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs index cb0fcb8e61a..2c809bc348f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(RoleAssignment body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index d8b4f6a60a4..608764a1d61 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs index f7d8caac3bc..ae899be2256 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(RoleAssignment body, Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index 83164d02ff5..fbc0bc69aa3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a roleDefinition object. - /// Find more info here + /// Update the properties of a deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a roleDefinition object. + /// Update the properties of a deviceAndAppManagementRoleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.RoleD UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index ab784a02a38..dbccfde0308 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, RoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new deviceAndAppManagementRoleDefinition object. - /// Find more info here + /// Create a new roleDefinition object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceAndAppManagementRoleDefinition object. + /// Create a new roleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.RoleDe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs index ce8544c1a61..b775fe339e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs index 2aed4a7a613..461a7e3e7e4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs index 9586fdc5750..967e7c6b828 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TelecomExpenseManagementPart UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TelecomExpenseManagementPartnerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs index 916ddfb7bd9..59ea2eea78f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TelecomExpenseManagementPartn UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TelecomExpenseManagementPartnersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs index b9499b7760d..4b5ee4b698e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs index 9a0135ec32b..5e5cf4cb0a9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TermsAndConditionsAcceptanceS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptanceStatusesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs index 7ead2cc09c1..045fb1404aa 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs index 6d0caa5c823..e030b318ddb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs index 771723c6482..86e8525cc66 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TermsAndConditionsAcceptance UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TermsAndConditionsAcceptanceStatusItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs index f1153d9b5ed..55fb86aa1db 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TermsAndConditionsAssignment UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs index be75988b1f3..07f92e088fe 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs index b2a311022eb..798f90767dc 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TermsAndConditionsAssignment UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TermsAndConditionsAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs index 3f98ef41125..c69173226de 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Terms UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TermsAndConditionsItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs index 095fd9cd891..ed06d6a5dbb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermsA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TermsAndConditionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs index dd6a0480b3f..d07bde83b00 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs index 6a9a9be0523..ce8dee9e3a7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementTroubleshoot UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementTroubleshootingEventItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs index 240b3fe4079..631e9ce4904 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceManagementTroubleshooti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TroubleshootingEventsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs index 15ba9ffeff7..077e7d23fd1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs index b68d4c605b0..afd6b55fc55 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs index a11cf97dab4..95c7bd3b896 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs index dd371ea12df..82385bad44c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs index 65f97d594f7..9688b615137 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs index 38588704486..96503e4babb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHea UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs index 009611a72b3..8530023a339 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs index e3e8ea02045..a604747df9d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs index 09822f9e1a8..35850c76211 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHea UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs index 00001916a63..0a3d9d4cb68 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs index 51c6d1b010b..c2cbe45f38a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs index 28cc80990dd..7e1078970a9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHea UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs index 4f70ecd94b0..2a6a12b0c4b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs index 23206c6c410..186bf58798f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs index 4c2d4d853cb..81453659b29 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs index 394e68b8cd7..0e86b33f7b8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs index e4f7b826554..1096e604d01 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs index e4169546a6f..c4156fc5484 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs index bcf63b55070..a4e6714aae6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs index 16a5d37a425..89b5f610aac 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs index b8218ffe8a9..d5cac3f2866 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs index d067c650b3a..ab8874b2d11 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs index cf75ea1ec84..e510ff809d0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs index 89c00735b62..48b4a58939e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs index 7db09240370..482c0eccfaa 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs index d3f161449a6..786e89a7e5d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetri UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsMetricItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs index c27ec031149..f534dff3e6e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsMetric UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MetricValuesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs index e30720b9839..019f3d66c97 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsCateg UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsAppHealthOverviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs index 4c3f3f4c7f5..41fe73d48a4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs index 60b6053db50..0ac703dba80 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs index 1a354716ea2..f744500e8b0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs index e3f5ccc429a..1c36e67495a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs index 7cfbc1d4766..e8f2add6a96 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs index e6eb45d143e..cb8e7e96719 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs index de6799c4b12..c022d83774e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs index 8f6cbba5563..a27ab5bef65 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs @@ -144,6 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -162,7 +163,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -190,14 +191,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsBasel UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsBaselineItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs index 7e1a5c98334..2a02efee88a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs index 370e0348357..002b890a6ea 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsBaseli UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsBaselinesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs index db76f81c299..dbdfbe8a2fc 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs index 39c869eb6b5..e153b7e4561 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs index 63885940b78..594f83838c5 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetri UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsMetricItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs index 21d8c730a27..185865b4dcb 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsMetric UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MetricValuesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs index 38e0e9a18e3..7d5453df7b0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsCateg UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsCategoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs index e13d9aa2673..32d152a55af 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsCatego UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsCategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs index de3141ef055..3ae28bd4a30 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs index dfb65945938..0310e436054 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDevicePerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs index 34eaa20e860..b163c760e36 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs @@ -32,7 +32,7 @@ public List Val /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Val /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs index 27da7ea1c3b..cafe28e64c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs index df52470dc40..5378626e55c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs @@ -106,7 +106,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -134,14 +134,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDevicePerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs index ae4fe5d900a..9eef2606c59 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs index fc1c6fd5472..a22bd414ab4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceScoresItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs index a2bc6a71436..c50aecd7870 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceScoresRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs index 0300d5a7511..fee949be59d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs index 7603b06272d..454f17b44dd 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs index 3e1a1027203..7095bc18ab1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceStartupHistoryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs index c0ccfa6b49e..c441fd31b13 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs index 854266e965e..a88eeb2111d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs index f4255b28f04..e6d3a898b21 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs index 350aab9497f..8e8206c8019 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs index 1c4c0acc413..dbe1f047887 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsDevic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs index 9d330a9ae79..cee584584d6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsDevice UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsDeviceStartupProcessesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs index a48b58ab162..07811a75e0d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs index 10cdc608f50..5c6cea347ec 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsMetricHistoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs index f017ecb9d92..19668d1a180 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsMetricHistoryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs index 9cedccc5988..c400cf56128 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs index 05b9058b079..a72b65e27fa 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsModelScoresItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs index 53ff20a0acb..c2e1f08601f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsModelScoresRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs index f18a8fd6ef1..f21db90ecd8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsOverviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs index f0e843beba8..fc3e0951946 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs index ce013065267..44205f44233 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsScoreHistoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs index d4817705a51..ee4af345bb9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsScoreHistoryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs index b7d25bc4f72..e9044f0ece7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.cs index e9daf97a527..5d0111adcef 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs index 7d7c9a19103..d6b80e12df1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs index 10d09e8ede4..06f49ddd2e8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs index e8b5e057af0..bc9912d2541 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkF UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs index 4d4a28bb9ec..087d9cc992c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsWorkFr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MetricDevicesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs index d00ca9aad94..0abc5c2a2e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkF UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs index 1f33583cdd4..8742bb20ec9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsWorkFr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs index 6d4b8ba303d..f93abe7b02d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs index dfff5b0cbe4..acd7d882562 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserE UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs index 98ac02aaf7f..bcd16379f53 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserEx UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs index 68bd3bccf31..1d982bf6af7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs @@ -37,7 +37,7 @@ public static VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse Crea /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs index 15bd2091711..5fca5bf87c6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs index 8ecb2238531..4e1bc2cc4c1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs index 99ea631204c..de023ca884c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs @@ -60,7 +60,7 @@ public static AssignUserToDevicePostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addressableUserName", n => { AddressableUserName = n.GetStringValue(); } }, {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("addressableUserName", AddressableUserName); writer.WriteStringValue("userPrincipalName", UserPrincipalName); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs index 7b1c3edc134..efed9771a29 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssignUserToDevicePostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignUserToDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs index e5ae783e80e..608a28db1bc 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesPostRequestBody.cs index f59ab3c9570..9aeeaaa934d 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesPostRequestBody.cs @@ -88,7 +88,7 @@ public static UpdateDevicePropertiesPostRequestBody CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addressableUserName", n => { AddressableUserName = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("addressableUserName", AddressableUserName); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs index 815370ad5ec..69b199c34e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpdateDevicePropertiesPostReq UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateDevicePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs index d87296813a1..ef34f946b41 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(WindowsAutopilotDeviceIdenti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsAutopilotDeviceIdentityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs index 962959a3b6e..abba362bb46 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsAutopilotDeviceIdentit UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsAutopilotDeviceIdentitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs index b0291e67878..8865b8f7b17 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs index 7c4d8f67b1a..cadf3bfe6e3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionAppLearningSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs index 4ccbb9e9c8c..7abde48a8a3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionAppLearningSummariesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs index c7f2cef4051..debf13ff10c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs index 59e16c21af7..4ebe7b1469c 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs index f337c651d95..ac353060b72 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionN UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsInformationProtectionNetworkLearningSummariesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs index ee619ab56b4..9eca55368c3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs index b01264a19ed..44d258fe775 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs index f314e0f384f..2ecb9369f5e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MalwareStateForWindowsDevice UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceMalwareStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs index db2fa9e0743..355908bdba0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MalwareStateForWindowsDevice UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MalwareStateForWindowsDeviceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs index 657362cfc28..bb22efe76af 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Windo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsMalwareInformationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs index ea2e6079223..485c838415e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Window UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsMalwareInformationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Count/CountRequestBuilder.cs index 8741cda219f..5a80bd8ad66 100644 --- a/src/Microsoft.Graph/Generated/Devices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs index 609caf16661..98c7e36f2d7 100644 --- a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs index 365d5cce0df..df145153f7b 100644 --- a/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs index b4e0f90b57e..cf3b83c8990 100644 --- a/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Device UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DevicesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index e48da59093d..d4f35e8a918 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index ca6923690bc..6858f3c4208 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index ab155bbb043..03b01e1d09e 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostRequestBody.cs index ae97fba62df..64a214ebf45 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs index 6062272e09d..d6312dd939f 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs index e4835c6699b..96e4000b9ca 100644 --- a/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 6dc2759e3f6..47fac81553c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 78e1b11789f..9f268f75247 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index de74e386012..188da81e724 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 6a58cd2afdb..2b671452612 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 920ec040d6a..921f4d68d78 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 97bda4f362c..2642ced266e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs index 3b7bf86c770..d3f8a258e5b 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/DeviceItemRequestBuilder.cs @@ -162,6 +162,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -180,7 +181,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -208,14 +209,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs index 8cd3015a8c9..6297c094f58 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs index db397fab129..f509bda618e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 838a5ea13c5..342d714b77c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 151207ebfda..e9524996710 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index c1cd1d3e26f..29f65ca626f 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index ce401b056f5..1409e602d90 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 2aef228795e..ef9f5f99df3 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 1988d2a478e..64f06f75108 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index f3a76d7d89c..a1faf99fdc0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs index 27d5a45ffca..bbc6d6e39d9 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index f64512aa30f..e588cb2141f 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index ed6ebdee12c..65d76547bb0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index 370ef4e6bb9..1c219ca0ad7 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index ddf769b6a65..c5c26a91c0e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 524ded5b4c8..7557450dfcd 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index fc8fadf47cc..f9698fa1163 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 503cdab4020..0773257280e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs index c0df9cdb9a6..c4c77ecb49e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs index 7c553425691..b35de722a9e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index 93a2f5d0b0f..3f190548285 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index e48f854be07..f8ea1b3181e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs index a3d84208545..743725965e5 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs index 19e0a55b0b1..51791ce8fd0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs index 4d6256d4217..5ff0f5f0d7e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 5401dfa65dc..1a68df6dd8e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs index d4ca7dbddf7..476e25dae95 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs index 66aca3be549..ff1d840fdb0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index ec0c82177a6..9dc1bd9a0f1 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index f5f20245fe2..afc91a88ed2 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index cc5bcc5ec36..4fb46acf31a 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs index 7cb14835233..ad62e26c147 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index 403e9929f3c..d56a1a9d4c7 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs index c20cf6bf853..ac06a44eb1f 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs index 9c8b9ab6754..f15d66f8b06 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs @@ -102,7 +102,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs index 95fe07b1393..375258022ce 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index fbed1b5fc1c..e67cb5a371c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 17d2d27c751..47883d92ef0 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs index a9d3cd5b04a..5424fcd66a5 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs index fd22bd0d6e6..27135a1764d 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs index 3e142207836..d3f9ca75251 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 79b26bf0e73..9de52c24b6b 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs index 5f793c8e671..db1b47344dd 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs index 342a59af967..a9945f33aff 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 7a2ae8259b5..9450a16776c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index aa5f5e1b451..c086fb63381 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index c5bf6ace9a5..5a5e3105126 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs index 22e9e1cdb32..5964a88a018 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index bc49acea931..5ed83bee17d 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs index 06bf617740c..e9ef4d4e16a 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs index cd231f2b31b..bfe7b9350b4 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs @@ -102,7 +102,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs index 94027e785da..4d56b839404 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index e88b38e7d08..c620ad8dc84 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 408774f90e0..4dc1bbe105a 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 1b707de5479..b14d48e1238 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index bda26c07560..724d43cc7a1 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 588fa3f7aca..b5fd87328e9 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index bd145227a9d..23b5d527af6 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 44abf57cb76..5d16ce42b89 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index f9e3496dcff..c44a001a22c 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index c1a012ca498..768fc7283ad 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 1ff93e5bebc..0ac52e665f8 100644 --- a/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs index aba7e3c5099..1861727f78a 100644 --- a/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs index 05775040d3e..b94ba1ef4ba 100644 --- a/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DevicesWithDeviceIdRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs index 5ad3b0a0d7a..2c2564e27cb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Admini UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AdministrativeUnitsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs index 10a97d2bb3d..f271dbfbcdb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs index 4d51d153e8f..20d1597de20 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs index 2a1576c3445..d159ebc89d8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs index 044a9b83ab5..4e8bc858101 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AdministrativeUnitItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs index f919ef957e4..51f1b027727 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs index 6bec269330d..0d53b4b9be3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 0c0aa7bfab5..dd44dd53ce1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs index ae91b3c8c30..64d73e46e2e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs index 7fae1a23af6..361e2e393f6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs index 073f3eeede7..01f988fbff7 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs index 1242c448fa3..654e4d556aa 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs index ca0b6688536..10fb5ec026f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs index 189471d1261..857f9b1288c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs index 315e968e9fd..0336bf2054f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs index cf25200f708..9c2087905dc 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 2e657e1400f..8879d7b40a5 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs index a26b12e5632..e21d71eec8f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index a55c802f20c..84ab0e79741 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs index c953d62d5aa..c4970570e6e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs index c043c078aff..d003a4f9e4e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs index cf8b585fdc1..d1e9e231cbc 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs index a6e808043b8..eadf4928cd2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs index 2749ed9c73a..2907beb3063 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 60f419a3269..b10c1f9c8ab 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 8403a977c8b..f19542262fb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs index 11f34012232..87820cefdfb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs index 488f669f49e..66c06140e66 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/MembersRequestBuilder.cs index a8fd4a960b8..f99ab6491ee 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/MembersRequestBuilder.cs @@ -134,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +162,14 @@ public RequestInformation ToPostRequestInformation(DirectoryObject body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs index bf86e4e1ac2..b5bf9e0df39 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs index 806e5ec6be9..a332ffa5f0f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs index 6661094d65d..81f728cef4f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs @@ -29,7 +29,7 @@ public ScopedRoleMembershipItemRequestBuilder(Dictionary pathPar public ScopedRoleMembershipItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/{scopedRoleMembership%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is available in the following national cloud deployments. + /// Remove a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is available in the following national cloud deployments. + /// Get a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ScopedRoleMembership body, Ac return await RequestAdapter.SendAsync(requestInfo, ScopedRoleMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Remove an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is available in the following national cloud deployments. + /// Remove a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -111,10 +111,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is available in the following national cloud deployments. + /// Get a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -191,7 +192,7 @@ public ScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get an Azure Active Directory (Azure AD) role assignment with administrative unit scope. This API is available in the following national cloud deployments. + /// Get a Microsoft Entra role assignment with administrative unit scope. This API is available in the following national cloud deployments. /// public class ScopedRoleMembershipItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs index ec3092ee612..820e3ffcfa8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs @@ -42,7 +42,7 @@ public ScopedRoleMembersRequestBuilder(Dictionary pathParameters public ScopedRoleMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is available in the following national cloud deployments. + /// List Microsoft Entra role assignments with administrative unit scope. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, ScopedRoleMembershipCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. This API is available in the following national cloud deployments. + /// Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(ScopedRoleMembership body, Act return await RequestAdapter.SendAsync(requestInfo, ScopedRoleMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is available in the following national cloud deployments. + /// List Microsoft Entra role assignments with administrative unit scope. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign an Azure Active Directory (Azure AD) role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Azure AD roles with administrative unit scope. This API is available in the following national cloud deployments. + /// Assign a Microsoft Entra role with administrative unit scope. For a list of roles that can be assigned with administrative unit scope, see Assign Microsoft Entra roles with administrative unit scope. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public ScopedRoleMembersRequestBuilder WithUrl(string rawUrl) { return new ScopedRoleMembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List Azure Active Directory (Azure AD) role assignments with administrative unit scope. This API is available in the following national cloud deployments. + /// List Microsoft Entra role assignments with administrative unit scope. This API is available in the following national cloud deployments. /// public class ScopedRoleMembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs index 1aa283bcae0..6785425a11f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AttributeSet body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs index da8e52cdd97..1f3820a149c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs index 88b8f29d4c7..73f6fbe729c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(AttributeSet body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs index d9309dfc96b..08d0e811d16 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs index 77500139bd7..310dfef0132 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CustomSecurityAttributeDefini UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomSecurityAttributeDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs index b58ab424b5c..00d1d248d9f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AllowedValue body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs index d306d2e17b1..6044bfe90e1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs index 67f17cfc080..0a46bcbe4c4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(AllowedValue body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs index c4c1831738d..3947508a703 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(CustomSecurityAttributeDefin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomSecurityAttributeDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs index fbf90938d60..10cd434f319 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs index 56bf0abf8d0..bcc0d488667 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs @@ -121,7 +121,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 8a72bbb081b..743ab033167 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 99abacb7bff..a8c006a04e8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 547b366f7b9..f62b335b3fe 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs index a1abc595714..3a7fae7b852 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs index fb7cc32ec3b..4a32933ad57 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs index efff9b8954a..0fb45f23258 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index b7a80d56b9a..c3e4240f4d6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 0b1bc7d84cc..9afc09f8647 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs index 34822bd6f97..0002eb38bec 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs index c8b3213d768..a70aefb46a3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs index b53505d8227..4ce79342506 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs index cb77f7f9e89..5b1c964951e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs index 6eafcc60999..968e4f1972e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs index 1a097e3e4ac..736b5d68034 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs index d7f820f09d0..ebda127d63f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 3e77a4d8a0d..961130f6616 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs index 5a83d436bcb..986d0493d6b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs index 897cf885eca..ae7e77fb049 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 650cc6217ce..b167f47e8bb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index a7d02cf1226..6110bfb5fb1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 99c5b522d75..6ece72573a3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 0b0c0fba2ba..b57c3d91151 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 2b180270868..114aaae2a83 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 5d65eb4cd70..9ef29209088 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs index 8b8c545100d..f086d13a228 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs @@ -145,6 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -163,7 +164,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 17342eee670..8cb78005164 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 447d8620956..9f8bd0b0cfe 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 3744d615d1f..44f50f9a69d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 6ad01527b46..b1e8799b2cf 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index ec886f72b82..f9da26b653e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 0dd069fe2b2..7f7aba26c4c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 9d64ec8f3a7..f4d0ea56939 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs index f9ef9d40d70..530bb17a74d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 57a4afc0099..a600bee2bb0 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs index 7c94c7d7bef..1fdfe2f8d15 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 8282ddeec4a..5e41edaa6a3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs index 93f0b15b405..73710449bbe 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs index 14d323e9579..115b1f76af8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs index e949e9f2b7f..7c574c33dd8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs index c64d6f94398..6cfc4f42fcc 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs index 6afbbe2a9a5..adc2f84ceeb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs @@ -114,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -142,14 +142,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryObject1 body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs index 3c67914e899..32cd8e155a6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index 699679cb59b..f484afcddc0 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs index ffd8a8d6020..4abc04e6b75 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs index eef9a3f0578..4aaeb6bd5b4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs @@ -102,7 +102,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -130,14 +130,14 @@ public RequestInformation ToPostRequestInformation(IdentityProviderBase body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FederationConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs index b49e1b56100..34f7b34bc72 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(IdentityProviderBase body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityProviderBaseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs index 00103335789..ced927d243a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs index 2a38e0380bb..8cb577eff18 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(OnPremisesDirectorySynchroni UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnPremisesDirectorySynchronizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs index f64f312a9f9..dd287ed6c34 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnPremisesDirectorySynchroniz UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnPremisesSynchronizationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Count/CountRequestBuilder.cs index 9b2c30b53af..199cf8500bf 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs index 4e4afd06621..241c9de8665 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs index 1cf2b2fc5f1..505c0beaa1d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs index f358956f456..a7f842bf24a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs @@ -117,7 +117,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -145,14 +145,14 @@ public RequestInformation ToPostRequestInformation(DirectoryObject body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 14516fb499d..8531a727545 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index db93dcca898..23dda1e868a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index d440c608dc4..ec1f8e14a6e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs index 103ae8e9892..0d6f95a1d4f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs index 46d8b9115cf..b838cbf8779 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs index 4be5a839fa4..ab3cbfbd76d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index da0032bd197..c37f99d9851 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 0736f21a6b2..1be7898b2e8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index b55c788ccbb..49ffc255a53 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 57251c3dc06..c682b304c70 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 1babd52eacf..246df84db12 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 6e9b62533d3..b06217025e2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs index 258fdd2d785..fd0bfbb4b9c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -136,6 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -154,7 +155,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -182,14 +183,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryObject body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryObjectItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 8ebbc27c75c..1e8b07446c1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 1cfcb79b2d7..20d15cc4e70 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index b6c6449219f..30fbdc54294 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index ea5697f87db..240576f6b80 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 446d4cf6faf..a017d9b0723 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index f83d803c79a..9353f7debe8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs index 5ef35c91822..79b48cd58ac 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesPostRequestBody.cs index b7ae9f7255b..8aaf848fcdd 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 09d8c50077a..bea97c837c8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs index 40fcbc1af34..c9cd7db7851 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs index cbd250655a1..a93638e232e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs index a4e33c7d58f..83131e57067 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs index a97744fcaf7..ea1754db3e1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -146,14 +146,14 @@ public RequestInformation ToPostRequestInformation(DirectoryRoleTemplate body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryRoleTemplatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index b90cae150c1..082f2e75d8c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index e902eb8ef7d..72b1c76702e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 4db3a688d08..ffada8ef210 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs index bbc80c0363d..d59f6162e0b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs index 4f3c2707518..ce2348262b1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs index d29b87a36bb..adb3e0cefd1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index d2ddc7a9595..8300dc8a43a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index a8f9274e02a..93a0550beb6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 3199db46b03..5dfebd44f13 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 3ca55ff104d..a2291ab5cc9 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 0b55655992d..654713b6af6 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 1e8a7c4f06e..9eedfaf2702 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs index f20f015be47..68186b5a9f8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryRoleTemplate body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryRoleTemplateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index f1d3ed634b0..b2b49207b8c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index cdf1a944541..1530dc21049 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index d0c21299ed8..14b198d4f9e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index c18fa024716..88984b1e8c9 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 653339a47a7..6f9aefaea73 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index d4dcd536776..701af9e7f7f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs index 3b2b33a7278..07ab1d39ff5 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs index e24f43c7620..35539e9b083 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs index f83ec1c97a2..f92fbabb643 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Count/CountRequestBuilder.cs index 61be3f3d03f..bd0b0c4872a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs index 0599439efe3..99abb49c103 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs index 50c5082fbf0..72fb8f7e6ae 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs index 1b08486f9ad..8b8fc67531c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs @@ -62,7 +62,7 @@ public DirectoryRolesRequestBuilder(Dictionary pathParameters, I public DirectoryRolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is available in the following national cloud deployments. + /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task PostAsync(DirectoryRole body, Action(requestInfo, DirectoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is available in the following national cloud deployments. + /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(DirectoryRole body, Action @@ -165,7 +165,7 @@ public DirectoryRolesRequestBuilder WithUrl(string rawUrl) { return new DirectoryRolesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Azure AD, use List directoryRoleTemplates. This API is available in the following national cloud deployments. + /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. This API is available in the following national cloud deployments. /// public class DirectoryRolesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 5103748c445..5f44b7c5a14 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 8efb7bd9635..b2507d83581 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 67e92501924..5dfd6bf3b32 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs index f4cf2b8c8d9..cb6ca129984 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs index 60f91f9d9e0..16e10c65779 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs index 1bdcb98e33f..3ef0fb1fa97 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index f2e24ef2bbe..0a6c4905958 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 1d42309bf42..c7360f48eb0 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 21d333cbcde..b58440b0243 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index d857b6d0fde..3f10d3c7e41 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 1c2c88352c9..e5738b69cf4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index ac9b82357c8..c781a8b88d5 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs index 6697540e86e..630780a5b12 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs @@ -145,6 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -163,7 +164,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -191,14 +192,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index a86cfee225d..d4e5766b868 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 10d7c4b9388..7acc4fe21d7 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 8e308fa7090..4c4c47c8199 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index f7e6de840c7..8a41d6fd7c1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 4316f4bd0b2..e88b3a5efa5 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 4fbe8cf7369..4a98f7251ff 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs index 561d886b05b..036434fa03b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs index a3d30916787..64ce6e848ca 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs index 77f947f3198..39791ed0431 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs index 770e94c3db1..bf73a88e50a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs index 933bbc1e9dd..dd60ea4a4ad 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs index 453097df39c..edd99965736 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs index 5bc62f9949c..826f639cd76 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs index d76d80e01b7..9ee9eec99e1 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 391df335638..b5e34278adb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs index 71ac2d23749..75ffb3ccf6d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 4180722e0ba..6d51651f2a4 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs index 8b4b03ecec0..ff106b5746e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs index f30e010cab6..9cdc2221c31 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs index c46a054a906..73877f0fae3 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 97358492c0a..75647837e4b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs index 5a8590311e7..d2fcf2f807b 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 49b716457ce..ae4dd45025f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 122d7e1e3ea..cdf0b72044c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs index 0573e753644..0d20c7a466e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs index d75fa44788d..87f58204141 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.cs index 408ed112b26..6352b18d203 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/MembersRequestBuilder.cs @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs index 65584733e63..ce0c46bc742 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs index a3ccb42233e..c8c5fd0dfdd 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.cs index bd596907dab..8779fdd8575 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs index bea6eede15e..30a862b0f5d 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs index ec37da070e6..ccd23240f20 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedMembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs index d9f45a829d5..172aaaa84cd 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs index bf7cb57c753..d726ada5cb8 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs index 36db71cf901..d57fd4a824f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action diff --git a/src/Microsoft.Graph/Generated/DomainDnsRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DomainDnsRecords/Count/CountRequestBuilder.cs index dcece831e4d..67c52b464d3 100644 --- a/src/Microsoft.Graph/Generated/DomainDnsRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DomainDnsRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs index 1bff2d47d15..33c1890ffe7 100644 --- a/src/Microsoft.Graph/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DomainDnsRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs index a35f7a9935e..f9a90e4c581 100644 --- a/src/Microsoft.Graph/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DomainDnsRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Domains/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Count/CountRequestBuilder.cs index cce329dda38..5c6bd5d3ca1 100644 --- a/src/Microsoft.Graph/Generated/Domains/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs index f4e05eb652a..83ea32a8bdb 100644 --- a/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/DomainsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, DomainCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. + /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Azure AD tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. + /// Adds a domain to the tenant. Important: You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. See List verificationDnsRecords for details. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Domain body, Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs index babac6bc79d..ec9a3f6349f 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs @@ -147,6 +147,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -165,7 +166,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -193,14 +194,14 @@ public RequestInformation ToPatchRequestInformation(Domain body, Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs index abe292c4623..8db72c6177d 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs index 8c004d40857..f4d7de20340 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs index 5f0afccc0fe..1f7eeb1fba9 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs index 943886f43fa..fadc3ec6001 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs index 6cdbc56965e..8fd90d6d84f 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(InternalDomainFederation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FederationConfigurationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs index 657fdb79ab4..948ab443e99 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(InternalDomainFederation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InternalDomainFederationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs index c05309efe10..bde9440dffc 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs @@ -37,7 +37,7 @@ public static ForceDeletePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"disableUserAccounts", n => { DisableUserAccounts = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("disableUserAccounts", DisableUserAccounts); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs index 65bc6e76160..7913bf93f10 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForceDeletePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForceDeleteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs index d3bd257ab85..c8e1b9c66b9 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromotePostResponse.cs @@ -37,7 +37,7 @@ public static PromotePostResponse CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs index b90a1a4633e..27f298abecf 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs index e2e44e81c8a..829a25ded77 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs index d29b2cdb33b..d0d2a40a4de 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DomainDnsRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs index 52584403325..17cdf920a50 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceConfigurationRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs index 43c2b5e595c..72c7175ecf8 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs index 1e40d0f9772..9000c88e5b2 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DomainDnsRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public DomainDnsRecordItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. /// public class DomainDnsRecordItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs index 91573ec43da..66ce17217f7 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public VerificationDnsRecordsRequestBuilder(Dictionary pathParam public VerificationDnsRecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/verificationDnsRecords{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. + /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(DomainDnsRecord body, Action(requestInfo, DomainDnsRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. + /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VerificationDnsRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public VerificationDnsRecordsRequestBuilder WithUrl(string rawUrl) { return new VerificationDnsRecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Azure AD tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. + /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. This API is available in the following national cloud deployments. /// public class VerificationDnsRecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs index a2a124d20c9..0cb34e0337f 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Verify/VerifyRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs index 351b807e869..99cf2834627 100644 --- a/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -120,14 +120,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Drive UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DrivesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs index bd0ca9e7ba0..acf32f8ac34 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.DriveI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BundlesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs index 73235b91d10..0d96e6eb094 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs index abe44716d09..9dfbb6fa6aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs index ed618f6f490..e1870661ec5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 54e9088d353..de937f32975 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 619c47f3b11..e41be4668be 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 809c525e7ce..76b9afb657c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 7f8c8683af2..0128918510c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs index a31041abfdf..f589c520b5e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs @@ -168,6 +168,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -186,7 +187,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -214,14 +215,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Drive UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DriveItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Following/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Following/Count/CountRequestBuilder.cs index a0c0706684d..90f4888fa65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Following/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Following/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs index efc0cd4d9e5..150eb3969b8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Following/FollowingRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs index aea0a2f6597..8839807fd3b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs index 758a7d41788..714621dc61c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Count/CountRequestBuilder.cs index c83cbb5815e..9cf65069544 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index a2d07bf8772..803fb4a2114 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs index 28a1529c0c6..0bd114e2e4c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs index 3e44f4a8eb9..42b2e1120eb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs index 9ed8f9ae5b8..02a2752aeef 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ItemActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs index 2a4d17c12b9..8d5fcebc419 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs index e4d3eee217e..ac5bce2c7f7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs index 2ea0c290bfd..f4f4d758d5d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs index 4c6dae44699..9b204505e37 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ItemActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs index 0c2b0b9d75c..d48bac26611 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemActivityStatItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs index 3a2fa336423..eb676fc6b55 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemActivityStatsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs index 58a0230f608..2f8a603ae7f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs index d65990c79e3..68220d7cbe2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs @@ -66,7 +66,7 @@ public static AssignSensitivityLabelPostRequestBody CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignmentMethod", n => { AssignmentMethod = n.GetEnumValue(); } }, {"justificationText", n => { JustificationText = n.GetStringValue(); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("assignmentMethod", AssignmentMethod); writer.WriteStringValue("justificationText", JustificationText); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs index 0b5f7120475..39f3b66320f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(AssignSensitivityLabelPostReq UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignSensitivityLabelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs index 742c8a823e4..2ef7fafaf83 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs @@ -60,7 +60,7 @@ public static CheckinPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"checkInAs", n => { CheckInAs = n.GetStringValue(); } }, {"comment", n => { Comment = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("checkInAs", CheckInAs); writer.WriteStringValue("comment", Comment); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs index 3fee03165cf..543672dd8e9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CheckinPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs index 836d7076fe5..23d86f2845e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs index 2b68982b391..c8940a0a121 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.DriveI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChildrenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs index 586d2ee7ed1..0f1a0a4b7cb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs index 64e569a13ae..8df0a1f2540 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs index 87451ce3236..66c10304b5e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs index 00eaafebde7..89b22cccb04 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs index 058017ed036..e7c3091cbac 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"parentReference", n => { ParentReference = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteObjectValue("parentReference", ParentReference); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs index 3dd879e2bbf..6fb828c50d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 9e80f6d2a14..0e32e8541ba 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -98,7 +98,7 @@ public static CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs index 2b9fc30b46d..06193d590ee 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateLinkRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 65493123167..8cd6298e164 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"item", n => { Item = n.GetObjectValue(DriveItemUploadableProperties.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("item", Item); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index b5c8259ab7d..8754d432a65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 5cc8e004a2d..90988756d43 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 4bf6cee724f..6d7d3918a5e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 30be3f6d237..62eacf0ea8d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index c75d3f43ab8..7a00df05b28 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs index 4e6454ade33..a765d714625 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs index 4bac3c5a736..a0d6a5cfc03 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs index b1c61709c30..d9df9360de5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs index 241353b87ba..2d0340cf3ac 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index 243124b2b4a..63e3538d656 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -277,6 +277,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -295,7 +296,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -323,14 +324,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Drive UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DriveItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs index e949f945921..24c0e129e63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs index d332d3d1fb8..074a46f337e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Follow/FollowRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 7af02bfd4c6..1823dcc98c2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 76896b1a7b1..35f94aeaaa6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index c1e9621a9ee..97451c572f6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index e739de7fe6f..48a03a8997d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs index 4ca69d441e6..483683fe92c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs @@ -118,7 +118,7 @@ public static InvitePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expirationDateTime", n => { ExpirationDateTime = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -134,7 +134,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs index 3c66b29c108..d2163a5015d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs index 033bc623104..1967bedfad0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(InvitePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InviteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index e2314745138..af427133318 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 2ffd9f79907..300b91fe251 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 8e9b2ccc15e..5f845b92d10 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 65a409c9b46..4085156f316 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs index 5688b49a2c4..a5f02b1c226 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs index 56be9f9c6d7..32983af4c5b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.cs index 71a843ba88c..ad1c8763c4e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs index 2863c5a3392..52d50c2780e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs @@ -61,7 +61,7 @@ public static GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteCollectionOfPrimitiveValues("roles", Roles); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs index 7d5b58d0c86..b8d630b11e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index 7f6b51c1050..1c035c9d957 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GrantRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index f92abd89370..3f2a1429107 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Permi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs index a8105d8ac51..a38f52e7418 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Permis UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs index dc506c87617..9da09cab2e3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs @@ -51,7 +51,7 @@ public static PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"page", n => { Page = n.GetStringValue(); } }, {"zoom", n => { Zoom = n.GetDoubleValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("page", Page); writer.WriteDoubleValue("zoom", Zoom); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs index f973e6baa8a..412c229a0de 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PreviewPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PreviewRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs index 6318c72501b..027ff78f1dd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs @@ -61,7 +61,7 @@ public static RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"parentReference", n => { ParentReference = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteObjectValue("parentReference", ParentReference); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs index ea988940e8a..22193b6264b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(RestorePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RestoreRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs index 39cfa324ab5..94b36ee278d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs index 50aacdaa6c4..0695a2acee2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs index 4d67a53ab2c..41ce02ef9d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index ddeb40bc073..71c94ebdde9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index 9ef2b0a6990..534f78344d8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs index 76382e2bc97..b57593afb6c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs index 2bd81ce56b0..02139168f06 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs index a715c4cb76e..4e8f75f25c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ThumbnailSet body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs index cd95e569c0c..97d7ae276a4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ThumbnailSet body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs index e2e70997a4a..7e3060ad268 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionPostRequestBody.cs index 8266c352d46..f3c20440950 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionPostRequestBody.cs @@ -60,7 +60,7 @@ public static ValidatePermissionPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"challengeToken", n => { ChallengeToken = n.GetStringValue(); } }, {"password", n => { Password = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("challengeToken", ChallengeToken); writer.WriteStringValue("password", Password); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs index fce846ee483..5b107923055 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ValidatePermissionPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePermissionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs index e3487be9d0b..8c334adb2ad 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs index 585e1616f70..2960e98ae3e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs index 795fa7f679e..a21abf4a52e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/DriveItemVersionItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(DriveItemVersion body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DriveItemVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 7e73a8795b0..ea80e44b2c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs index cf0bf1f0fd7..c1074e9ec29 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Versions/VersionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DriveItemVersion body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs index 507abff7a0d..5edb12862df 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookApplication body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplicationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs index 818029b4839..9e1f91d2595 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs @@ -46,7 +46,7 @@ public static CalculatePostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"calculationType", n => { CalculationType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("calculationType", CalculationType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs index 429223ae658..f9c803a9c21 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CalculatePostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalculateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs index f15e91745c2..bae82212dcf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.cs index 741e3a507cd..d12b5105898 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/CommentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WorkbookComment body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs index b09733217d5..03b0bb7e5b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs index dc24989f886..b783875fbe5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs index 9cc1e10828f..1fa037d297c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookCommentReply body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs index 199d1777804..a118728a4d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WorkbookCommentReply body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RepliesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs index 982c02816e1..ab711f6b641 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookComment body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookCommentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs index 28a667616f1..4930e07efde 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs @@ -37,7 +37,7 @@ public static CreateSessionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"persistChanges", n => { PersistChanges = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("persistChanges", PersistChanges); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs index 18a605b4719..28351af32fb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateSessionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs index bd6f1b1d2a1..5425a867dd4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs @@ -47,7 +47,7 @@ public static AbsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs index 38c14997eab..537fd863a1c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AbsPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AbsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs index 5dc0076738e..90cda035e5d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs @@ -145,7 +145,7 @@ public static AccrIntPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"calcMethod", n => { CalcMethod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -161,7 +161,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("calcMethod", CalcMethod); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs index 7bf8d41fab7..f7f6ac84db0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AccrIntPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccrIntRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs index 0cbb91d8358..575e336ce70 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs @@ -103,7 +103,7 @@ public static AccrIntMPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("issue", Issue); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs index 8491cf2b916..dd260d23882 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AccrIntMPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccrIntMRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs index a2d6459eb8e..fe54d54b568 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs @@ -47,7 +47,7 @@ public static AcosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs index b35f5db7240..f2172b683f5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AcosPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcosRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs index ed8b5f98fed..01501439766 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs @@ -47,7 +47,7 @@ public static AcoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs index 1d784989ce8..cb505576aef 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AcoshPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcoshRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs index 95ddfb7661d..98a51f08a91 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs @@ -47,7 +47,7 @@ public static AcotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs index e09e3de86ff..a5a2372f60a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AcotPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcotRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs index b13c7899447..e9a58ed8e67 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs @@ -47,7 +47,7 @@ public static AcothPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs index 73150699bf7..52d11c406b3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AcothPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcothRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs index bc3c8f178a2..d689b953574 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs @@ -131,7 +131,7 @@ public static AmorDegrcPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -146,7 +146,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("cost", Cost); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs index afee617eb7e..f81dbc6f552 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AmorDegrcPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AmorDegrcRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs index 97ed245f2e9..90dbfc933ab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs @@ -131,7 +131,7 @@ public static AmorLincPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -146,7 +146,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("cost", Cost); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs index 240df2f36bf..d2d571c3fff 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AmorLincPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AmorLincRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs index 5241d682d6e..1948f286bc8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs @@ -47,7 +47,7 @@ public static AndPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs index deb82718e23..633415e3b75 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AndPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AndRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs index 7b8af043aa1..f9ee9a36f05 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs @@ -47,7 +47,7 @@ public static ArabicPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs index 9f6dc0259c7..3e2f590d42f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ArabicPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArabicRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs index 8b76a1a3d48..8d54ea220cc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs @@ -47,7 +47,7 @@ public static AreasPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs index f4697a1c2db..3e49bf4c7ef 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AreasPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AreasRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs index 78e319d99bf..9f2b99c85ce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs @@ -47,7 +47,7 @@ public static AscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs index 7d383802f33..dcf6c6fabe6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AscPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AscRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs index ffe3fc8d314..29f6af1e824 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs @@ -47,7 +47,7 @@ public static AsinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs index 11d07d35fa8..5a1e379e582 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AsinPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AsinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs index b09fab1ef98..f181e503413 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs @@ -47,7 +47,7 @@ public static AsinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs index cf46d771fee..e966825801e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AsinhPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AsinhRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs index ea44c66238d..afbb97b773a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs @@ -47,7 +47,7 @@ public static AtanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs index a487c4aaa45..a7cdd06fdca 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AtanPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AtanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs index 595ac57d17a..daa939c1a37 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs @@ -61,7 +61,7 @@ public static Atan2PostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"xNum", n => { XNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"yNum", n => { YNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("xNum", XNum); writer.WriteObjectValue("yNum", YNum); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs index 13dcba91430..3ceff7ee746 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Atan2PostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Atan2RequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs index 0d889a87d42..eb22c6166d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs @@ -47,7 +47,7 @@ public static AtanhPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs index b7f7c24e438..bef718070d4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AtanhPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AtanhRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs index 94535960274..f39a937299b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs @@ -47,7 +47,7 @@ public static AveDevPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs index a43020f9b15..cad2c604c7c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AveDevPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AveDevRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs index 9d39de32a6d..4a37420b351 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs @@ -47,7 +47,7 @@ public static AveragePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs index d78ecb9a3c9..3cdd817acdb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AveragePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AverageRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs index eac72a9f60b..16d7d3bc9e3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs @@ -47,7 +47,7 @@ public static AverageAPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs index 0b78b382c60..18d89780987 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AverageAPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AverageARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs index 10c9f4ccc75..6c8f79ce463 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs @@ -75,7 +75,7 @@ public static AverageIfPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"averageRange", n => { AverageRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("averageRange", AverageRange); writer.WriteObjectValue("criteria", Criteria); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs index 90a5ce1261f..3d0d4c2203d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AverageIfPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AverageIfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs index c4524152c05..0bce28028e0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs @@ -61,7 +61,7 @@ public static AverageIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"averageRange", n => { AverageRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("averageRange", AverageRange); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs index 361f9536457..9e9d81978aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(AverageIfsPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AverageIfsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs index 2650801585d..3c0435c69cd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs @@ -47,7 +47,7 @@ public static BahtTextPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs index adba985d537..062f42d0f88 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BahtTextPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BahtTextRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs index 4e95e28fb92..854386b7a82 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs @@ -75,7 +75,7 @@ public static BasePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"minLength", n => { MinLength = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("minLength", MinLength); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs index 33cf9342bc3..3a90c2b1495 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BasePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BaseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs index 425c9631382..bbe4f1e10b8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs @@ -61,7 +61,7 @@ public static BesselIPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("n", N); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs index 592f4a16299..e7a473ca39e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BesselIPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BesselIRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs index 3b47732e31e..e6081dd6c7d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs @@ -61,7 +61,7 @@ public static BesselJPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("n", N); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs index f2297490be2..780482a15fe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BesselJPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BesselJRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs index 46b4762c6dc..1b2af7ff2bb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs @@ -61,7 +61,7 @@ public static BesselKPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("n", N); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs index bba5a7bbf73..6fdc0a63b18 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BesselKPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BesselKRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs index 2aa555f3635..4ce3ae06a25 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs @@ -61,7 +61,7 @@ public static BesselYPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("n", N); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs index 64081a724a6..86bce15c767 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BesselYPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BesselYRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs index 31a1e3ba880..9e22d02dc64 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs @@ -117,7 +117,7 @@ public static Beta_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"A", n => { A = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("A", A); writer.WriteObjectValue("alpha", Alpha); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs index 72471dae0ba..5e91d0cd821 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Beta_DistPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Beta_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs index 6745395d0f5..ac37db6bba3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs @@ -103,7 +103,7 @@ public static Beta_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"A", n => { A = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("A", A); writer.WriteObjectValue("alpha", Alpha); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs index 47654075c21..64ee03fe362 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Beta_InvPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Beta_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs index ba80c3d19a9..b627438d63f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs @@ -47,7 +47,7 @@ public static Bin2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs index 217ca140b18..fd7489cb590 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Bin2DecPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Bin2DecRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs index 026215098f7..48b918a79e7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs @@ -61,7 +61,7 @@ public static Bin2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs index 5f1506d0b0e..f2528e6b373 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Bin2HexPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Bin2HexRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs index 4df01c9af1e..e4cf339f141 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs @@ -61,7 +61,7 @@ public static Bin2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs index d161e707ab7..b1feca12d31 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Bin2OctPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Bin2OctRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs index 1d722c6cec0..48ab72683a2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static Binom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberS", n => { NumberS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("numberS", NumberS); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs index 79eea35ea9c..4d584228302 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Binom_DistPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Binom_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs index cda1b34b828..10fc805570b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs @@ -89,7 +89,7 @@ public static Binom_Dist_RangePostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numberS", n => { NumberS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberS2", n => { NumberS2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numberS", NumberS); writer.WriteObjectValue("numberS2", NumberS2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs index 58ab6caf5f6..21b18cb45fe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Binom_Dist_RangePostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Binom_Dist_RangeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs index 51d91572e25..fb5013d49b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs @@ -75,7 +75,7 @@ public static Binom_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probabilityS", n => { ProbabilityS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("alpha", Alpha); writer.WriteObjectValue("probabilityS", ProbabilityS); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs index b4ee8739ee5..dc1d53f3231 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Binom_InvPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Binom_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs index 6af09bc4ba7..7ddf4084c79 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs @@ -61,7 +61,7 @@ public static BitandPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number1", Number1); writer.WriteObjectValue("number2", Number2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs index 458b3412944..9abdc7578ab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BitandPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BitandRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs index 482b3a03145..d8c24f586e4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs @@ -61,7 +61,7 @@ public static BitlshiftPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"shiftAmount", n => { ShiftAmount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("shiftAmount", ShiftAmount); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs index 0202b9164ab..8c2fe088a23 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BitlshiftPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BitlshiftRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs index 9fd537ee5b5..9f19bca77ed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs @@ -61,7 +61,7 @@ public static BitorPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number1", Number1); writer.WriteObjectValue("number2", Number2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs index 73d50371de1..c513036f9cf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BitorPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BitorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs index 1d899188bba..c590c579b3e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs @@ -61,7 +61,7 @@ public static BitrshiftPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"shiftAmount", n => { ShiftAmount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("shiftAmount", ShiftAmount); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs index 0f28914cc11..0d2f40479f5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BitrshiftPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BitrshiftRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs index 4f08bb9b9df..a5cca33b077 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs @@ -61,7 +61,7 @@ public static BitxorPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number1", Number1); writer.WriteObjectValue("number2", Number2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs index f9493fc742a..0a0a32e6fc7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(BitxorPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BitxorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs index bdd24ca821b..5f0dbf6776b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs @@ -75,7 +75,7 @@ public static Ceiling_MathPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mode", n => { Mode = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("mode", Mode); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs index a7cd83f2db6..93074a0a1e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Ceiling_MathPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Ceiling_MathRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs index 918d1617d9a..69e4982d061 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs @@ -61,7 +61,7 @@ public static Ceiling_PrecisePostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("significance", Significance); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs index 84c041412b4..a6fb16d0eb2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Ceiling_PrecisePostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Ceiling_PreciseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs index 883b5d4b5fc..b9dd20374ce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs @@ -47,7 +47,7 @@ public static CharPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs index 856fc421d43..a22d1fa8161 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CharPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CharRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs index 4ef0ed63bf7..d6c82c94085 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs @@ -75,7 +75,7 @@ public static ChiSq_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("degFreedom", DegFreedom); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs index 46055a9e740..207149ffacc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ChiSq_DistPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChiSq_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs index ae8b3fcdc5b..0f43afd4bf8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs @@ -61,7 +61,7 @@ public static ChiSq_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs index 583d63a6ff1..d9ff5719597 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ChiSq_Dist_RTPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChiSq_Dist_RTRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs index c6269418a14..c8c18f8dbc0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs @@ -61,7 +61,7 @@ public static ChiSq_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("probability", Probability); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs index 083eacd8887..4296772883f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ChiSq_InvPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChiSq_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs index 184c098bfa9..daf80914a79 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs @@ -61,7 +61,7 @@ public static ChiSq_Inv_RTPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("probability", Probability); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs index e34895a9898..0bd954fdf8c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ChiSq_Inv_RTPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChiSq_Inv_RTRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs index 1cd2f184fcf..956492df4e0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs @@ -61,7 +61,7 @@ public static ChoosePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"indexNum", n => { IndexNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("indexNum", IndexNum); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs index 50a5abf77c1..86d51cc6ce5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ChoosePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChooseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs index e76b4c36027..1947d2f617b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs @@ -47,7 +47,7 @@ public static CleanPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs index 5265d731a8e..5a020cf7fa7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CleanPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CleanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs index 49e3a0a2dd7..4de8beafc1e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs @@ -47,7 +47,7 @@ public static CodePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs index 0587afb6084..1bd2bbfbd7a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CodePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CodeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs index 19bb7a7ac5d..8b15fd9a69f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs @@ -47,7 +47,7 @@ public static ColumnsPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs index 9c7ac336982..b9b39763448 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ColumnsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs index f3f08207f08..c4bbea55fff 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs @@ -61,7 +61,7 @@ public static CombinPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numberChosen", NumberChosen); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs index 6e905d51322..623050abd14 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CombinPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CombinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs index add5756b54e..be6f3fc1ecf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs @@ -61,7 +61,7 @@ public static CombinaPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numberChosen", NumberChosen); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs index 7c44ccd11a3..ea64ce40623 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CombinaPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CombinaRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs index f5eceab9a9d..9576c350f3e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs @@ -75,7 +75,7 @@ public static ComplexPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"iNum", n => { INum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"realNum", n => { RealNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("iNum", INum); writer.WriteObjectValue("realNum", RealNum); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs index f3ba98a4dde..8b39a1e6d80 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ComplexPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ComplexRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs index f7b417ad34e..f7b615a28d0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs @@ -47,7 +47,7 @@ public static ConcatenatePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs index 3925b000629..c401d12babc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ConcatenatePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConcatenateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs index 1175063ffd5..baeaf03066e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs @@ -75,7 +75,7 @@ public static Confidence_NormPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"size", n => { Size = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("alpha", Alpha); writer.WriteObjectValue("size", Size); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs index b889f75646f..71dcf9087ed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Confidence_NormPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Confidence_NormRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs index 921f41017a2..014fb87e3d0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs @@ -75,7 +75,7 @@ public static Confidence_TPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"size", n => { Size = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("alpha", Alpha); writer.WriteObjectValue("size", Size); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs index 75557cb9929..e0ac5544b4e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Confidence_TPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Confidence_TRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs index c134e7bce68..83efb51d608 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs @@ -75,7 +75,7 @@ public static ConvertPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fromUnit", n => { FromUnit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fromUnit", FromUnit); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs index 939ce298d9d..3a045876430 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ConvertPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConvertRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs index db4d716abee..bcacb370dad 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs @@ -47,7 +47,7 @@ public static CosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs index 822eb95f51e..bfde084484f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CosPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CosRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs index 737edbd8e2d..a82bc90fe0b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs @@ -47,7 +47,7 @@ public static CoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs index 9512789ba98..d9ffc3f1f09 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoshPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoshRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs index 2ab07427edf..0642148dd41 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs @@ -47,7 +47,7 @@ public static CotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs index 11eee453d4a..e2a4647a432 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CotPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CotRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs index c210c520f06..a002506fdbe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs @@ -47,7 +47,7 @@ public static CothPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs index de8cbe40042..28832a0fbe7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CothPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CothRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs index 91288e9ddf0..74b9a1517d0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs @@ -47,7 +47,7 @@ public static CountPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs index 585169b4963..0e414a22a70 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CountPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CountRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs index 870bf0861e2..ea355add690 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs @@ -47,7 +47,7 @@ public static CountAPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs index 9271f915c5b..9117c4f4b4e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CountAPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CountARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs index c28039b6853..f3d2be60410 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs @@ -47,7 +47,7 @@ public static CountBlankPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("range", Range); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs index 0dd913d074b..e94e9a64f40 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CountBlankPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CountBlankRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs index c4782ceae66..be41ba7516e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs @@ -61,7 +61,7 @@ public static CountIfPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("range", Range); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs index 450d942bf41..c772a0b1605 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CountIfPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CountIfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs index ca6ee9bdbcc..8dce67b87d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs @@ -47,7 +47,7 @@ public static CountIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs index 237a66d5c7d..22d9a8ffdbc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CountIfsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CountIfsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs index 3b6d3fd60e4..931739c6686 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs @@ -89,7 +89,7 @@ public static CoupDayBsPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs index 76e528aec52..8a3a1843bb0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoupDayBsPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoupDayBsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs index d80a65cd401..ac97525c78b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs @@ -89,7 +89,7 @@ public static CoupDaysPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs index 0206e2307e4..5da04311898 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoupDaysPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoupDaysRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs index 5222e4917a7..5b1ad72a772 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs @@ -89,7 +89,7 @@ public static CoupDaysNcPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs index b82f583e698..35d23f1451a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoupDaysNcPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoupDaysNcRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs index fe1b5bc41c0..87fec36c4a6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs @@ -89,7 +89,7 @@ public static CoupNcdPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs index 05739d19c4e..d565ad2e10e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoupNcdPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoupNcdRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs index 98b4da54fc6..60265efce51 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs @@ -89,7 +89,7 @@ public static CoupNumPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs index 488368b897c..2fcabbf6382 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoupNumPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoupNumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs index 030cf0ffd5c..6633f9e6ed5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs @@ -89,7 +89,7 @@ public static CoupPcdPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs index fb1a23702b7..afb15d8df2e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CoupPcdPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CoupPcdRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs index 36a5e7936e0..14dc28531d0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs @@ -47,7 +47,7 @@ public static CscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs index 713339d720a..688bc71e611 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CscPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CscRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs index 4056b1efca3..15c7051481f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs @@ -47,7 +47,7 @@ public static CschPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs index de01c602c06..4aba6de9273 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CschPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CschRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs index ec2bb8cbaec..bd37a0c3251 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs @@ -117,7 +117,7 @@ public static CumIPmtPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endPeriod", n => { EndPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endPeriod", EndPeriod); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs index d76568dae38..1d324f7d7dd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CumIPmtPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CumIPmtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs index 25354ff03b5..5baf3e33d75 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs @@ -117,7 +117,7 @@ public static CumPrincPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endPeriod", n => { EndPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endPeriod", EndPeriod); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs index 5a81c34a388..35a21dfc695 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(CumPrincPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CumPrincRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs index abd637254bb..eccd1e4dae8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs @@ -75,7 +75,7 @@ public static DatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"day", n => { Day = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"month", n => { Month = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("day", Day); writer.WriteObjectValue("month", Month); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs index d10ef32d9d4..7ae1c89a18f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DatePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs index 81b5cb75432..04b15ee279a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs @@ -47,7 +47,7 @@ public static DatevaluePostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dateText", n => { DateText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("dateText", DateText); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs index e7a3963975b..dea7b82af4e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DatevaluePostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DatevalueRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs index b81d4702113..d859d1b8f81 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs @@ -75,7 +75,7 @@ public static DaveragePostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs index b4923dca6b2..3a75757b7f5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DaveragePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DaverageRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs index 318e04fe448..eda01a4352a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs @@ -47,7 +47,7 @@ public static DayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs index 545a5266a5e..9f910d41759 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DayPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DayRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs index 9182381b91e..51c9e2b713a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs @@ -61,7 +61,7 @@ public static DaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endDate", EndDate); writer.WriteObjectValue("startDate", StartDate); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs index cac62f0be98..5e3ea781af9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DaysPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DaysRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs index 7a24a20dbc6..464c80a2130 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs @@ -75,7 +75,7 @@ public static Days360PostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"method", n => { Method = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endDate", EndDate); writer.WriteObjectValue("method", Method); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs index 7d5876c0eaf..f0a435b253b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Days360PostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Days360RequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs index 3016510989b..84cc994f1d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs @@ -103,7 +103,7 @@ public static DbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cost", Cost); writer.WriteObjectValue("life", Life); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs index c9a745941bd..68848845e3b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DbPostRequestBody body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs index 01d98ea217e..dc1a0f22220 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs @@ -47,7 +47,7 @@ public static DbcsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs index 051f8b8c6b8..ba33eae83d0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DbcsPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DbcsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs index 01a74ff9200..8693f56bfe0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs @@ -75,7 +75,7 @@ public static DcountPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs index 3b931813c15..919b67847de 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DcountPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DcountRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs index a6bbfb82a7d..ffc4f9f4a47 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs @@ -75,7 +75,7 @@ public static DcountAPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs index 4057cdc30e5..9fa6614fdce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DcountAPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DcountARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs index 43fe423dc55..fc45642f1d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs @@ -103,7 +103,7 @@ public static DdbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"factor", n => { Factor = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cost", Cost); writer.WriteObjectValue("factor", Factor); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs index 9a838bb790b..e6da4714118 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DdbPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DdbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs index c5fb42b37d1..55b3f67d9c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs @@ -61,7 +61,7 @@ public static Dec2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs index 5231de63503..0148627a57f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Dec2BinPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Dec2BinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs index d1c1849aff6..362879ce569 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs @@ -61,7 +61,7 @@ public static Dec2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs index 00af3ccaffb..1894476ea1e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Dec2HexPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Dec2HexRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs index 55d314fe858..305974a945d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs @@ -61,7 +61,7 @@ public static Dec2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs index 0f2ddfc048a..4a3892cb85b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Dec2OctPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Dec2OctRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs index 4aeedd59130..cc298f995ae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs @@ -61,7 +61,7 @@ public static DecimalPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"radix", n => { Radix = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("radix", Radix); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs index 8b09959356b..bbf35b6aaf5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DecimalPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DecimalRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs index 5079ee6c1f8..ac7fc46f747 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs @@ -47,7 +47,7 @@ public static DegreesPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"angle", n => { Angle = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("angle", Angle); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs index 514bb1c3571..f4a408dc2c5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DegreesPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DegreesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs index 18fe29b48b0..b97e33810d8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs @@ -61,7 +61,7 @@ public static DeltaPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number1", Number1); writer.WriteObjectValue("number2", Number2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs index 0312bbc3f21..e40750aa40f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DeltaPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeltaRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs index eaea09bdd1f..35eefcc9b4c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs @@ -47,7 +47,7 @@ public static DevSqPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs index 68a4260e339..9e9c8378a80 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DevSqPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DevSqRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs index dd816969f90..cc64e0c23e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs @@ -75,7 +75,7 @@ public static DgetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs index 674453d5dc1..5ff7ffdb07b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DgetPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DgetRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs index e356e11caec..1051d180615 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs @@ -103,7 +103,7 @@ public static DiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("maturity", Maturity); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs index 03fb16370be..aa5d6195b48 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DiscPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DiscRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs index 418d2faa254..447bf4c3bb8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs @@ -75,7 +75,7 @@ public static DmaxPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs index 7934547fb08..a2ab0f8ce4c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DmaxPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DmaxRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs index 77586c2a8cb..2e402f914a1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs @@ -75,7 +75,7 @@ public static DminPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs index 47685393f38..7cf9bb4ac6c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DminPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DminRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs index 860ffbeb316..98a155689fd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs @@ -61,7 +61,7 @@ public static DollarPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decimals", n => { Decimals = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("decimals", Decimals); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs index 46277994185..8d2fe9228a3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DollarPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DollarRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs index 4a6423e886c..6405bcc022a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs @@ -61,7 +61,7 @@ public static DollarDePostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fraction", n => { Fraction = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"fractionalDollar", n => { FractionalDollar = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fraction", Fraction); writer.WriteObjectValue("fractionalDollar", FractionalDollar); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs index 27a20720137..da4bee42fe0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DollarDePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DollarDeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs index 9dc7fc7fb5c..957cc788fc6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs @@ -61,7 +61,7 @@ public static DollarFrPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decimalDollar", n => { DecimalDollar = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"fraction", n => { Fraction = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("decimalDollar", DecimalDollar); writer.WriteObjectValue("fraction", Fraction); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs index 20e1bd7540b..c6a555f23a6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DollarFrPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DollarFrRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs index 3eebdb31210..71650ccbade 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs @@ -75,7 +75,7 @@ public static DproductPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs index 50b54871b95..6501232fb24 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DproductPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DproductRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs index 9d6a74cdc4b..62792370068 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs @@ -75,7 +75,7 @@ public static DstDevPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs index 40215d0b64b..1db9ce50515 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DstDevPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DstDevRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs index 612890f7cf2..354100f6aa5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs @@ -75,7 +75,7 @@ public static DstDevPPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs index 2fb25cc277a..97d7e1f0f95 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DstDevPPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DstDevPRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs index 282a0d710b0..13f34ebea5d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs @@ -75,7 +75,7 @@ public static DsumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs index 95113da056a..4963abd9f4a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DsumPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DsumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs index a9c9c989468..09a467158ff 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs @@ -117,7 +117,7 @@ public static DurationPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"coupon", n => { Coupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("coupon", Coupon); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs index d42e6248bdd..4e6688c8aed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DurationPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DurationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs index 1e51ec9a385..b0bc28e0ac9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs @@ -75,7 +75,7 @@ public static DvarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs index a8ebefa8e62..c04193d79e3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DvarPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DvarRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs index d2939df477e..0c56071a3b8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs @@ -75,7 +75,7 @@ public static DvarPPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("database", Database); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs index d1d368bb57e..da149dee100 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(DvarPPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DvarPRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs index 522a4ab954c..0925a4814b0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs @@ -61,7 +61,7 @@ public static Ecma_CeilingPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("significance", Significance); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs index e65e2fdc1b4..a7b14843299 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Ecma_CeilingPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Ecma_CeilingRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs index 4fc027aa95e..bf09e505c88 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs @@ -61,7 +61,7 @@ public static EdatePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"months", n => { Months = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("months", Months); writer.WriteObjectValue("startDate", StartDate); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs index 19230b11905..42f3ce0014a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(EdatePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs index 1959fe24050..4a61616dda2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs @@ -61,7 +61,7 @@ public static EffectPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"nominalRate", n => { NominalRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"npery", n => { Npery = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("nominalRate", NominalRate); writer.WriteObjectValue("npery", Npery); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs index 717dcd8c533..9ae3445b6b7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(EffectPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EffectRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs index e32f5fabbcf..f7e3a4bbbb3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs @@ -61,7 +61,7 @@ public static EoMonthPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"months", n => { Months = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("months", Months); writer.WriteObjectValue("startDate", StartDate); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs index a62fa155fb5..f640b88eda2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(EoMonthPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EoMonthRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs index 94753a6d13c..68c1c25f3aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs @@ -61,7 +61,7 @@ public static ErfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lowerLimit", n => { LowerLimit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"upperLimit", n => { UpperLimit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("lowerLimit", LowerLimit); writer.WriteObjectValue("upperLimit", UpperLimit); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs index a2f3b47d60d..e9632c56f76 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ErfPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ErfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs index 002ce36127f..550caba7c9c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs @@ -47,7 +47,7 @@ public static ErfCPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs index 17a1f147f73..ca17a178213 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ErfCPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ErfCRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs index 1928decbe2c..78331f86c7b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs @@ -47,7 +47,7 @@ public static ErfC_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"X", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("X", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs index a28f2b9773c..c35d31be26a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ErfC_PrecisePostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ErfC_PreciseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs index 3df0a03b124..e30b0fe3259 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs @@ -47,7 +47,7 @@ public static Erf_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"X", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("X", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs index 8325a3c9a6f..bbe847c6e19 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Erf_PrecisePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Erf_PreciseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs index 16b9bfc2a81..b92e9c3d87c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs @@ -47,7 +47,7 @@ public static Error_TypePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"errorVal", n => { ErrorVal = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("errorVal", ErrorVal); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs index 4cfcb11056e..1144de89739 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Error_TypePostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Error_TypeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs index 23b36563eb9..432df406a52 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs @@ -47,7 +47,7 @@ public static EvenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs index 70af6548244..3903913178b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(EvenPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EvenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs index 43814a97fa4..36031a66702 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs @@ -61,7 +61,7 @@ public static ExactPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text1", n => { Text1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"text2", n => { Text2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text1", Text1); writer.WriteObjectValue("text2", Text2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs index 3b726601bbe..6df0ad6e3a0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ExactPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExactRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs index fcf26b70fa2..739b4edcc51 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs @@ -47,7 +47,7 @@ public static ExpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs index 8b58ef98cfb..5aaedff76e4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ExpPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExpRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs index b677982369b..cb8cceebf1e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs @@ -75,7 +75,7 @@ public static Expon_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"lambda", n => { Lambda = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("lambda", Lambda); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs index 48fe81c539a..c3cc56dfd65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Expon_DistPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Expon_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs index 8a5a440a7d5..50eb48e0d65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static F_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("degFreedom1", DegFreedom1); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs index 7eda71c426e..d64a6427a4c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(F_DistPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new F_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs index 8b3d2356903..08304e82fd4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs @@ -75,7 +75,7 @@ public static F_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom1", DegFreedom1); writer.WriteObjectValue("degFreedom2", DegFreedom2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs index 15b45302f0e..923507bcd25 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(F_Dist_RTPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new F_Dist_RTRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs index 2ffbb81b466..a72b4190aa4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs @@ -75,7 +75,7 @@ public static F_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom1", DegFreedom1); writer.WriteObjectValue("degFreedom2", DegFreedom2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs index b126128f2be..5f8b7877e53 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(F_InvPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new F_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs index 891493aea9b..200fa65c796 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs @@ -75,7 +75,7 @@ public static F_Inv_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom1", DegFreedom1); writer.WriteObjectValue("degFreedom2", DegFreedom2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs index 8b292e83976..85880a0df2f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(F_Inv_RTPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new F_Inv_RTRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs index a8e2df90966..94d1ccda54c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs @@ -47,7 +47,7 @@ public static FactPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs index 51513c2ceac..48e1870308e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FactPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FactRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs index f3a9e049422..516f7d79ded 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs @@ -47,7 +47,7 @@ public static FactDoublePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs index 35c2b701e71..593065153cf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FactDoublePostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FactDoubleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs index 83354d447ae..6c309c8f51e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindPostRequestBody.cs index ee472e8da4c..d9846a0e070 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindPostRequestBody.cs @@ -75,7 +75,7 @@ public static FindPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"findText", n => { FindText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("findText", FindText); writer.WriteObjectValue("startNum", StartNum); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs index e0f717a9356..d9784cbf74a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FindPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FindRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs index bf4b691022d..1cfc392b48c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs @@ -75,7 +75,7 @@ public static FindBPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"findText", n => { FindText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("findText", FindText); writer.WriteObjectValue("startNum", StartNum); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs index 950d21a16f0..e36ca98f891 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FindBPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FindBRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs index b25a11f0aba..0d8e7b252ae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs @@ -47,7 +47,7 @@ public static FisherPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs index 13bbe60265e..d90e0c608e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FisherPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FisherRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs index 6b32c0378fc..3e93040a3e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs @@ -47,7 +47,7 @@ public static FisherInvPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"y", n => { Y = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("y", Y); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs index ebdae0b464a..8fb3fb0fb9a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FisherInvPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FisherInvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs index 629269149e8..f979f36db62 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs @@ -75,7 +75,7 @@ public static FixedPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decimals", n => { Decimals = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"noCommas", n => { NoCommas = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("decimals", Decimals); writer.WriteObjectValue("noCommas", NoCommas); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs index 8c293a1a3f5..a5f850015f3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FixedPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FixedRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs index c9af09f142f..39811f3ac52 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs @@ -75,7 +75,7 @@ public static Floor_MathPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mode", n => { Mode = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("mode", Mode); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs index 078aa8a79d4..ef4a5b37e6f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Floor_MathPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Floor_MathRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs index 3574ee08668..906bbc36170 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs @@ -61,7 +61,7 @@ public static Floor_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("significance", Significance); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs index 12d5b17130b..aa408bc7b88 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Floor_PrecisePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Floor_PreciseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs index e68e01ebf95..f001d49e3d1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs @@ -1939,6 +1939,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -1957,7 +1958,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -1985,14 +1986,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookFunctions body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FunctionsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs index bf266c1e715..6330151137e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs @@ -103,7 +103,7 @@ public static FvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"pmt", n => { Pmt = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("nper", Nper); writer.WriteObjectValue("pmt", Pmt); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs index 1f70e6b4b05..d0d67d3830a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FvPostRequestBody body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs index e74860cfdcd..b9dc6cca12f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs @@ -61,7 +61,7 @@ public static FvschedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"principal", n => { Principal = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"schedule", n => { Schedule = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("principal", Principal); writer.WriteObjectValue("schedule", Schedule); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs index 162e8fd998d..a7906e3ae8d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(FvschedulePostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FvscheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs index cb68c90eef4..c1679bd1e5f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs @@ -47,7 +47,7 @@ public static GammaPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs index 1014d39aeb0..cfd145b8b6e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GammaPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GammaRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs index 37ff9bdfbdf..cd14bb8db71 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs @@ -47,7 +47,7 @@ public static GammaLnPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs index 78e94fee3b3..6c272318455 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GammaLnPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GammaLnRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs index 2a23c300892..c86939e964c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs @@ -47,7 +47,7 @@ public static GammaLn_PrecisePostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs index 93bb771a11e..b503b0f876b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GammaLn_PrecisePostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GammaLn_PreciseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs index 7b2b8e2faa0..280230d1b63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static Gamma_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("alpha", Alpha); writer.WriteObjectValue("beta", Beta); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs index 7b6618fb065..39674ccbd58 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Gamma_DistPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Gamma_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs index d964ca174cf..2294e14e1d6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs @@ -75,7 +75,7 @@ public static Gamma_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("alpha", Alpha); writer.WriteObjectValue("beta", Beta); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs index 1d22dbb88f5..6905d94ee55 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Gamma_InvPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Gamma_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs index 0a683c13978..70988d5a55a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs @@ -47,7 +47,7 @@ public static GaussPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs index 1f54b85608f..197d9e7dc7a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GaussPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GaussRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs index 480f98b7dff..445b143bccc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs @@ -47,7 +47,7 @@ public static GcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs index 21b28263c24..80293e730d2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GcdPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GcdRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs index 9c47c348bb5..b08936d5a77 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs @@ -61,7 +61,7 @@ public static GeStepPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"step", n => { Step = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("step", Step); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs index c63bcf39080..fa9e253d9aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GeStepPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GeStepRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs index b4d74006ac7..a280960965a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs @@ -47,7 +47,7 @@ public static GeoMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs index 559446f3184..bc542155b74 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(GeoMeanPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GeoMeanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs index 7925fd8a6f7..5c0e8383a2c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs @@ -47,7 +47,7 @@ public static HarMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs index 6ccdc57c6a1..ce2ec508d4d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(HarMeanPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HarMeanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs index 15a2ef85d45..52bdcac1fa0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs @@ -61,7 +61,7 @@ public static Hex2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs index 344bd000392..7b25d87e51b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Hex2BinPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Hex2BinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs index da378328959..c90a43dec18 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs @@ -47,7 +47,7 @@ public static Hex2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs index d9f421e9bd9..b180e0f568d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Hex2DecPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Hex2DecRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs index 7f92d021dcd..446c417f3c9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs @@ -61,7 +61,7 @@ public static Hex2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs index acf89aadb78..ad1e7b2a81f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Hex2OctPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Hex2OctRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs index e41c8bb1058..20b49b1db7d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs @@ -89,7 +89,7 @@ public static HlookupPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"rangeLookup", n => { RangeLookup = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("lookupValue", LookupValue); writer.WriteObjectValue("rangeLookup", RangeLookup); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs index 017b5c51309..a1d46d6f7b6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(HlookupPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HlookupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs index e3177f02047..69c5021f23e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs @@ -47,7 +47,7 @@ public static HourPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs index ffc54d684cc..78ef59a9262 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(HourPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HourRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs index 6b84f63d322..3baabe48c84 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs @@ -103,7 +103,7 @@ public static HypGeom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberPop", n => { NumberPop = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("numberPop", NumberPop); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs index b59b9d828f4..ddf1ae5f0e8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(HypGeom_DistPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HypGeom_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs index 3a1cdd99f29..7a61341d1b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs @@ -61,7 +61,7 @@ public static HyperlinkPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"friendlyName", n => { FriendlyName = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"linkLocation", n => { LinkLocation = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("friendlyName", FriendlyName); writer.WriteObjectValue("linkLocation", LinkLocation); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs index 58e09f2e8fc..b30a11d1489 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(HyperlinkPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HyperlinkRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs index e24f0839dee..ec1c7c5091e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs @@ -75,7 +75,7 @@ public static IfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"logicalTest", n => { LogicalTest = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"valueIfFalse", n => { ValueIfFalse = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("logicalTest", LogicalTest); writer.WriteObjectValue("valueIfFalse", ValueIfFalse); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs index ae6591b4152..102a97190b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IfPostRequestBody body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs index cb81ff1d63a..c1fb2c82fa0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImAbsPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs index cea641207fb..fd5ce40ce7d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImAbsPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImAbsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs index 64a448f66a2..0ce485eb6ea 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImArgumentPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs index 13c88704f05..eb4ac030ced 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImArgumentPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImArgumentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs index 45ef0be2a51..273d330a0f1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs @@ -47,7 +47,7 @@ public static ImConjugatePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs index c1d17656821..081c132d44b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImConjugatePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImConjugateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs index 7e991e3222e..8a77fa466cc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImCosPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs index 9854d5c28e8..53cf73c877c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImCosPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImCosRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs index 07d325f7d0f..25c7c3ed449 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImCoshPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs index 13762fcd1b9..47413a57cc7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImCoshPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImCoshRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs index fe1e27bceff..a8ca0677df9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImCotPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs index d2eb13e8ddd..1472b8ba3fa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImCotPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImCotRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs index 313c149f501..b0023bfed4d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImCscPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs index 59e76e1c6e8..aca3aa8996f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImCscPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImCscRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs index 437ef8212c5..de54293629d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImCschPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs index 96fddda334a..9d1728cf46b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImCschPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImCschRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs index 5d687d3f206..a779f80306b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs @@ -61,7 +61,7 @@ public static ImDivPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber1", n => { Inumber1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"inumber2", n => { Inumber2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber1", Inumber1); writer.WriteObjectValue("inumber2", Inumber2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs index ce8849a66fc..40007f8594d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImDivPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImDivRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs index 3d2ea8d7182..bd46ed18a98 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImExpPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs index 5144af02b90..9299dfa1008 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImExpPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImExpRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs index e419e6d5dcb..5d35e1d587f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImLnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs index 2b9c3b3af67..c3db00632fc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImLnPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImLnRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs index 672ce415b29..c36e575cd93 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs @@ -47,7 +47,7 @@ public static ImLog10PostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs index cd340325664..8bfda26bf9a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImLog10PostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImLog10RequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs index cf220bec26b..5ac868bb494 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs @@ -47,7 +47,7 @@ public static ImLog2PostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs index f1092cf18e5..c1fa9303fae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImLog2PostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImLog2RequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs index 0f9cc3ca21c..b3f821ad51e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs @@ -61,7 +61,7 @@ public static ImPowerPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs index 0459b999820..95782f7840d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImPowerPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImPowerRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs index 12186eb3f87..4fdccfa2726 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImProductPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs index 652cf494d20..182011aa4b8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImProductPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImProductRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs index 1ebfd064569..84aa5ec751f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImRealPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs index 3d89296bc63..364cafc69e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImRealPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImRealRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs index 5dffd332287..7729f927527 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImSecPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs index 01e86788942..f22760225c7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSecPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSecRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs index 8a0f311f242..43c3de587d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImSechPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs index ff68b13e937..f66a1eb98b3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSechPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSechRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs index 6bff459ee01..4ddcc52b53b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImSinPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs index e7aaaaecf59..740b53c8a09 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSinPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs index ba7d0d60a49..7c98177af1c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImSinhPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs index 2338a77b850..5dcf08bb8fb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSinhPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSinhRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs index 3f5ee822726..724d0ec4dd9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImSqrtPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs index efa5674001f..2f46c9327be 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSqrtPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSqrtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs index 676d15b4b52..d02950a2e5d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs @@ -61,7 +61,7 @@ public static ImSubPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber1", n => { Inumber1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"inumber2", n => { Inumber2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber1", Inumber1); writer.WriteObjectValue("inumber2", Inumber2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs index 9b2c51093bf..3a405ffa72d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSubPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs index 2660ac6428e..7f7075b195c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImSumPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs index ea607d36b50..33b22ea9abe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImSumPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImSumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs index 01495093879..ab10b12db10 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImTanPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs index 0d385b2d872..fa4d4c06823 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImTanPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImTanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs index d6b740411ab..0905cff4b5f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs @@ -47,7 +47,7 @@ public static ImaginaryPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs index 4fa78809fa0..c1272f08508 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ImaginaryPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ImaginaryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs index bb76d737178..e5d812a064b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs @@ -47,7 +47,7 @@ public static IntPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs index a157ab20335..f58d3448d58 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IntPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs index a96014a46e2..8983bc6392f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs @@ -103,7 +103,7 @@ public static IntRatePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"investment", n => { Investment = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("investment", Investment); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs index 496bcc3d547..7727014fabc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IntRatePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntRateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs index 4a7fc354b03..3d5929335a0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs @@ -117,7 +117,7 @@ public static IpmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs index b2addadda39..9b789ee424a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IpmtPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IpmtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs index 0665fe9d4de..f003129e33b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs @@ -61,7 +61,7 @@ public static IrrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"guess", n => { Guess = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("guess", Guess); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs index 2180a67a0f9..61cd74b4b22 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IrrPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IrrRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs index 5c3a7be2659..7020e167a37 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsErrPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs index bc8bbabb843..c01e7be473e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsErrPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsErrRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs index 8f40840669b..bae9526f853 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsErrorPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs index 7105f474d8c..7c13aa65ef8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsErrorPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsErrorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs index 01f0b968ce2..ee583d07cb3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsEvenPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs index dc25b722fd0..d600bf9a9d6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsEvenPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsEvenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs index 6422a70e977..c984333697c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsFormulaPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs index 2a3db8c3ad6..f58b6df4151 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsFormulaPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsFormulaRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs index d92f2ecd672..14f36fc74ac 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsLogicalPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs index dfb6f71ac4f..c84aba49d4a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsLogicalPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsLogicalRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs index bf78118be80..4a8ba00ee9b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsNAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs index bfe0990048b..79e266726e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsNAPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsNARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs index 91703a60b96..81265525211 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsNonTextPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs index 3b8662de9d4..9846e009fbe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsNonTextPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsNonTextRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs index b64b6308614..35c95221736 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsNumberPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs index 643cc65f290..802c47491e3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsNumberPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsNumberRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs index 179b482924c..4ee0998fc9f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsOddPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs index e7effc8ce1b..7565c617d28 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsOddPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsOddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs index 5d8151d3f3d..5931633cbce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsTextPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs index fd330aa42e5..d415c461aa3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsTextPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsTextRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs index c7b65d8956e..3eef63af32c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsoWeekNumPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"date", n => { Date = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("date", Date); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs index 8cc136dcc61..6c620c30fd5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsoWeekNumPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsoWeekNumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs index 2eb1a7a7630..5e621679eed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs @@ -61,7 +61,7 @@ public static Iso_CeilingPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("significance", Significance); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs index 1fab93c1df4..aa4f542bce0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Iso_CeilingPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Iso_CeilingRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs index 07208abed83..93156aa5a23 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs @@ -89,7 +89,7 @@ public static IspmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"per", n => { Per = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("nper", Nper); writer.WriteObjectValue("per", Per); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs index 56f02ee4387..065bf8471e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IspmtPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IspmtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs index 6a4777d1410..2b1bd79e5d0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs @@ -47,7 +47,7 @@ public static IsrefPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs index 897aebf2c22..7be0572f160 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(IsrefPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IsrefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs index 297292faa82..39a0e06111d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs @@ -47,7 +47,7 @@ public static KurtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs index ffc16f17f7f..5669fea67c4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(KurtPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new KurtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs index b176f9ee016..f942f0cf569 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs @@ -61,7 +61,7 @@ public static LargePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("k", K); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs index ac0c86e48d1..8a91c8fce8a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LargePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LargeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs index e0c00c55c41..20a9197b400 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs @@ -47,7 +47,7 @@ public static LcmPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs index 66243c09241..7567f739199 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LcmPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LcmRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs index c2725e41abc..745583c8af7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs @@ -61,7 +61,7 @@ public static LeftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numChars", NumChars); writer.WriteObjectValue("text", Text); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs index 884aaa7c7b8..dc282a2d8b0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LeftPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LeftRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs index 89ad9c91df7..9a6de8dd617 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs @@ -61,7 +61,7 @@ public static LeftbPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numBytes", NumBytes); writer.WriteObjectValue("text", Text); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs index 8e5ff0ced01..e3ed9c25fe7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LeftbPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LeftbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs index 82862f70914..19f204bfd94 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs @@ -47,7 +47,7 @@ public static LenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs index cea46e6c651..f1db37073ed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LenPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs index 9cce86f15bd..097db524309 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs @@ -47,7 +47,7 @@ public static LenbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs index 21631fc69b9..41ee2ed913f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LenbPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LenbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs index c1d839b3931..39d205b61b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs @@ -47,7 +47,7 @@ public static LnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs index 2d9eb39ae66..bf2a07c951d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LnPostRequestBody body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LnRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs index 1534f90387c..e89bf6d2a9e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs @@ -61,7 +61,7 @@ public static LogPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"base", n => { Base = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("base", Base); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs index 8fa9866d0a3..52fff5dccf9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LogPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs index c0aa76f618a..6ed6ae41833 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs @@ -47,7 +47,7 @@ public static Log10PostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs index 30096453bf1..82cf7415f73 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Log10PostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Log10RequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs index 58bb4f3fca0..b14124b75d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static LogNorm_DistPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("mean", Mean); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs index 05d9081947f..0bb5b3b7fdd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LogNorm_DistPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogNorm_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs index 33fd41179f3..af42e8a08ce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs @@ -75,7 +75,7 @@ public static LogNorm_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("mean", Mean); writer.WriteObjectValue("probability", Probability); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs index c69ce42f975..b214cbb8146 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LogNorm_InvPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogNorm_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs index 3583767026f..9d4cddc50c3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs @@ -75,7 +75,7 @@ public static LookupPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"lookupVector", n => { LookupVector = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("lookupValue", LookupValue); writer.WriteObjectValue("lookupVector", LookupVector); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs index a579ffb843a..15e9e8f567c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LookupPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LookupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs index c15569425a2..a65230f229e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs @@ -47,7 +47,7 @@ public static LowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs index 563df938214..deda05e3f8c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(LowerPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LowerRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs index 38bc6100eec..930334cfdd0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs @@ -75,7 +75,7 @@ public static MatchPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lookupArray", n => { LookupArray = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("lookupArray", LookupArray); writer.WriteObjectValue("lookupValue", LookupValue); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs index ec1f146e531..c7a251f4826 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MatchPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MatchRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs index d57900a9352..422c00c0280 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs @@ -47,7 +47,7 @@ public static MaxPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs index 61c407d730e..da2f732639c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MaxPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MaxRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs index aead145723b..ee7619b3f26 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs @@ -47,7 +47,7 @@ public static MaxAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs index b7c709b0623..27a1451970d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MaxAPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MaxARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs index 4e67ba3e00f..da985f8c5fb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs @@ -117,7 +117,7 @@ public static MdurationPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"coupon", n => { Coupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("coupon", Coupon); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs index 6c0e86acbec..bc2e1741773 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MdurationPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MdurationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs index 68fc546b820..e94d0adc31c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs @@ -47,7 +47,7 @@ public static MedianPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs index 47238d1a0b5..597cc67148d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MedianPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MedianRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs index 05a46e1e496..1d02f609647 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs @@ -75,7 +75,7 @@ public static MidPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numChars", NumChars); writer.WriteObjectValue("startNum", StartNum); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs index a02218cfd90..d975fa8c66b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MidPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MidRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs index 8cb529a00d8..c44cf043dce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs @@ -75,7 +75,7 @@ public static MidbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numBytes", NumBytes); writer.WriteObjectValue("startNum", StartNum); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs index 49fb24d1656..f59b565af49 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MidbPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MidbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs index 7c5a70f2a5c..61ff4e57bb7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs @@ -47,7 +47,7 @@ public static MinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs index fcd902b12c0..0ca56a417be 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MinPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs index 2460d44237c..3069a1dfb21 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs @@ -47,7 +47,7 @@ public static MinAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs index 1bd9a267962..d0425c22d3d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MinAPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MinARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs index d10377d5e1f..2040a4807e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs @@ -47,7 +47,7 @@ public static MinutePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs index a8b2c724d76..028dbcbc1e7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MinutePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MinuteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs index 4a565ec01a4..fa8f7582f35 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs @@ -75,7 +75,7 @@ public static MirrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"financeRate", n => { FinanceRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"reinvestRate", n => { ReinvestRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("financeRate", FinanceRate); writer.WriteObjectValue("reinvestRate", ReinvestRate); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs index ae60321a688..06c49c8f6f4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MirrPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MirrRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs index 878dfc04cdf..fa0fa7bee57 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs @@ -61,7 +61,7 @@ public static ModPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"divisor", n => { Divisor = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("divisor", Divisor); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs index c7059ebc454..f5a8fa951b7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ModPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ModRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs index e676647d894..e172f5be6e9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs @@ -47,7 +47,7 @@ public static MonthPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs index e7decdb315e..b86b975c7a9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MonthPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MonthRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs index d22a85ac7fa..c58ad7e4557 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs @@ -61,7 +61,7 @@ public static MroundPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"multiple", n => { Multiple = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("multiple", Multiple); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs index bd51b684aad..f56a2339747 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MroundPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MroundRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs index 776620f7027..ea6d49b3994 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs @@ -47,7 +47,7 @@ public static MultiNomialPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs index 1bde3a2e9cd..2e771e956d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(MultiNomialPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MultiNomialRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs index 196fb3e4325..763f78f7a77 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs @@ -47,7 +47,7 @@ public static NPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs index 3aebd56fae1..b2c91e6aff6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NPostRequestBody body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs index 564b231903c..4e6ae34299c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistPostRequestBody.cs index caa61f3eda9..ffcb54bd0a1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static NegBinom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberF", n => { NumberF = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("numberF", NumberF); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs index 6e0e8e48f3f..1324895fecf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NegBinom_DistPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NegBinom_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs index 63ae637db82..0ab36f1b8f7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs @@ -75,7 +75,7 @@ public static NetworkDaysPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endDate", EndDate); writer.WriteObjectValue("holidays", Holidays); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs index 435313778f3..4972595bebf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NetworkDaysPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NetworkDaysRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs index d1250150001..e2a22191440 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs @@ -89,7 +89,7 @@ public static NetworkDays_IntlPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endDate", EndDate); writer.WriteObjectValue("holidays", Holidays); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs index 8a551add53c..26b0355c390 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NetworkDays_IntlPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NetworkDays_IntlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs index 3c99c7718ef..80080715cd4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs @@ -61,7 +61,7 @@ public static NominalPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"effectRate", n => { EffectRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"npery", n => { Npery = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("effectRate", EffectRate); writer.WriteObjectValue("npery", Npery); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs index 9a305a086d9..a87c8712e1a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NominalPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NominalRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs index b0c43d7ac68..3c3eb88f103 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static Norm_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("mean", Mean); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs index 72de2528075..326acdb052e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Norm_DistPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Norm_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs index 63c9e2ccdeb..ac4e578ec6b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs @@ -75,7 +75,7 @@ public static Norm_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("mean", Mean); writer.WriteObjectValue("probability", Probability); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs index 768898545f2..8fef43c7c76 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Norm_InvPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Norm_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs index 001021987c5..9eea391b2c7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs @@ -61,7 +61,7 @@ public static Norm_S_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"z", n => { Z = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("z", Z); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs index 88b4a0c4171..5df0c0d115d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Norm_S_DistPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Norm_S_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs index 88174ebe046..e8cc1c7931b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs @@ -47,7 +47,7 @@ public static Norm_S_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs index aa366dade45..3543b08dd04 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Norm_S_InvPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Norm_S_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs index c4b27ef4aaa..8b6027a92de 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs @@ -47,7 +47,7 @@ public static NotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"logical", n => { Logical = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("logical", Logical); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs index 9688e668b34..eba882daf9a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NotPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NotRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs index 02d836ddaba..66fb170ce7d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperPostRequestBody.cs index b1928ab4ef3..cab9b762993 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperPostRequestBody.cs @@ -103,7 +103,7 @@ public static NperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"pmt", n => { Pmt = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("pmt", Pmt); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs index 7ad3f3273ce..92b647d4554 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NperPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NperRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs index adb977f79d0..393c9e8006d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs @@ -61,7 +61,7 @@ public static NpvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("rate", Rate); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs index 6a9c8867144..bc333a61925 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NpvPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NpvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs index a1ddc72ccb0..dcc321ab4b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs @@ -75,7 +75,7 @@ public static NumberValuePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decimalSeparator", n => { DecimalSeparator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"groupSeparator", n => { GroupSeparator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("decimalSeparator", DecimalSeparator); writer.WriteObjectValue("groupSeparator", GroupSeparator); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs index c9455fea6b5..e9e2141f54f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(NumberValuePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NumberValueRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs index 511b26e89eb..9f54aa0f6e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs @@ -61,7 +61,7 @@ public static Oct2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs index 258495471d9..4758fa7e1e0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Oct2BinPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Oct2BinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs index 12b5f95ae5e..159c00ef6b3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs @@ -47,7 +47,7 @@ public static Oct2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs index 07688e9a819..768f1d0b08b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Oct2DecPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Oct2DecRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs index 53994e5cef8..b6426a21253 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs @@ -61,7 +61,7 @@ public static Oct2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("places", Places); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs index d37f2516fd9..123a40ef8c0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Oct2HexPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Oct2HexRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs index f48a7318a7f..2b34ae865ab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs @@ -47,7 +47,7 @@ public static OddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs index f90c6106276..7c1dd846c06 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(OddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs index b5b830d3e8f..26108ffa3e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs @@ -159,7 +159,7 @@ public static OddFPricePostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"firstCoupon", n => { FirstCoupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -176,7 +176,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("firstCoupon", FirstCoupon); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs index 638023fc0f3..202f0c12507 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(OddFPricePostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OddFPriceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs index d0d14fc038d..226dfb2cdae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs @@ -159,7 +159,7 @@ public static OddFYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"firstCoupon", n => { FirstCoupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -176,7 +176,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("firstCoupon", FirstCoupon); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs index 1c119acea02..5dcd0a23864 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(OddFYieldPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OddFYieldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs index 66007b09d07..b9cdfad9180 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs @@ -145,7 +145,7 @@ public static OddLPricePostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -161,7 +161,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs index f6f81c24488..bf0b02e3c2c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(OddLPricePostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OddLPriceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs index 188f8e96ef5..d83dc1d15c6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs @@ -145,7 +145,7 @@ public static OddLYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -161,7 +161,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs index ac1645a1f56..6a9ad76b880 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(OddLYieldPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OddLYieldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs index 73cc48a0d30..d58b38d6586 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs @@ -47,7 +47,7 @@ public static OrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs index b4a627153f4..1ac4fc8916c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(OrPostRequestBody body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OrRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs index 27c3b6854a4..8762a0e2775 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs @@ -75,7 +75,7 @@ public static PdurationPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("pv", Pv); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs index 717002ef41f..9a9cbaff941 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PdurationPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PdurationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs index 17ee5bddf9b..4315ddd5ca9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs @@ -75,7 +75,7 @@ public static PercentRank_ExcPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("significance", Significance); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs index 6f7fe44cd20..cd0eaebcc30 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PercentRank_ExcPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PercentRank_ExcRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs index d4456d657c6..389f886014e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs @@ -75,7 +75,7 @@ public static PercentRank_IncPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("significance", Significance); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs index cfbf0cd2df7..e27a1d91cca 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PercentRank_IncPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PercentRank_IncRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs index 6c09bc90405..0b86ab03cb4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs @@ -61,7 +61,7 @@ public static Percentile_ExcPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("k", K); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs index c72625b020e..9dde9391b53 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Percentile_ExcPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Percentile_ExcRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs index 6c0a495ec8e..91f93dae3b0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs @@ -61,7 +61,7 @@ public static Percentile_IncPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("k", K); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs index 02e3b065689..550ea0df394 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Percentile_IncPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Percentile_IncRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs index 9c4f4dc70d1..ea5b3dbcd92 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs @@ -61,7 +61,7 @@ public static PermutPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numberChosen", NumberChosen); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs index e281441be60..3d3bf01dcb3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PermutPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermutRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs index 316ea1e3b37..545a72e5e63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs @@ -61,7 +61,7 @@ public static PermutationaPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numberChosen", NumberChosen); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs index d2ff30f0027..ce98bcef48c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PermutationaPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermutationaRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs index 3a1de604f7b..6e2b8786ef3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs @@ -47,7 +47,7 @@ public static PhiPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs index 5d5cfa98dde..dd95759f5e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PhiPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PhiRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs index 53d29bf2259..1da84dc027c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtPostRequestBody.cs index e5086dacc05..a00cbbb8519 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtPostRequestBody.cs @@ -103,7 +103,7 @@ public static PmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs index 3db70408671..d828a9c6408 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PmtPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PmtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs index 48bad180a78..3459fcb3dee 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs @@ -75,7 +75,7 @@ public static Poisson_DistPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("mean", Mean); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs index 3c1d4089a4c..290b095723a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Poisson_DistPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Poisson_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs index 44bac2cd6c6..a262adacf98 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs @@ -61,7 +61,7 @@ public static PowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"power", n => { Power = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("power", Power); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs index 612bed2f532..c2a38be9fb2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PowerPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PowerRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs index 64e6e11698e..d6616fe719a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs @@ -117,7 +117,7 @@ public static PpmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs index 0136fc8e1ad..63cc63c1daf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PpmtPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PpmtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs index 95b63b35ea3..38bfd391507 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs @@ -131,7 +131,7 @@ public static PricePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -146,7 +146,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs index d2afe20d8c0..785b673d8f2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PricePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PriceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs index c4f435b976a..a7fdc2187f9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs @@ -103,7 +103,7 @@ public static PriceDiscPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("discount", Discount); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs index 8b537a9270b..b8ab9de124f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PriceDiscPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PriceDiscRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs index e2a36a8efbd..14c55cd801b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs @@ -117,7 +117,7 @@ public static PriceMatPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("issue", Issue); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs index fece9ec6f4d..595ead32d30 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PriceMatPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PriceMatRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs index fe1a4c51eff..bdc7f2d989f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs @@ -47,7 +47,7 @@ public static ProductPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs index 3a6fe6893da..7af4d968e73 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ProductPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProductRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs index e7c870bf02d..de69941c830 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs @@ -47,7 +47,7 @@ public static ProperPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs index 13cf56c171a..e801caf9c9c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ProperPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProperRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs index 067ebd96744..82001ed2627 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs @@ -103,7 +103,7 @@ public static PvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs index bd9c4941325..c2abdeb0293 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(PvPostRequestBody body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs index 26b63de24b7..26e90ff0aec 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs @@ -61,7 +61,7 @@ public static Quartile_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"quart", n => { Quart = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("quart", Quart); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs index 3f868d0945a..afd330459ab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Quartile_ExcPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Quartile_ExcRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs index 5925a3905a4..f5bc660af22 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs @@ -61,7 +61,7 @@ public static Quartile_IncPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"quart", n => { Quart = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("quart", Quart); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs index 4b386a357de..533b73a0bdb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Quartile_IncPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Quartile_IncRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs index f27f466f2ad..a2cb6df7bb7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs @@ -61,7 +61,7 @@ public static QuotientPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"denominator", n => { Denominator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numerator", n => { Numerator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("denominator", Denominator); writer.WriteObjectValue("numerator", Numerator); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs index 39b8964b92a..d4b14061956 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(QuotientPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new QuotientRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs index a9a8da12554..b3bb9da9e1c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs @@ -47,7 +47,7 @@ public static RadiansPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"angle", n => { Angle = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("angle", Angle); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs index f5ed333f5ef..fffcdad33ed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RadiansPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RadiansRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs index de001ba99f5..2c53c05da7b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenPostRequestBody.cs index 4056dbf6139..bd15b6b2de9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenPostRequestBody.cs @@ -61,7 +61,7 @@ public static RandBetweenPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bottom", n => { Bottom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"top", n => { Top = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("bottom", Bottom); writer.WriteObjectValue("top", Top); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs index 705d6d773ef..3a2a2bd45c6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RandBetweenPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RandBetweenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs index f14889db008..041cfd4fc0d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs @@ -75,7 +75,7 @@ public static Rank_AvgPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"order", n => { Order = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("order", Order); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs index 104bb57861c..47891fa91a0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Rank_AvgPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Rank_AvgRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs index 6beced70c98..16cfbfdb06d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs @@ -75,7 +75,7 @@ public static Rank_EqPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"order", n => { Order = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("order", Order); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs index 5a81e16245a..a50bf13e32d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Rank_EqPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Rank_EqRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs index 7422aaf6762..a66561ee3c2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs @@ -117,7 +117,7 @@ public static RatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"guess", n => { Guess = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("guess", Guess); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs index ff175a6148c..e85d94a8cd1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RatePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs index cdc02c3117c..c3950a94d0f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs @@ -103,7 +103,7 @@ public static ReceivedPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("discount", Discount); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs index dbc11721d0d..da30a44c034 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ReceivedPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReceivedRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs index 032cb899890..40a8664127c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs @@ -89,7 +89,7 @@ public static ReplacePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"newText", n => { NewText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("newText", NewText); writer.WriteObjectValue("numChars", NumChars); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs index 75074a65002..eb2badc3ad6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplacePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplaceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs index 482103fc02d..ad0e2a173d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs @@ -89,7 +89,7 @@ public static ReplaceBPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"newText", n => { NewText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("newText", NewText); writer.WriteObjectValue("numBytes", NumBytes); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs index f4bf7e1e980..b97ec85e3a5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplaceBPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplaceBRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs index 0a3c645dfe1..764e60eae83 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numberTimes", n => { NumberTimes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numberTimes", NumberTimes); writer.WriteObjectValue("text", Text); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs index d19f0533a3b..59c2847618e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ReptPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs index 8bc73fd6082..66d10266613 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs @@ -61,7 +61,7 @@ public static RightPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numChars", NumChars); writer.WriteObjectValue("text", Text); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs index b86aa86eaa7..b0d6eb1130a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RightPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RightRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs index bbfcb2abb26..42d364b4e71 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs @@ -61,7 +61,7 @@ public static RightbPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("numBytes", NumBytes); writer.WriteObjectValue("text", Text); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs index 1fa1183303f..d8fa185de1c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RightbPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RightbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs index 1e629e8ed91..2e79bee2c36 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs @@ -61,7 +61,7 @@ public static RomanPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"form", n => { Form = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("form", Form); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs index 2b12ccb472c..034c2b9f01b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RomanPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RomanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs index 3d1821f1ebb..e13537b04bd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs @@ -61,7 +61,7 @@ public static RoundPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numDigits", NumDigits); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs index c1f762a935a..a3719930810 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RoundPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoundRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs index 3876516c32c..626245fdebf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs @@ -61,7 +61,7 @@ public static RoundDownPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numDigits", NumDigits); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs index 7b185efecfb..e089271c3a4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RoundDownPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoundDownRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs index 751f00074ae..eaa37586edd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs @@ -61,7 +61,7 @@ public static RoundUpPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numDigits", NumDigits); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs index 784c3a0b214..8cdced53b59 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RoundUpPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoundUpRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs index adbf665536a..f1bb03bd203 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs @@ -47,7 +47,7 @@ public static RowsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs index 21ef9ca439f..a8a6d2c3b1b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RowsPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RowsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs index 81eb5231472..3e6672df1ea 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs @@ -75,7 +75,7 @@ public static RriPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fv", Fv); writer.WriteObjectValue("nper", Nper); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs index b8bd5937904..6d017886bfd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RriPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RriRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs index 78c0b25406b..e3f35b2deb3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs @@ -47,7 +47,7 @@ public static SecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs index 57594ab7ad7..5692a70f8ce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SecPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SecRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs index 0f382094636..b55bd19ae96 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs @@ -47,7 +47,7 @@ public static SechPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs index 019f59e2725..0d2f0d2206d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SechPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SechRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs index 09580d349d7..7f922506cfb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs @@ -47,7 +47,7 @@ public static SecondPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs index 071c33cc508..1818cf8ef13 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SecondPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SecondRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs index 3d72163e8a6..663707ebb20 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs @@ -89,7 +89,7 @@ public static SeriesSumPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"coefficients", n => { Coefficients = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"m", n => { M = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("coefficients", Coefficients); writer.WriteObjectValue("m", M); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs index 58bee44cf3e..de81b7c18af 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SeriesSumPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SeriesSumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs index 1d67014769f..c5c18d3e8b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs @@ -47,7 +47,7 @@ public static SheetPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs index 6b3489aefae..a11a7ea4d56 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SheetPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SheetRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs index 744f1f5a897..2cc94c3e1cc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs @@ -47,7 +47,7 @@ public static SheetsPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs index b2db92f0d9c..effcfde5a35 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SheetsPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SheetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs index 06fc4102f63..4b9ba0b5b31 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs @@ -47,7 +47,7 @@ public static SignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs index e177d8b7141..3134d5f2e5a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SignPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SignRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs index 5b7ad4d9241..02c5ccbb80b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs @@ -47,7 +47,7 @@ public static SinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs index bd2bd835ef2..dde9cd0a05d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SinPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SinRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs index b0767750f0c..a269fe1cb7f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs @@ -47,7 +47,7 @@ public static SinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs index 1b9cf82ee82..9180b9f7223 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SinhPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SinhRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs index d653ef9a1b0..42ce12baf84 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs @@ -47,7 +47,7 @@ public static SkewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs index abc80ccd9b5..f47fd0c5130 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SkewPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SkewRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs index e8cd726a473..54042f1c151 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs @@ -47,7 +47,7 @@ public static Skew_pPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs index f61fc55a3aa..4a9161d95fd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Skew_pPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Skew_pRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs index 9ec07217cd3..cd430c83448 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs @@ -75,7 +75,7 @@ public static SlnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cost", Cost); writer.WriteObjectValue("life", Life); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs index 8c6fc762584..ee313ab4833 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SlnPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SlnRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs index 0a20f08a9e7..d08a8f0b624 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs @@ -61,7 +61,7 @@ public static SmallPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("k", K); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs index 2f258bb9db1..282a1081ea0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SmallPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SmallRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs index 9813a8a06e4..5389c513ceb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs @@ -47,7 +47,7 @@ public static SqrtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs index ab3621bc33c..f70fea2ff5a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SqrtPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SqrtRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs index 0f724925eae..6a4e74c1a04 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs @@ -47,7 +47,7 @@ public static SqrtPiPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs index 91128d7509c..ff8631d978c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SqrtPiPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SqrtPiRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs index ca80aa0e5b2..64a8b06aaff 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs @@ -47,7 +47,7 @@ public static StDevAPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs index 5f48ba5091f..709581ae29e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(StDevAPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StDevARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs index 639fa84bc46..9d89494c40c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs @@ -47,7 +47,7 @@ public static StDevPAPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs index ffdbda9c002..b371aee7259 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(StDevPAPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StDevPARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs index 9de78b0e009..eac14a81073 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs @@ -47,7 +47,7 @@ public static StDev_PPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs index c3fcc1a78d6..2e5c018979c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(StDev_PPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StDev_PRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs index 8d444fcc15b..84353bd7f07 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs @@ -47,7 +47,7 @@ public static StDev_SPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs index 4c8c6c31d3f..63c4bf095c7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(StDev_SPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StDev_SRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs index 76cc57480fa..6c45a5a546d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs @@ -75,7 +75,7 @@ public static StandardizePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("mean", Mean); writer.WriteObjectValue("standardDev", StandardDev); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs index 5697f2d77c7..c30980aa4fa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(StandardizePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StandardizeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs index 54cdf1b01dd..379c34e1179 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs @@ -89,7 +89,7 @@ public static SubstitutePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"instanceNum", n => { InstanceNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"newText", n => { NewText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("instanceNum", InstanceNum); writer.WriteObjectValue("newText", NewText); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs index 0d97369a101..3f22dff1ea4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SubstitutePostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubstituteRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs index a1b5a62c172..c4d8885cbb6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs @@ -61,7 +61,7 @@ public static SubtotalPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"functionNum", n => { FunctionNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("functionNum", FunctionNum); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs index 9c7f5459ff6..74459aebc5d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SubtotalPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubtotalRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs index 2be83f160f7..3b18830b03a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs @@ -47,7 +47,7 @@ public static SumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs index da840336541..60bc596900d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SumPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs index 0cb0c6aff97..1d9cd75a6e8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs @@ -75,7 +75,7 @@ public static SumIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteObjectValue("range", Range); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs index 95d4921c7a9..6ddd1f9d725 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SumIfPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SumIfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs index e0efec98da3..8a5ff31818d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs @@ -61,7 +61,7 @@ public static SumIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"sumRange", n => { SumRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("sumRange", SumRange); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs index 8cafb272ff1..e1436ef2bc0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SumIfsPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SumIfsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs index ebef9e30d24..3197d2345d2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs @@ -47,7 +47,7 @@ public static SumSqPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs index 708000c1a28..8d9e1928115 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SumSqPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SumSqRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs index 66d8b716f03..5bc85fbbb9a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs @@ -89,7 +89,7 @@ public static SydPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cost", Cost); writer.WriteObjectValue("life", Life); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs index c7c8960de4d..8c7729d9861 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(SydPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SydRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs index 4bb5c5f8218..77e1d826be6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs @@ -47,7 +47,7 @@ public static TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs index d3899f2c43c..ac4445e503c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TPostRequestBody body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs index 70470228127..7c5a6d4cb56 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs @@ -75,7 +75,7 @@ public static T_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cumulative", Cumulative); writer.WriteObjectValue("degFreedom", DegFreedom); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs index 9a2887ed324..ff163325702 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(T_DistPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new T_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs index 5449cf8a763..0a681561256 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs @@ -61,7 +61,7 @@ public static T_Dist_2TPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs index 57add38cfea..75463a73110 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(T_Dist_2TPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new T_Dist_2TRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs index 195de501c3b..a08d692e5cd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs @@ -61,7 +61,7 @@ public static T_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("x", X); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs index 1e38c8199d1..edc202f4e11 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(T_Dist_RTPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new T_Dist_RTRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs index 95f0cf2e2b6..b4f85fe5c4f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs @@ -61,7 +61,7 @@ public static T_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("probability", Probability); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs index b2ad8c8e7cd..4ef5af7164d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(T_InvPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new T_InvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs index 5a8dbe402fe..3c83c7aa85c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs @@ -61,7 +61,7 @@ public static T_Inv_2TPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("degFreedom", DegFreedom); writer.WriteObjectValue("probability", Probability); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs index 85aa56e6228..5a0d4a57fbd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(T_Inv_2TPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new T_Inv_2TRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs index 4237145cc3a..f7e8d3a4059 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs @@ -47,7 +47,7 @@ public static TanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs index 245e1532491..5861459f517 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TanPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs index 0c1793552e4..b4290df5b61 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs @@ -47,7 +47,7 @@ public static TanhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs index c12bcd53937..4534dac6681 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TanhPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TanhRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs index 82e73d28be3..eae7183377f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs @@ -75,7 +75,7 @@ public static TbillEqPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("discount", Discount); writer.WriteObjectValue("maturity", Maturity); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs index cee3d0f82e8..227b35e4cde 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TbillEqPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TbillEqRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs index 84fcf996cb0..f891d986495 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs @@ -75,7 +75,7 @@ public static TbillPricePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("discount", Discount); writer.WriteObjectValue("maturity", Maturity); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs index 24f56d8e8d3..71dfa5eebc5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TbillPricePostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TbillPriceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs index b3f52639115..6626208d2a0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs @@ -75,7 +75,7 @@ public static TbillYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("maturity", Maturity); writer.WriteObjectValue("pr", Pr); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs index 5c019a6f89b..813b21599dd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TbillYieldPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TbillYieldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs index 6793f3d41f3..2e71498801a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs @@ -61,7 +61,7 @@ public static TextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"formatText", n => { FormatText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("formatText", FormatText); writer.WriteObjectValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs index 05e94d39eb9..38d5e98fd5a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TextPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TextRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs index 3a820f0616c..52ade6e8b63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs @@ -75,7 +75,7 @@ public static TimePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hour", n => { Hour = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"minute", n => { Minute = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("hour", Hour); writer.WriteObjectValue("minute", Minute); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs index 931ff017e8b..3ecb763f030 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TimePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TimeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs index bd4b572af53..cb3c424a03b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs @@ -47,7 +47,7 @@ public static TimevaluePostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"timeText", n => { TimeText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("timeText", TimeText); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs index 738898421f9..a5a218ecdf2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TimevaluePostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TimevalueRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs index 0f4b7f9f9c3..be208e8d7d2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimPostRequestBody.cs index 064731e821e..6a16d6b6409 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimPostRequestBody.cs @@ -47,7 +47,7 @@ public static TrimPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs index 22c72080b7a..d32e1c45784 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TrimPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrimRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs index 8ae1b996644..55aff075783 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs @@ -61,7 +61,7 @@ public static TrimMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"percent", n => { Percent = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("percent", Percent); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs index feed56e672c..c0acc578aa9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TrimMeanPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrimMeanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs index 51d3198a710..17dfb03798e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs index 6af49c019b6..621b3561fda 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs @@ -61,7 +61,7 @@ public static TruncPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteObjectValue("numDigits", NumDigits); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs index 02cfcad22ea..28b7baa12ca 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TruncPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TruncRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs index 65e1048c74a..48cf654e20b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs @@ -47,7 +47,7 @@ public static TypePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs index 557eb62346f..64b7a85bf87 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(TypePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TypeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs index 01e35505de8..e9651aa6c78 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs @@ -47,7 +47,7 @@ public static UnicharPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs index 765df18607e..41014680835 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(UnicharPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnicharRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs index a67664aabf1..c53f54dd834 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs @@ -47,7 +47,7 @@ public static UnicodePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs index b2c42ae1a58..591fca77e96 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(UnicodePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnicodeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs index d2fbf2c1219..6ece828a407 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs @@ -47,7 +47,7 @@ public static UpperPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs index 71ff8110317..dffdbbe5ac8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(UpperPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpperRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs index 3da0845083c..a3fde85b043 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs @@ -61,7 +61,7 @@ public static UsdollarPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decimals", n => { Decimals = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("decimals", Decimals); writer.WriteObjectValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs index 9cf0fb1d502..a4dfb4a5308 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(UsdollarPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UsdollarRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs index 39bc0232c20..fb6797b8220 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs @@ -47,7 +47,7 @@ public static ValuePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs index f03674b31f9..7ff330bd493 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(ValuePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValueRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs index 8d05f0bf0c4..2cab729d834 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs @@ -47,7 +47,7 @@ public static VarAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs index ca886521637..f025427f481 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(VarAPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VarARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs index db637c9b715..26a77c6a5f0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs @@ -47,7 +47,7 @@ public static VarPAPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs index a90f40e649d..a4b088829a1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(VarPAPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VarPARequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs index de83e64d24b..57270306fd2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs @@ -47,7 +47,7 @@ public static Var_PPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs index 8ec545401d1..bc2ba81d465 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Var_PPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Var_PRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs index b94cdcf8b75..ff225c65d85 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs @@ -47,7 +47,7 @@ public static Var_SPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs index 614a9ef7a3f..d6b29077ba1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Var_SPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Var_SRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs index 69b41bafbab..b4acd92000b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs @@ -131,7 +131,7 @@ public static VdbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"endPeriod", n => { EndPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -146,7 +146,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("cost", Cost); writer.WriteObjectValue("endPeriod", EndPeriod); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs index fc1c1730cd5..9699f7986d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(VdbPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VdbRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs index dff89dd3920..7e4d9eb4b47 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs @@ -89,7 +89,7 @@ public static VlookupPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"colIndexNum", n => { ColIndexNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("colIndexNum", ColIndexNum); writer.WriteObjectValue("lookupValue", LookupValue); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs index b246ad676cf..82a607be2d8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(VlookupPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VlookupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs index de532076497..06e06e27cfb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs @@ -61,7 +61,7 @@ public static WeekNumPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"returnType", n => { ReturnType = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("returnType", ReturnType); writer.WriteObjectValue("serialNumber", SerialNumber); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs index eac187a6979..4c390d2e00a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(WeekNumPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WeekNumRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs index 2228d36a1e6..98513bb0036 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs @@ -61,7 +61,7 @@ public static WeekdayPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"returnType", n => { ReturnType = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("returnType", ReturnType); writer.WriteObjectValue("serialNumber", SerialNumber); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs index 3bff0dad5aa..c684ceffe23 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(WeekdayPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WeekdayRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs index 17502288ea0..692af3d9c19 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs @@ -89,7 +89,7 @@ public static Weibull_DistPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("alpha", Alpha); writer.WriteObjectValue("beta", Beta); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs index 69eac982755..40c01b516b6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Weibull_DistPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Weibull_DistRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs index 5046b448956..8ff05d68dd4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs @@ -75,7 +75,7 @@ public static WorkDayPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"days", n => { Days = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("days", Days); writer.WriteObjectValue("holidays", Holidays); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs index c39f2e96333..815fb1f94e8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(WorkDayPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkDayRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs index e7edca3d110..658c0a852c9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs @@ -89,7 +89,7 @@ public static WorkDay_IntlPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"days", n => { Days = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -101,7 +101,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("days", Days); writer.WriteObjectValue("holidays", Holidays); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs index 9c2744b76d2..259a8d3ab8a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(WorkDay_IntlPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkDay_IntlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs index 5f1546cda9c..36e8a7980ec 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs @@ -75,7 +75,7 @@ public static XirrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dates", n => { Dates = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"guess", n => { Guess = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("dates", Dates); writer.WriteObjectValue("guess", Guess); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs index ffb6ce02c4d..9efa93a4c16 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(XirrPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new XirrRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs index 5a6e5ce8426..1bddccf88c5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs @@ -75,7 +75,7 @@ public static XnpvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dates", n => { Dates = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("dates", Dates); writer.WriteObjectValue("rate", Rate); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs index 815361f5a62..7e693fea861 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(XnpvPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new XnpvRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs index cd503974df0..ce1b0c3d106 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs @@ -47,7 +47,7 @@ public static XorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs index ce5ed044f93..e72b810ec20 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(XorPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new XorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs index 80aeb48242d..93432f063c4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs @@ -47,7 +47,7 @@ public static YearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs index d3c3443c0dd..a00a4e21420 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(YearPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new YearRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs index 91a0e9e34ed..9fb10a436e4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs @@ -75,7 +75,7 @@ public static YearFracPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("endDate", EndDate); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs index 52309afbc60..1d1c68cc23c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(YearFracPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new YearFracRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs index a5a49491275..63ad6ddc95c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs @@ -131,7 +131,7 @@ public static YieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -146,7 +146,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("frequency", Frequency); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs index f2215a32fa2..c09e272aed3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(YieldPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new YieldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs index 385da9a7438..63695cdb112 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs @@ -103,7 +103,7 @@ public static YieldDiscPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("maturity", Maturity); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs index aa01e042c5d..c7231f6fafb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(YieldDiscPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new YieldDiscRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs index 47cf5191150..e7cc666b44d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs @@ -117,7 +117,7 @@ public static YieldMatPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -131,7 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("basis", Basis); writer.WriteObjectValue("issue", Issue); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs index fa8789534cd..2c2a3f07387 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(YieldMatPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new YieldMatRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs index da4b99e2c5c..461ec4530ec 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs @@ -75,7 +75,7 @@ public static Z_TestPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"sigma", n => { Sigma = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("array", Array); writer.WriteObjectValue("sigma", Sigma); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs index 4802456e4bd..58c5c1368aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(Z_TestPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Z_TestRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs index 68a1526fafc..5577d3387c7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs @@ -75,7 +75,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"comment", n => { Comment = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs index 261f1823bfd..69449e1aac8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs index e7b7bcca8f2..b623f3f08bb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs @@ -74,7 +74,7 @@ public static AddFormulaLocalPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"comment", n => { Comment = n.GetStringValue(); } }, {"formula", n => { Formula = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("formula", Formula); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs index 2763aae51af..b0fcd7ae680 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddFormulaLocalPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddFormulaLocalRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs index dcc905faa1b..b7063738f5a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 1992f3ba238..6067f6343b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs index 1af823ab911..2c0e0c52f24 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookNamedItem body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookNamedItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs index e0cb9afb7b5..d13e273c7ad 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index d0b1afe21c7..ab4a792f5b5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(WorkbookNamedItem body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NamesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs index d31d3b3117f..21dc69a0108 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs index 6f3fb42d6f8..e1859e3a022 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookOperation body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs index ef5513f2887..61069fe9290 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WorkbookOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs index cabeedd1f6a..5b0debb55a2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.cs index 1ba5c97d74a..aa160ae0449 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/SessionInfoResourceWithKey/SessionInfoResourceWithKeyRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.cs index 9bee9f4509c..d489a292447 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/TableRowOperationResultWithKey/TableRowOperationResultWithKeyRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddPostRequestBody.cs index 7660b74fc6c..6609be1d9bf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddPostRequestBody.cs @@ -51,7 +51,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"hasHeaders", n => { HasHeaders = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteBoolValue("hasHeaders", HasHeaders); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs index 38baada13d4..5b0ca2f5647 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs @@ -29,8 +29,8 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", rawUrl) { } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Table. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is available in the following national cloud deployments. + /// Use this API to create a new Table. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs index 36c8e322cd6..ebdabd941fa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs index 279f7691fa9..0dd3bf6a477 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs index b6d80e03588..436a2794431 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddPostRequestBody.cs index 545b4fdbe8a..655d744d4fe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddPostRequestBody.cs @@ -66,7 +66,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"index", n => { Index = n.GetIntValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs index a39148297ff..1d085690fa7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index cc4e969b235..438ba886370 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs index 5b80066e75c..b4e44b387b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs index 320c4ebec26..00aa52d5e09 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index b94552ae32f..fbe57636027 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs index 50a2db1f4f7..d90db829b6d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs index 6c4fb1bbee3..c5598a729fc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs index f04746ae706..738ca2bce2e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyBottomItemsFilterPostRequestBody CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"count", n => { Count = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs index c2b203a5800..1ddb7dbbb93 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyBottomItemsFilterPostReq UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyBottomItemsFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs index 8e25baa5c13..e1d488cbe29 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyBottomPercentFilterPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"percent", n => { Percent = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("percent", Percent); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs index eff61d5f4a3..be38e300485 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyBottomPercentFilterPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyBottomPercentFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs index 50518c3bc74..9efc45ea999 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyCellColorFilterPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs index ebd84b8f0a1..19e337dd375 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyCellColorFilterPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyCellColorFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs index 4dd5b21a06c..be1a81d6920 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs @@ -74,7 +74,7 @@ public static ApplyCustomFilterPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria1", n => { Criteria1 = n.GetStringValue(); } }, {"criteria2", n => { Criteria2 = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("criteria1", Criteria1); writer.WriteStringValue("criteria2", Criteria2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs index 0681d58e609..99185d6079f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyCustomFilterPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyCustomFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs index 5db35aca74a..8d420895ebc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyDynamicFilterPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs index ccf54e590a0..4ac6a3f12b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyDynamicFilterPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyDynamicFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs index 900c5ad481e..7e06a5971cf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyFontColorFilterPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs index d3def0b9ed9..3d8d26a6620 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyFontColorFilterPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyFontColorFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs index 904d52bb610..ca32085b6a5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs @@ -47,7 +47,7 @@ public static ApplyIconFilterPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"icon", n => { Icon = n.GetObjectValue(WorkbookIcon.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("icon", Icon); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs index 8ad5ba73271..bdf6e3cc2be 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyIconFilterPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyIconFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs index f5322366e57..854e51e37ec 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyTopItemsFilterPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"count", n => { Count = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs index cd4efd895a7..db9235b1074 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyTopItemsFilterPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyTopItemsFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs index d58c933efd0..f1765cf653d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyTopPercentFilterPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"percent", n => { Percent = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("percent", Percent); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs index 9b30147bc31..dd6bb82caa1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyTopPercentFilterPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyTopPercentFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs index d84db301f92..cfd67ad7a10 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs @@ -47,7 +47,7 @@ public static ApplyValuesFilterPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs index e47e2bdacae..e6ae7281578 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyValuesFilterPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyValuesFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs index f96af2c4758..629c9d59aa3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs index 204f18b4dfd..d7f3d6dcab1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilterRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 5038702497c..d8fc2cb6d66 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs index e8e9db5bf5d..d95134a645d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 04ebee59c9f..f21d9b4c550 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs index a59b347f44a..a9ff0e0b0d6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableColumn body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookTableColumnItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index d138e94442d..94777a650da 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs index 1a82990df59..9e93e17baf7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index c80ca023769..7fb12b7fbb8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 54cf8091321..a37a48971c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs index f3b5271fdc7..b562d946219 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs index 06d903e248a..1615ac60c07 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddPostRequestBody.cs index 7328f5cdb01..8294989812d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddPostRequestBody.cs @@ -52,7 +52,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"index", n => { Index = n.GetIntValue(); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs index 9b8a5791072..a2b43047f65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs index 5a8cfae28e8..082d4fd7b1a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs index e8c3196d1a5..c5961523033 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs index 04b1b896aa3..203085445df 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs index 121efcfe806..74b0a52ff76 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableRow body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookTableRowItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 7419394bf6e..53ad703ef59 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index 67177a09b87..27d193a9854 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RowsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs index 0390bfb28de..99d8fcaee62 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs @@ -66,7 +66,7 @@ public static ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fields", n => { Fields = n.GetCollectionOfObjectValues(WorkbookSortField.CreateFromDiscriminatorValue)?.ToList(); } }, {"matchCase", n => { MatchCase = n.GetBoolValue(); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("fields", Fields); writer.WriteBoolValue("matchCase", MatchCase); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs index c7dda6f20aa..a1a52e173fb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs index 3793d435387..98a4e4f7ac8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs index 3e0188fe259..808e1ffa447 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs index 66f44ac4caa..0d27e5cfe02 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/SortRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SortRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 61e6a8975b4..ae07ab97a51 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs index 35264725bfc..0be19b814cf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs @@ -167,6 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -185,7 +186,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -213,14 +214,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTable body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs index 7577323ad4a..d92c94f7e3c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 5dd72397753..ddef72e734c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index 6e099dec267..75fb78cd932 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -49,7 +49,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of table objects. This API is available in the following national cloud deployments. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -140,14 +140,14 @@ public RequestInformation ToPostRequestInformation(WorkbookTable body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs index 0fa15ab82fa..ee1d5dfa6e1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs @@ -177,6 +177,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -195,7 +196,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -223,14 +224,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Workb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs index 26184146ab6..cbc3fecb3a5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs index d6096759bb6..d04947a6ead 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs index cd3346574b8..792e50f8913 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs index c0dea681085..eb83e2cce26 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs index 4a742858e16..274c09a366d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs @@ -75,7 +75,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"seriesBy", n => { SeriesBy = n.GetStringValue(); } }, {"sourceData", n => { SourceData = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("seriesBy", SeriesBy); writer.WriteObjectValue("sourceData", SourceData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs index dedd42679ca..7da51b8a167 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index ded94046745..c23b1b130cd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -50,7 +50,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chart objects. This API is available in the following national cloud deployments. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -122,7 +122,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -150,14 +150,14 @@ public RequestInformation ToPostRequestInformation(WorkbookChart body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs index 6b641171a09..dd2e68b08a7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs index 479ee37435e..acd4f7d6430 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.cs index 0446c3dbc19..87ab5342dc1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/AxesRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AxesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs index 4acd0777c71..0bfa188c2e0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CategoryAxisRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs index d69454b8400..6f76ba34dfd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs index de5a9520fd4..1ac2c177363 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs index 818012d4fd6..0691401a3d8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs index 492a69d301a..fb777d6a6c3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/LineRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs index 11c2f359074..f6afb518a60 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index d8a06acd646..b735eb8093b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs index 253b0b3faed..4d215b8fb4a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs index 52263557186..a295523ed8a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MajorGridlinesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs index b7f16d05989..4158a0d669d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 7653e1e8194..c52e5fde523 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs index a9e66c1f7bc..de250dfbf66 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 0b146add827..18a49fc1866 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MinorGridlinesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs index 41fc8ff67e4..0a41234d0af 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs index 07f25fdf833..bcaf58ea27b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs index 333d2d8f0b1..a4f8aa80e65 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TitleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs index 48bd7167ca2..5b5a5ecff4f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs index a32e17d4774..3ee2739509d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs index 3491cfc2b66..64e97ff90e6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs index 72e710fd173..91eb55fd4e8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/LineRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs index 18b3db25301..da5bc55101a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 2dd42e030e2..bb3f3d4080e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs index df8d6ae315e..6ec40de2747 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs index 69a38050639..c95c8e2c94e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MajorGridlinesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs index a00cad379b5..2f4c11f487c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 7deefd83bd7..5dea88eff71 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs index ffc743fad17..0795a11b566 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 542d9feb4d2..b3a96ac52bc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MinorGridlinesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs index 3eb4b9a89e3..cdd76bf61ad 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SeriesAxisRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs index a66b7fd04c3..3c4a2bfd1f1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs index e6a54745822..6c90e3bd804 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs index 7407ce8b4bf..b7fc6f9475f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TitleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs index eb614612c6a..74703de1441 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs index d5fc656e3c7..37ae69b516d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs index b304bbd26e4..ef52ceea118 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs index 577affb4844..72d049a2bd1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/LineRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs index a51728ddd10..a74b938b013 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 182c1301545..bdb309da6eb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs index 1331e2b3a0d..528964e642c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs index 416922f33a5..f2c6fe730cd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MajorGridlinesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs index fd7ea0afa2c..1f66e0b3082 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 71ac94483a0..be414de579e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs index c2e38935533..a75c2013e52 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 8c72958b967..89a2a9d8d42 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MinorGridlinesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs index f4402328da9..0172be13396 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs index 272f01986dd..766b02593f8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs index 46579abe12b..939d759910a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TitleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs index 6728ddd57a1..5aa1849d689 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs @@ -131,6 +131,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -149,7 +150,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -177,14 +178,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValueAxisRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs index ffba176246a..5e6216752b5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DataLabelsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs index ea0abb380d1..fed9d20dc58 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.cs index 8661c987a67..c0458efca94 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/FillRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FillRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 5dc5beb5745..e23dd960443 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 07f67114bbc..8c8bb01d7d3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetSolidColorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs index 7adc410532e..662345fac13 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs index bcbf8122243..9f40bf94e97 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabelFormat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs index c5cd389f15d..41d9bf084db 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.cs index a3b642787f6..a6235031674 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/FillRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FillRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index eb880b9f7cb..3129e98a9c2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index ef8922b3084..998f4664eb6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetSolidColorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs index 54e055f1b0e..25b613da7aa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs index d220161fb28..e7faafa9455 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs index 8b83dd87db8..6fc2f76575a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs @@ -46,7 +46,7 @@ public static ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs index 8b0f121aff9..00115abc210 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs index cffe0ac1f4f..65e0d391ce0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthGetResponse.cs @@ -46,7 +46,7 @@ public static ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs index 760db4c5d1a..ef053b45e71 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs index 2caf0b22a16..593a412f491 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightGetResponse.cs @@ -46,7 +46,7 @@ public static ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs index 6407d23f686..fab686885e3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs @@ -86,13 +86,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs index 98f252bf80c..5e477bc2b2c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeGetResponse.cs @@ -46,7 +46,7 @@ public static ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscr /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs index d5a8f51729f..c4437550d53 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs @@ -88,13 +88,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs index f3580c93fcb..e83a3f52646 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.cs index 52a58feb94a..26db9be7b4e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/FillRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FillRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 985f7091c0a..761f68e7ef3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 87884aa5e89..f3b71e1e695 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetSolidColorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs index c0f481e155f..9327530fca2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs index c561694e6be..239728dfbc2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLegendFormat bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs index 6b28ee97672..f92270d1e7e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LegendRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs index 60774aab5de..82edfbfe882 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs index 8616b6fa02e..e564491af03 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs index bcdda299be5..fed50f8408f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs index 9d936670678..427032c151a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/FillRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FillRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 3a02b1283d2..99a89efdebe 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 3055d1f1117..00f38d15bf3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetSolidColorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs index db39c4c4b78..5e6fa1fccdd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartSeriesFormat bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs index 9499f181ee8..65dbef34193 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.cs index 43513389a2b..5b5d1624ca7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/LineRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LineRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs index 10537ad0ea7..9c7343f1670 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs index 6cf036de0b8..39877e3539d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs index abfc5916880..059397b7508 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs index 8c9ef08aef8..dbde6134400 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/FillRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FillRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index c7037925e58..02f2d172a3b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 51afdcdfa74..c95f77cf02b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetSolidColorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs index bfaa6fd3296..b9edadd7d5a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartPointFormat bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs index 6a91a25f0b3..0e1bc4680d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartPoint body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookChartPointItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 2f3144a7f24..896e1a14ee6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs index f631e9103e4..55fdfbe6738 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -43,8 +43,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoints objects. This API is available in the following national cloud deployments. - /// Find more info here + /// Retrieve a list of chartpoint objects. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoints objects. This API is available in the following national cloud deployments. + /// Retrieve a list of chartpoint objects. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PointsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -154,7 +154,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) { return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoints objects. This API is available in the following national cloud deployments. + /// Retrieve a list of chartpoint objects. This API is available in the following national cloud deployments. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs index 4fcfa75b10a..272afa8b092 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartSeries body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 68d444144ae..789a4b160b7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index 63d4fb903d9..1c70b3731ff 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -44,7 +44,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chartseries objects. This API is available in the following national cloud deployments. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SeriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs index 2cfc429af74..07d234d432a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs @@ -61,7 +61,7 @@ public static SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"seriesBy", n => { SeriesBy = n.GetStringValue(); } }, {"sourceData", n => { SourceData = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("seriesBy", SeriesBy); writer.WriteObjectValue("sourceData", SourceData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs index 2eb2e245d4c..c169457809e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetDataRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs index 8801cd27d67..1944264553f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs @@ -61,7 +61,7 @@ public static SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endCell", n => { EndCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"startCell", n => { StartCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endCell", EndCell); writer.WriteObjectValue("startCell", StartCell); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs index 66b7d53333b..771b275b282 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetPositionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs index 88b745aeea2..45e5712c2c5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.cs index 095d1c8eef8..56502ae892e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/FillRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FillRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index d601c8d6da7..c7bc557a85b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index f5f2b5b7442..596cb1a08a4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetSolidColorRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs index 739288f97a4..d3438a63e87 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FontRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs index 9195249249f..04f67aad7c4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartTitleFormat bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs index a9aef67f912..3968c5e9110 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TitleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs index 98c36b53e47..0ea2a6ceccd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs @@ -195,6 +195,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -213,7 +214,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -241,14 +242,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookChart body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs index 50e11afd639..7807c58e0ae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index df3b3a8f836..bf182dec893 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.cs index 94672291dc3..69193f26e26 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ItemWithNameRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs index 94ad17329e4..adf278338c9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs @@ -75,7 +75,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"comment", n => { Comment = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs index ffb5e1f06e7..c325e9dbbce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs index 020f7f2bae8..104c6b0cd53 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs @@ -74,7 +74,7 @@ public static AddFormulaLocalPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"comment", n => { Comment = n.GetStringValue(); } }, {"formula", n => { Formula = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("formula", Formula); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs index 4c3d11cb0d6..28115efff72 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddFormulaLocalPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddFormulaLocalRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs index a8720661810..957596d9751 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 10b3692337e..c431c2c8216 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs index e6fcd4e58f6..c3fcddc8721 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookNamedItem body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookNamedItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs index f24584cea1a..5e9910186b2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs index d4568888405..b311de0b066 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(WorkbookNamedItem body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NamesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs index d5baebd7fce..7308a55b32b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs index ebc0389c3f6..7b9f18c9b3b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs index f870612032a..b8ad413c666 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/WorkbookPivotTableItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookPivotTable body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookPivotTableItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs index 64129eb35ba..0506a5f1639 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs index c74f8092555..a2ebca8ce1e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(WorkbookPivotTable body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PivotTablesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs index 191a607fca6..2cad4d119ff 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectPostRequestBody.cs index 7de55d42e40..7924efca92e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectPostRequestBody.cs @@ -47,7 +47,7 @@ public static ProtectPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"options", n => { Options = n.GetObjectValue(WorkbookWorksheetProtectionOptions.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("options", Options); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs index c031867bb13..d909fc9b85c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ProtectPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProtectRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs index ad044aff0a8..ae8a557d9c4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookWorksheetProtection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProtectionRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs index 5f8857aea9e..596967ec1e5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs index ade2994b0a5..8e6c0e9b69e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs index 6b433b5e271..42b222ee522 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs index 22a42207353..5131258e2b9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs @@ -51,7 +51,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"hasHeaders", n => { HasHeaders = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteBoolValue("hasHeaders", HasHeaders); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs index b3c33a48ca9..08fc73d9cb6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs @@ -29,8 +29,8 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl) { } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Table. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. This API is available in the following national cloud deployments. + /// Use this API to create a new Table. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs index 00477c7d757..f77fc2fd2c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs index 0b366507178..c61219d170b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs index 8bd8e4f0761..1d97571fe0a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ClearFilters/ClearFiltersRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddPostRequestBody.cs index 0fcea509009..4b8924762c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddPostRequestBody.cs @@ -66,7 +66,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"index", n => { Index = n.GetIntValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs index 2a9e83d8a4a..97030090552 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 8ba61bd780b..f31c2b2d15a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs index ad1ac66b2f8..fe13d6981ab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs index bceeed174d9..efafa61132d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index c3c610e9056..0cd8e6f6d45 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs index add77aaa7d7..122258ece44 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs index 443da5bbd93..d7eb37262d7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs index b69cb86311f..43b4ee968e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyBottomItemsFilterPostRequestBody CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"count", n => { Count = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs index 985b2c0b3f7..cc4d9b28938 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyBottomItemsFilterPostReq UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyBottomItemsFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs index cc0262131f1..6f60d61be19 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyBottomPercentFilterPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"percent", n => { Percent = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("percent", Percent); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs index 1ca8eda8c08..431b457a931 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyBottomPercentFilterPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyBottomPercentFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs index 5dc608058af..d5c578285a4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyCellColorFilterPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs index c7c0c0f078e..900bc375a89 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyCellColorFilterPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyCellColorFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs index cdca2c6cba0..1d1ba5ee7bb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs @@ -74,7 +74,7 @@ public static ApplyCustomFilterPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria1", n => { Criteria1 = n.GetStringValue(); } }, {"criteria2", n => { Criteria2 = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("criteria1", Criteria1); writer.WriteStringValue("criteria2", Criteria2); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs index bc705a83bdf..6c3168833bd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyCustomFilterPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyCustomFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs index e3aa41d0462..3e303309d6f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyDynamicFilterPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs index fc02ae2c69c..4eb2307590d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyDynamicFilterPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyDynamicFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs index 7113969975f..21e854d930d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyFontColorFilterPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs index c8e1886604a..a5d4f388be4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyFontColorFilterPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyFontColorFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs index c1fecc0f444..dbfd3039a88 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs @@ -47,7 +47,7 @@ public static ApplyIconFilterPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"icon", n => { Icon = n.GetObjectValue(WorkbookIcon.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("icon", Icon); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs index 05d03619d88..430af369b6c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyIconFilterPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyIconFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs index 16f90974e75..568637e6985 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyTopItemsFilterPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"count", n => { Count = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs index 3ab941cc46b..7c2beb1c846 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyTopItemsFilterPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyTopItemsFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs index 168164df9d9..3a3555f4fce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs @@ -37,7 +37,7 @@ public static ApplyTopPercentFilterPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"percent", n => { Percent = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("percent", Percent); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs index 3a014df3d3f..82ed33cf937 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyTopPercentFilterPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyTopPercentFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs index 30ebc85abdd..24dd565050b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs @@ -47,7 +47,7 @@ public static ApplyValuesFilterPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs index 4fe71599dc2..0cb774d3b90 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyValuesFilterPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyValuesFilterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs index ff748413926..00fee50f88f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs index 2020028a764..84e4cc587b3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/FilterRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilterRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 80b7d4724a3..d8234dcf033 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs index ab5ca35648e..c89e91af3b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 4f63321a216..69675a5eb0b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs index a032e7eb5d7..ebabc0f083b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableColumn body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookTableColumnItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index d001a7ebcdf..b65c189ad71 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs index fd8cb7bbcc4..f44cc9e811a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ConvertToRange/ConvertToRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index 2a4e7ee8210..ce648eddb3f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 5423fc90dde..f2e18c43952 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs index 88d462d1306..1180e1754ad 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs index 796b9e2fadf..137e5acc17c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddPostRequestBody.cs index 3da24b73da0..8d895b54161 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddPostRequestBody.cs @@ -52,7 +52,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"index", n => { Index = n.GetIntValue(); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteObjectValue("values", Values); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs index e807b72ecca..bbb0009063a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs index 29ed149eaaa..60636a1f756 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs @@ -37,7 +37,7 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs index a23620d4247..f00bc22cbd4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs index 426804edfaa..03d5c30e7bc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs index 70bd9c0bf4f..c66c88705d1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableRow body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookTableRowItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 031834564bd..2ec039e6e00 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index e36f494efcb..35aa6bc1572 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RowsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs index 3428e5eb7b7..8f65d52d937 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs @@ -66,7 +66,7 @@ public static ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fields", n => { Fields = n.GetCollectionOfObjectValues(WorkbookSortField.CreateFromDiscriminatorValue)?.ToList(); } }, {"matchCase", n => { MatchCase = n.GetBoolValue(); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("fields", Fields); writer.WriteBoolValue("matchCase", MatchCase); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs index bea88cf77ee..82376212f5e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs index 4340d05c519..fe498d1e8ce 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs index ae3b0af1811..b3873ecec96 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Reapply/ReapplyRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs index c550dbd36d9..36224e758d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/SortRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SortRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 1099bb0d095..9379eafab60 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs index 798a22ee23b..eab4c1701a1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs @@ -164,6 +164,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -182,7 +183,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -210,14 +211,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookTable body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs index 60aadacb21e..1e107e8e588 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index 4aefd517a1e..a684122ecf4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs index a65aac6199f..00c628e10b1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -140,14 +140,14 @@ public RequestInformation ToPostRequestInformation(WorkbookTable body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs index d04f317da66..16b53f1629e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs index 9202aac794f..18b49aca232 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs index 38ec5dfa524..6ff4c1456a9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs @@ -168,6 +168,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -186,7 +187,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -214,14 +215,14 @@ public RequestInformation ToPatchRequestInformation(WorkbookWorksheet body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkbookWorksheetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index 9eecc6ccaef..a00aa9cacb1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -48,7 +48,7 @@ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Retrieve a list of worksheet objects. This API is available in the following national cloud deployments. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(WorkbookWorksheet body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorksheetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/ItemsRequestBuilder.cs index ebc1f590756..a42f0b7d6c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/ItemsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.DriveI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 516dadfb185..1c2e5cd6ea0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 826979f4973..c1d08575792 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 18e79d74b6e..af1c5cc0922 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 7a9cb0d89b5..8e189ca5f25 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs index cd4234731f6..ade5486e95d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs index 8525c791560..a9b1690c07b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 80d821d30da..6139a4259a9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 22f7577b756..193489e9c57 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index fd077daaaa2..b6321420459 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 33b21ae5c61..30888feffd7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index 679d32abbe3..26d98cfc791 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypeId", n => { ContentTypeId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentTypeId", ContentTypeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 841f0d0318e..40f689335ae 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs index ac5fba776c6..7ba3f1f20dc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs index 5eb62f3fa89..13a061f704e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index 1dab1a43794..11f9bbb7bfa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 7cfd3004df4..d4d9453dde8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 60268d67b29..8355a8219a1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -51,7 +51,7 @@ public static AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("hubSiteUrls", HubSiteUrls); writer.WriteBoolValue("propagateToExistingLists", PropagateToExistingLists); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 44728ccbbfa..2b385b2f9c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociateWithHubSitesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index ba84310efa6..4409e6f3405 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index 3fceefcc648..aa528d3e177 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index b894c81fdff..11fc8278dc6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index 771509099b3..8e4c68e1ece 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index cf1d76fdde3..3cb6781d92c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index bb36bf42f62..d617ce46b7e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 99da43b5a5b..2f9ad9c3212 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 2f532a7a225..c863084f448 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index 10c9cf675c9..72e1b565ceb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 9bda05493dd..09532440b6e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index c7cedcba1dc..44199bf4786 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 266071f2a4a..d076f4d6bd7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index d50eb19cd6b..f7e9ae00220 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index b53dbae4413..a6868cd7f4f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index 5f8590a1dd9..f59a9a19948 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -159,6 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -177,7 +178,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -205,14 +206,14 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index dfc118fe698..e4bad419e89 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, {"sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); writer.WriteObjectValue("sourceFile", SourceFile); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 30aea6de0fa..5b0f1da12cf 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 3659da4e948..915a3cf27bb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -37,7 +37,7 @@ public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 4360fa933d7..aeebb727e24 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs index d9311ba6eee..f07507e2797 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 07280a1c9f1..093b9fc7ac0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs index bd717297ea6..49914e8c36e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 1725645a511..5b4ee12e11e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index e8941f30d88..1a0d6c39833 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 220c549387e..ad9f810a542 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Drive/DriveRequestBuilder.cs index 155eb19dcc4..6930a2c4dec 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs index 10ce61cd4b3..c89c009d78f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs index 00b30ce5f09..36dc14d3386 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index afee93c802b..07091bbb08d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index bc8597b9d00..f29c20570fb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index a14fb08cae3..52e7d1d17d2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 017aa5ac82a..6df72dae162 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs index 905a23cfa80..c0daa94d16e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index 474fd45c58e..024d3a03091 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 120412f98f1..1b61f8b9bba 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs index 1771bd3637e..0087bfd8d36 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index 889eb4409e0..a46e0dec795 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs index 2eb5e5e4475..015111e9000 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs index 884410dca7b..b1d7b033f03 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs index 6f6f3917eae..eaa01b6537c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 06c4f32b6af..c1fd4a8f9e2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index e47f771708f..22f77077fc9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 1320ffd9b53..db04ca354ef 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 615427ee36c..f8e46d24ff9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index eea00478a71..05986c944c6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 7fc9515cc62..855998acbb7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 713fdf5dcdb..b39f7453f25 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 1bc8fbbc14d..5ba8b2bd93e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs index e6e776a5118..940fe62f1a9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -164,6 +164,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -182,7 +183,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -210,14 +211,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.ListI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs index c42a95a4219..38f813a96da 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs index ca74aacddd3..8b81cf046d6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index 66faed36baa..cb091b72c56 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index bb56284ac17..1db880d77eb 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs index 5f66fbb27ec..cba1e20cc63 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ListItemVersion body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs index 288723f0ff2..a856b8570a3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/ItemsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.ListIt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 723a9c29b1b..89ef7bdd37e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 5aa49f27232..20034d34155 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index dfd7759cfa9..43cc4e9ab8e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 01eb86c1c20..075df44faed 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/ListRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/ListRequestBuilder.cs index cda52039370..5d78ae97d14 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/ListRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/ListRequestBuilder.cs @@ -149,6 +149,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -167,7 +168,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -195,14 +196,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.List UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs index ca09ad4085e..68100c414c1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index 53b486e884f..e3e53744ed4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RichLongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs index 6c359275d6a..68bee053304 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs index 8b2ee8c98b1..1b29b84a06f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index b481cf2a100..82e5b142dd5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index 6e6c446daff..1ee1a101d1b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs index 38e0a930ac6..dd16467b538 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs index 5314320cb96..8ac7deb8f10 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs index 51a67412fe0..aa38d14f582 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Recent/RecentRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/Content/ContentRequestBuilder.cs index a7d4db504a0..a1ace2fee17 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs index 8d2a08eec25..6e2af5bfdac 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Root/RootRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs index e4e83c4162f..701a62af73f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs index 770c318d627..ba326302831 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs index aad7b8fe7af..90c8294a11d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs index b6c8569502b..8a3866421bc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Special/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Special/Count/CountRequestBuilder.cs index 65c0bd33691..86e73e25226 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Special/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Special/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs index 343e3d45ee5..023023fbc90 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs index 603fbbcaa58..c3351a18d44 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs index db65f782f41..5802139c4ab 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Special/SpecialRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs index 5405ae9a95b..4a889473055 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/ClassesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(EducationClass body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Count/CountRequestBuilder.cs index 217c04fedce..abd56c8b65d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs index c1e54c7eafa..039653c4b90 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs index 3b6e188a6ec..5b2bdaa1b8d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs index 92cc93cfe81..505503ea1e5 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentCategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs index 2c77a162eb4..e9dda41356e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs index 0a61c1449e8..b12aa40f73d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs index 8d8a76fca54..7600fcd905c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs index 5fd753bbaed..940200f01f4 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationCategory body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationCategoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs index 7cc45e6a359..bf308c8533c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentDefaults UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentDefaultsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs index bda2e68a510..5fc40fa6b37 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentSettings UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs index 4b9b50729cf..33fa166a712 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(EducationAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs index f58ae3e0624..ca858ab6e62 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs index 53562357c1d..3ad2ff6aa66 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs index 3a43fc5cd27..3fab78b8f04 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs index c70b25e19e9..72544982126 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs index e4cc3a65f72..b3f80f1d5d5 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs index 48f753879e7..b6354a03a90 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 08ae8fc1578..1147fbbd07a 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 00d4f7e4fc3..b85ae6daf83 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 50b1dffe249..2f7b4c543a9 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index b43c0f2ab5c..07ec1ecefd1 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -147,6 +147,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -165,7 +166,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -193,14 +194,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs index ff204667d3d..a8004ada15e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs index b2c5621b677..fbe7035df8a 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index b43cb0f1873..03a0810c4f5 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationAssignmentResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs index 069c3d20ddd..4eb154fbee7 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationAssignmentResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index 530c3bcbb01..46b0025d4ba 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,13 +131,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,13 +158,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs index 4c71880bde6..893ce32acf5 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RubricRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index 6ff5ac12897..5001d156090 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 0b4483084a2..aac8a48c828 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs index 8d8d13c12a3..48bb781f3dc 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index 8584dce4e7e..05c51e132bb 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -150,6 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -168,7 +169,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -196,14 +197,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmission body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs index de0ee8f98a8..d8368d80335 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index e9a5610a131..4c19452c31f 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationOutcome body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationOutcomeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index cc0e41acd2b..c271630d992 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationOutcome body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OutcomesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 4d7148b0889..d9558559cdc 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs index 84f4d73084a..4647f8ef50e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 1bf65cbba66..38999582361 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index dd9f382df95..e461c6b474c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 306cbbee1a3..b98fc72a428 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 6007b82eca5..375ce1a3faa 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs index e755b9f7e60..59a3b5dfa19 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs index 92033333941..6e2677ed317 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index bff3ea651cd..add605755c1 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index 9e769fbd72b..bef1470fd50 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubmittedResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index fbf1a525076..7f7768ae09b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index d3de4abc1db..0830d2e6d26 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubmissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs index 9e5ca94523b..ae25ffacd9b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs @@ -152,6 +152,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -170,7 +171,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -198,14 +199,14 @@ public RequestInformation ToPatchRequestInformation(EducationClass body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationClassItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs index 7f9c31c8137..4ad22605490 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 6ad35ea0575..93d93dbfd42 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 7d0059fe511..ca8b10b7c2c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs index 80b2a88f7bd..3bc8a9062a4 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs index 4e9ca0e7bf5..b05c2c5a158 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs index a884b83550e..6d40151a918 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/MembersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs index 14317b94644..fc2900ffd02 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs index c49c5ca1664..e24c3e2b5dc 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs index 6608e7f92c2..efd201b626b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs index 6492b1cf9c9..6ea825225f3 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs index 093440dfaa2..7f80b22a21d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs index 1729b44c254..674a2b3efd7 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs index aacb4303fc7..7d65345cf35 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs index 5799d52554a..579488f4d01 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/EducationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/EducationRequestBuilder.cs index 5949e688291..d9548376d21 100644 --- a/src/Microsoft.Graph/Generated/Education/EducationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/EducationRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPatchRequestInformation(EducationRoot body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs index 5288a0210e4..ce12e111c49 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(EducationAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Count/CountRequestBuilder.cs index d20cd21289c..70b079070fb 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs index a87850261ba..57783f86c66 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs index 6a5d7a75e18..839d78157ce 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs index 898f15749e4..3d4e5c8f9ae 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/CategoriesRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs index 92895ddd868..09bedbd6373 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs index debc1fbe165..7e2bb8d4532 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index d6a6ef186c6..5bcfbe72642 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 9001c95de81..9da823e7401 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index c76f4c65cea..271de81778a 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index 200b8dbb878..7c48487db98 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -144,6 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -162,7 +163,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -190,14 +191,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs index aea51a0c8fc..edf74946422 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.cs index c1464446f2e..994ebb5b57d 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index 32e2c811ab2..f4f7a86a4cd 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationAssignmentResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs index cb7ce7cffdf..533166ade25 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationAssignmentResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index 650663cd164..0530b7d3751 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,13 +131,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,13 +158,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs index 280b32c5be3..cc08222d3b3 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Rubric/RubricRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RubricRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index 0c8de342457..5076849e81e 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 3f2bee085f1..9ef5353f7be 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.cs index 806119e6183..c9d6070c0b1 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index eb410a7a228..b6b0934bc4d 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -150,6 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -168,7 +169,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -196,14 +197,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmission body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs index 71b54be02b6..08ca618b06d 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index 2413bc11f6a..a5773072e24 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationOutcome body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationOutcomeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index c7d3789428e..8c4fe4a6509 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationOutcome body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OutcomesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index d24481de829..933ee6903ed 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs index ae152542c35..aac15e913c6 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 080d04c8540..a189801bfcf 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index a91879ba651..9b0a1ec6058 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 554e133a15d..993fa3255e1 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 17699ba1edb..04aecf92e98 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs index 1780e31f5c3..551a18df552 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs index d275f6496c5..27a9e45c152 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index a29425c2295..36b154fabd7 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index 4e9ef2e3c4e..09ea7a7e41a 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubmittedResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index 4e1a9966cb6..35b79b29d13 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index f158a20fff0..1b7adfbf847 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubmissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs index 3e9257b553d..7c99f7400e7 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Classes/ClassesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Classes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Classes/Count/CountRequestBuilder.cs index 5b314f16545..0084b974718 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Classes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Classes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs index a36afed2bfe..18d2727fd6b 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/MeRequestBuilder.cs index c6fbb920f90..9c9f57a83ee 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/MeRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(EducationUser body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs index db217d33614..a0959305c0c 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs index 4d7124ce6e3..cd56cf83ee6 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationRubricItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs index d182d10a21f..c9cc8e330ba 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Rubrics/RubricsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationRubric body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RubricsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/Schools/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Schools/Count/CountRequestBuilder.cs index cda0bb1756a..b49cb323bcc 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Schools/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Schools/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs index 1bef186c26b..196061198c1 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs index 58204cd7f0a..d74ec0c56f6 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Schools/SchoolsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs index cbee237254c..aa9aaa06182 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs index 4b1920eaa77..588cda3a3b7 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs index 6172ccb182f..57b5388890f 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs index 8e08bebf165..7b2ba79be05 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index d2e661be250..981b656cb58 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index a9a6b463ef3..84ef28dcb0e 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs index 9980c96fbfa..7599eacfbd8 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs @@ -74,7 +74,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Count/CountRequestBuilder.cs index d398ee24d8c..385d0d874c1 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs index c2672d7f993..a35cb17f0d5 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs index b84df705138..11e73651883 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs index 2379241f079..4ba8fe21ffe 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs @@ -85,7 +85,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -113,14 +113,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AdministrativeUnitRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs index 9e2123a8b66..4817465452e 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs index d07e9253de0..e5b817f3c30 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs index 4d4b06dff0e..927f5d7b375 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs index 6cd91306a69..f6fae92c114 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs index 03e9f4c5ec1..a8c9bb10c5e 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(EducationSchool body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSchoolItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs index ed4b4391450..c2f223f1429 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs index 137faa63185..2caf0c87c76 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs index 1f6bee7b264..53da0773272 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs index 986c2247416..3f1421d9b2d 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/UsersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs index 43117cbe74d..130aaac6afd 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/SchoolsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(EducationSchool body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchoolsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Count/CountRequestBuilder.cs index 082d6a932da..d50b9b9069f 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs index 6b13aa2f147..c80b748b8f4 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs index 4c64134dcab..421585bed68 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs index fff874aa1d8..2fd651e6379 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(EducationAssignment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs index 7edcbf1f048..b1daf5dfdce 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs index b8ab72768ab..2e2e0b8291a 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs index 39a6b3a27fa..043500f3bde 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs index 3ab4c5083e9..f68bbfc6559 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/CategoriesRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs index ab558925dec..f87b0b91c74 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs index 0f1139094cb..127bf89754c 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 3132a55f87d..7f5fb07f243 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index b2d54c307e8..0b28d00a1ad 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 64bdafc819b..ad5311bcf26 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index d3db2a65539..9b676bcc8a4 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -144,6 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -162,7 +163,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -190,14 +191,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignment body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs index a1d41ee4dfd..53c1025cef1 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs index 3da8f30a69b..cfe79fa9cd9 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index f0846851358..73b2634c615 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationAssignmentResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs index bf59cc4978c..573fdd5015c 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationAssignmentResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index dfb99ba2467..c822d057b4f 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,13 +131,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,13 +158,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs index c1bdd809ba3..612c0362d57 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Rubric/RubricRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RubricRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index eb6f66ec99e..556ead75bd2 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 8343127b763..0acdd588b8a 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs index cd75e42a00a..c420501d273 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index e3dc7096716..a8408b7a657 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -150,6 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -168,7 +169,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -196,14 +197,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmission body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs index 063346eeee6..c6a8bad1e82 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index 6975784580f..22939de9c14 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationOutcome body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationOutcomeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 488d8d36797..a68f23e1e03 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationOutcome body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OutcomesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 9df4abedffb..6da0f1dbd9a 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs index edac2de9ad9..9e6164687f4 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 253edbcd827..c6d7d15b7b0 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index c437cf5374e..98ebdf41082 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 81fc6b80fb7..7d7e524231b 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index 8f74cc9be11..02d7d15b76a 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs index 14ef18eba71..07aba183dab 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Submit/SubmitRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs index 4557ab9e430..45456992cd1 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 71ce6881850..fff6b8714ce 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSubmissionResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index 92cf35aa109..b0cc68dafb3 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubmittedResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index f89962e2195..615d3c2cdde 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index 4819f6b09c5..52e2fc04a2b 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(EducationSubmission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubmissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs index 7b9bbb8b03d..836b3c73865 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs index d2260727950..c3c8a202fe0 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs index 541ed4d39b6..3919a28a988 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs index d9c471aeb76..bbca7240c89 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs @@ -142,6 +142,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -160,7 +161,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -188,14 +189,14 @@ public RequestInformation ToPatchRequestInformation(EducationUser body, Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs index 91e2ab90b9c..8408d7c1091 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs index dfe6e2c37d5..7735be41fb8 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationRubricItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs index 4583927f086..072acb4a73f 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EducationRubric body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RubricsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs index 8e226fc5f38..a29348c1ec3 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs index 79310e7d0c2..c4c31ca200e 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs index 65386c6a6d9..6a648dc664c 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs index 114a8fc3f16..a59b52077e4 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs index cdfb867d323..289ffa245ca 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs index 774c7a9a66e..6f37c01dfa9 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs index 10bbf045bcf..ce9c9489792 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b6be666b7b2..db215fda09c 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 23cc17f1c4b..a33af4fe9a4 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs index b49572466bd..eeb5b08a0a5 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs @@ -74,7 +74,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs index 1b078e74463..3fe2eb99926 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/UsersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(EducationUser body, Action diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs index b49333107fd..ccbdcf5f43a 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Emplo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmployeeExperienceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs index d7898a16677..086f7130ad4 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index bd3537718a3..68e9cd14087 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningCourseActivityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 1547b1c230e..b2ca46493b0 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(LearningCourseActivity body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningCourseActivitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs index caf271bb645..c89ea70ade4 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs index 226c659f395..1049844812b 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs index 95f82062877..7107bd14b8b 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(LearningContent body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs index 4898e37d1b4..a3d88d608c6 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(LearningContent body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs index ebd63719672..192454c1912 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index 57b4a95bc93..1f2a55717a1 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningCourseActivityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 2224d85e152..5f9cb54688f 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(LearningCourseActivity body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningCourseActivitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs index 9e782a7a44b..a160da081a8 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(LearningProvider body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningProviderItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs index 2956252f1af..77f230c7f81 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(LearningProvider body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LearningProvidersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs index eea313b3de5..bc2404cf0ac 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/ConnectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ExternalConnection body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConnectionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Count/CountRequestBuilder.cs index 94d3c5e07d5..5256a570a4d 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs index bba5f40a330..01fcceac889 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(ExternalConnection body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExternalConnectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs index 1ea127e69ee..6c7d85e3d6c 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs index 028b394f3a3..9397d9a88fc 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ExternalGroup body, Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs index 25583f55dbf..44c525c7b53 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ExternalGroup body, Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs index 3c348598905..f803ad08f09 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs index 4872d1a333c..9e4b3f36a87 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,10 +110,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Exter UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -190,7 +191,7 @@ public IdentityItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// public class IdentityItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs index f61d3578261..d327a47fde8 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -42,7 +42,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Extern UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public MembersRequestBuilder WithUrl(string rawUrl) { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// public class MembersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs index 9b743e81e4c..5899aa640bc 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs index 9e39c199bda..f321189bd92 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ExternalActivity body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ActivitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs index 640d2e40326..84c3c4dc634 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs index f16409dac89..c6757ff0957 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ExternalActivity body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExternalActivityItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs index 65aa56ac77b..794be4d7f52 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs index 68c4de47be4..78dc0622344 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPutRequestInformation(ExternalItem body, Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs index d78f3ee5999..af3312d272f 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddActivitiesPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activities", n => { Activities = n.GetCollectionOfObjectValues(ExternalActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("activities", Activities); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs index 915f663ec03..2713928b662 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs @@ -33,7 +33,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -42,7 +42,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs index 7aec2bb771c..f3a52b4cfba 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(AddActivitiesPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs index 0d884a71167..ee91410d5f3 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Items/ItemsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ExternalItem body, Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs index 7722855ecbe..6658eede5a3 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs index df54fbb92fd..56103336626 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConnectionOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs index eafd4a6fdef..651a9ea0f5f 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ConnectionOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs index 912bfe94d22..b363cfa260c 100644 --- a/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs @@ -49,7 +49,7 @@ public SchemaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.ExternalConnectors.Schema.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new schema object. + /// Create a new schema object. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schema object. + /// Create a new schema object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,14 +114,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Exter UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs index 149fdb527da..25b1691ed62 100644 --- a/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Exter UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExternalRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/FilterOperators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/FilterOperators/Count/CountRequestBuilder.cs index 2e271079d4b..286d9e6d052 100644 --- a/src/Microsoft.Graph/Generated/FilterOperators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/FilterOperators/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/FilterOperators/FilterOperatorsRequestBuilder.cs index 4901b6f99c5..2f26c6ed080 100644 --- a/src/Microsoft.Graph/Generated/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(FilterOperatorSchema body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilterOperatorsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs index 258d5e9688d..2508c8bb26c 100644 --- a/src/Microsoft.Graph/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FilterOperatorSchema body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilterOperatorSchemaItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Functions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Functions/Count/CountRequestBuilder.cs index 2ceb34f973d..37df0df85df 100644 --- a/src/Microsoft.Graph/Generated/Functions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Functions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Functions/FunctionsRequestBuilder.cs index 20d90f53104..45ed3662cea 100644 --- a/src/Microsoft.Graph/Generated/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Functions/FunctionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AttributeMappingFunctionSchem UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FunctionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs index 2619593734e..fc5956c4a95 100644 --- a/src/Microsoft.Graph/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AttributeMappingFunctionSche UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttributeMappingFunctionSchemaItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs index 8bcc12d7c5f..253e703cd5f 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs index a60b6033dd8..afba03fa01c 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(GroupLifecyclePolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupLifecyclePoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs index 43e0bc2f76c..6581d6a2f43 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs index 98833aaec55..070917cdf8f 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs @@ -37,7 +37,7 @@ public static AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs index d154fae47b7..cba50853628 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddGroupPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs index b5a60208c7f..2711e61cf3a 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(GroupLifecyclePolicy body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupLifecyclePolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs index 3af25c9247a..529b653ae80 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs @@ -46,7 +46,7 @@ public static RemoveGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs index a2b8e2fb4ff..625278eed1f 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs @@ -37,7 +37,7 @@ public static RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs index 8a9690f02cd..4a70f1b2670 100644 --- a/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(RemoveGroupPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoveGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Count/CountRequestBuilder.cs index 171e4b09cb7..fa530e1e678 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs index 72750f30f85..6f7d224e499 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs index 2edfb3f0e34..649ccccadc1 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 53d7876f70a..0aa82593900 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 5231eb34f95..f7508d39b83 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 0efa92eed7d..ecf16085f91 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs index 505749b2608..ee18d75af3e 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs index cc31fb0707e..5e1b01c5faa 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs index 1428fd452df..f460e2879ac 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs index 24cbeaf5c52..47afff48a51 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -146,14 +146,14 @@ public RequestInformation ToPostRequestInformation(GroupSettingTemplate body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupSettingTemplatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 316db39ea75..2a72f804200 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 34a0a83a94d..6b8694f603d 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 9ff4076cd15..d59e177bb49 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 36ca14634e6..dc850eefcf8 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index c932025a6b0..174b3d882b1 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 145370f9664..e2928539f8b 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 8f283da1801..06a727da309 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 78cefca2845..f037ce50a08 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index d6ff4426b60..b1c7c670923 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index ad2e5b37f3e..bfe41d054d4 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 2b3681d6c71..2ef9e4a007a 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index e37c89ff3cd..e399da29f1c 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs index 3f88e8c0830..e927abcd785 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(GroupSettingTemplate body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupSettingTemplateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs index 8a8265c036b..1199534e5fb 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 1f99fcc1d6c..c0b15144d4c 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 3814c3d78d3..17459a3e34f 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/GroupSettings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettings/Count/CountRequestBuilder.cs index 137b49063f3..e823bf78613 100644 --- a/src/Microsoft.Graph/Generated/GroupSettings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs index 4d65d89c988..81927ba2977 100644 --- a/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettings/GroupSettingsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(GroupSetting body, Action diff --git a/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs index 56ff0bc2736..bf2288a5565 100644 --- a/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(GroupSetting body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Count/CountRequestBuilder.cs index dd41e8500fd..8aae98ea7ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs index c01d002d84d..4ebe9cd4f13 100644 --- a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs index 1ddab9d6649..c24058a2502 100644 --- a/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 1811241c83f..6e2354ecb9e 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 1ed0c37bfaf..b83a7763e21 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index efd0e35984d..699dd1d15a7 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostRequestBody.cs index 8c6590e351b..1bf547d3408 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs index d839eba6628..a446dd1ad3e 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs index 688e21f7e21..d5cc58a1a9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs index 22724751561..cacf1edf29c 100644 --- a/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Group UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs index 1d10c1bba39..92227bd1575 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs index dd3212b9d08..b3c6489d6a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs index 68271e08884..b21e7644563 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs index 04b30ffeef0..4714be0f380 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs index 4fff834e753..675b46d03f0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index 08e5791f451..4edb6223446 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs index f3ca10e073d..735b719ef8e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index bc0f3afa356..0f06bc1dd87 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs index 172f4c628d4..e73ab84425c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs @@ -61,7 +61,7 @@ public static AssignLicensePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addLicenses", n => { AddLicenses = n.GetCollectionOfObjectValues(AssignedLicense.CreateFromDiscriminatorValue)?.ToList(); } }, {"removeLicenses", n => { RemoveLicenses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("addLicenses", AddLicenses); writer.WriteCollectionOfPrimitiveValues("removeLicenses", RemoveLicenses); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs index 3674eb2d703..c5635368f0e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs @@ -29,7 +29,7 @@ public AssignLicenseRequestBuilder(Dictionary pathParameters, IR public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/assignLicense", rawUrl) { } /// - /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is available in the following national cloud deployments. + /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public AssignLicenseRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is available in the following national cloud deployments. + /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AssignLicensePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignLicenseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index 44b87129e5d..bf824411c84 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index e2564c89bdf..dfd8f6cc05e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index b62ad48c591..fa9f31ec7e8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs index 3572e8721d5..4539593a849 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index acb6a8b1b42..2b7df6da022 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs index 6bdbbf14f7a..68d28f3533b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs index 978694fe983..805fcf865fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs index 09f3d138744..054a41e7ece 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs index 884ff8cdb4b..855c56324fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index 7f870f048a3..11ca247f6a7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs index fddae5392b0..4c9669deaa8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 39e65ba4d72..b289e26719e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index e9c36ad6d90..f593680a25a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index e74e6d2f643..c987aa17662 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 55f9750a518..e428f158665 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a181f90e6c4..551df55f383 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index a7dccbcada0..0f8d3297756 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index f7ccef102a2..a1625e9d5aa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 5ab20d61450..93e389d736a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 25157772875..f3e5966c5e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs index dddcc1f7b0a..1a5efcb9813 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 41a72b716f4..4c2d5cf2a35 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 62ed8674fea..2a927e21c53 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs index 6ccb6e43f7e..31272f29794 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index eeeee0dae1f..3572502e293 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 235c41040fc..9a830db8864 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e5e4c4fa46b..33f38a4e3ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs index fb946166018..e74b76fc088 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 489717df598..82f4fcb6b4b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 84cbf150005..b78cc835b8a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 17cb4bc0e6b..9d0600377a6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index e8626fe32a1..2591dbf6bfc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 8ba86a01f9e..b97184405e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 265a2cb1ec5..21553c54407 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index cff0d6812d5..ffdb7727660 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 908764460bd..686f5604e31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 64851bc5208..15732486291 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 52858f28b2f..4acdb88860b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 23a45eed30e..f07b1b022e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index a4c3728998a..282beeb7fa7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 162d0a62421..b32e4631911 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 07578d2d8e4..daa309e5a58 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 2815d272e91..d2ef849c70a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index a98185f7d85..e88425cca69 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index b1a6e77f811..39b88cf7fe3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index e9f64170395..07f0e1f13fa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 710caf63fa0..611f014787d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 9c9b8b3eb74..5b642fb3a7f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index c735573c0f7..55b0ca4a4dc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index a66423076d6..56bdf3b7dfe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 86937c39277..cefdb33240b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index a63d5572e46..eaa0cf1e144 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 274f47df9be..0d3103ea9de 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index e31f5dd5154..c603e644570 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index ef2a6a7b156..cc7c2777947 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 9a25133929c..216268d1ea2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index b15de3e456b..f395695c036 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 99ec085267a..1c372db217f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index c6203b4d73b..604e315c5ad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 27b902d5cea..f300fde5366 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs index 7f87de6e12c..1d2f6e2fdff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs index 89e80ef9184..5dbb2523bd8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs index ab3a8d6a95d..b76c4a9fb99 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs index 9814a8a70e7..ccdaa1071de 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs index 38359f8f517..611ceaf4697 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index 543272dcd69..b74fa3ed63c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 10213a7607f..3def5c418d8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs index c12155cf6db..62b8c01ab87 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index c406e59bca3..ece44254515 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 7ccdfda1480..68fb2fa680a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index a6a9a661a55..1453f76dd91 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs index a4b2929dc2d..b09a372c49e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs index 40aab711b53..bc272954bc9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index 49ba5ed6846..59dc5a889f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs index d6f897c16a1..19b7df9ee61 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index 2868f880776..ffacf65590c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index cecb3c4a414..45e1c7cce44 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs index 8a9bf879366..728b3d87da8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs index 13878236df4..c606df1c3ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 53f31ca1e25..a0d9ad07980 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 5c663f0280d..37ad88528b9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs index 91b004a66d6..e000e098ca4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index c27408e0052..c65af1e8cc8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs index 48b3aabadc9..78ebff1f6a2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs index e76d5826e8b..6fcf0adf211 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index ef308e46d0e..20414b77849 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs index f0df30e5f4a..7cbd0d86fe6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 004d9b5d9a8..b5840652381 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 20dc48f9cf6..c21099504c9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 531f9a8b934..0b69cc363cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 981c8130bdf..e3191e5b539 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 37ad5c3c198..52906f8f044 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 5a4284d40fc..aa5a64b4cd3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 9b71e82bcc0..28e8c5aa25a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index a99e4b18ec8..5dad7a36ab7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 3309e9cfa3c..38d88d65e86 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 02393403eaf..a271bcf8291 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 6e21438af91..fe0dbe40efb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 121aebb1640..2fc589e2777 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index cf4b2a5df53..5b620413897 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs index deb33f34476..a266c08d37d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 7c41773ab72..e247ced491e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 5064cd71722..2f33db75389 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index f3779238203..8d48422155b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 8d3d6028612..68dde056d67 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 20369b797b2..6bdace5a756 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 5195aca8151..cb847c2b3e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 83dc51a45ea..62c0ad21e9d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 683241845c7..bd2c1b72e84 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 3687f69ec1a..76b09b2ac49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 0ab5fc8b576..4be7df0aaa9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 01510ac68f8..fe9a6bea5bc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index b2c0cebe8b2..ca673a23be6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index d0d01a696c0..3a4ea9e6d0a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs index 6aa9b13ad29..7f3fada669c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs index d7d83bf459e..d7b236387e5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index a7058cfb327..4e73dfd1e00 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs index 314163a250e..2a5647921ad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs index afe89c1aa81..c62275dd058 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs index f0c77732b63..ca9bb125bbc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 21c34772408..a78a33d5ec7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index cf7916fc26b..42bb8f21870 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 0863908e82f..ee2d80b7f89 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index af80d69e572..0527aaf187b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 077d3b522ad..8f2b210b5d7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 2fb2f0e45e9..cd730692700 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 07b8d9b29d6..927ea8b5e04 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 21ebcb7005b..3dfc701ce32 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 059cefe2ca9..f7f642fd39d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 13a76802547..ebd7a686e7b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index ecde596734e..623289627b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 6e3a2015e3b..5a27c072594 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index fe1cd8b2a2a..23186f62a66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index b9902123e4b..28418e34403 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.cs index 012efa0de85..d15a747a0ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index 6e13b64c2e8..ba18e3087a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index e40fddce439..dade93fd774 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index c1462afa283..f0dd9d7328b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 12a5e80691c..f3a009c1d60 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index e90deb3906c..1a294e77251 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 0f5a1e5f0a7..77fb4305ec6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index f012d38c5e2..a83e035e5a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 7b8557d7b6f..7b204647c37 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 4c8f92a91f0..50f661dec2c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index c1de8a1ba86..c53bc876169 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index e25c265bcae..f2fa0d25c4a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 8992d707205..2848dc57ca4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index edec53d4004..49f2c249248 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index b011d6b0c02..34d73ebd2fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 061906c1805..e6b7ef578dd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 2feaff4d78f..f550a73129c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index cde25ee7304..77ca891368a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 7a6d5c2fa39..11f3a3dbd93 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 31cec645b16..3efb60167b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 30f23ad2bf4..76290253b84 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 6b29c71d823..ed89f63e794 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index aa8e006ee1f..4718563af31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 797d6502ef6..ce5f4388122 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 7e6666ec56d..7c1948e8e62 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 1d6db22ae16..5be3fb67a21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 5c274951ea0..0156942ea88 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 350a20b2cc3..728330a6eda 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 3a09701e69c..58d19c9cc3b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index c96d4ad01b5..641a764ed5a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 46468c213e4..b0c4e5d4c56 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index c6072783ea9..68bbf5e7441 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index ad886ea8bc6..99a0118fe74 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index a716e0d74a9..3dcc5b4c812 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 0e2f7eebe99..a3cff472e58 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index b8cca5efc72..492e0d721e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 8092dbf84d7..8b7f4ddddbc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs index dc906cdd21c..68b1a0b3d32 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs index 4be29b1d4e5..304bab4ec53 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 783ee6da841..9e5197c52b8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 8a087522556..80642a267eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index f44237427f7..7af728fa97c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 155b3af703a..b703fc3fbdf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index a6c19bdf18e..7b16858b706 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index ef6867b2800..48318001f3e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index 6480b3c3c53..02893171070 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Conversation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs index a32f5ce8209..0ba119c43bb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 6ee9b627ab4..e153294816a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -34,8 +34,8 @@ public ConversationItemRequestBuilder(Dictionary pathParameters, public ConversationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}", rawUrl) { } /// - /// Delete conversation. This API is available in the following national cloud deployments. - /// Find more info here + /// This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, Conversation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete conversation. This API is available in the following national cloud deployments. + /// This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs index d817e5528a1..8e475b26907 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index 5b76a80c1fa..c5b8304d31d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(ConversationThread body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationThreadItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs index a9b2bf39335..8c13895ae87 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs index 300529e0216..0886b9fe322 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs index 8b6a3221917..919c8c7a457 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0d46a97cc13..7b0c30a91ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 5c9665ac861..aeae098d368 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index ed517d825da..65ec78ed96b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -88,6 +88,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -106,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs index ed577c03749..204d902c19b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs index 3f4aff888b9..e3f2a2e4ad3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index a32847fe9f7..67229b019f6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs index f4fbe76fade..1152d3d7fcb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs index 1ef2b7afb83..c7f7b8d2cad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs index ed265538b31..24c7399383d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs index 91035d1cd2e..8c7c5b7f537 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 353f81a0abb..89c7aeeff32 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 48f14f735af..d19918a5e64 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs index d91774076aa..3acffe9c1c3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -88,6 +88,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -106,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs index 01bd6e2a32a..1c5d6c90c3a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs index fe2447c8ee2..3828993135e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs index e385e7fc436..d4ec2d9a922 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs index 6d0612f33a8..2ddc9d75820 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs index 4b647eb4b11..80c60308a59 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs index ebb10397070..1666645432f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs @@ -83,7 +83,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs index 462cde7a394..08bfa92e166 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Post", n => { Post = n.GetObjectValue(Microsoft.Graph.Models.Post.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index d5b73c2bc05..597c505839e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs index 3368da276f2..86812de1a94 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs index 18c0cbc2aae..154dcde845a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Post", n => { Post = n.GetObjectValue(Microsoft.Graph.Models.Post.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 6a40dcc55a9..d50a777e291 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 77b7c70cc3d..d94bd1dfeed 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs index 64c9ada6d12..418e11dbefc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Post", n => { Post = n.GetObjectValue(Microsoft.Graph.Models.Post.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index cc38fa9180e..7ba666d1677 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs index 77b816b87c0..6a8a048f4e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ConversationThread body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ThreadsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs index 6e2babefeb5..3c785b92a6e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs index 90dd31c65d3..6be8efb018b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Count/CountRequestBuilder.cs index e151becd0c1..afc5ac86ce7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs index 8e00f3d818e..df8dd0b1a6d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs index 3aed0977ce2..39b34cf62ec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Count/CountRequestBuilder.cs index f9211128423..173b4e4978e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs index 0f6f86aaf9c..d7083e928b5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs index a9f3c8f325d..d8564001799 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs index 297e5ceb375..4c0d0e7794f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs index c75410acab7..6cffb4f1164 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 4197ddae8ae..e7e457adccb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 7923f05cbd9..7da0926271b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index 980f132e574..87a47bd8e0b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index da62f4939f9..d91a2f2b551 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 894c3302e30..dbc42ab1016 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 0d0bd309f0b..e488835d75d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index 0ed375e7596..653326eccfd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs index 3b7ff0859e6..00ea3cae752 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 7172a6feec5..d76907692d0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs index 04750c11175..6cec2eecd3d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 653b8ba0156..9d7da2d72bb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 7415f695127..400af25e796 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs index 7c5e8ff0068..0e166a88ddb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/EventItemRequestBuilder.cs @@ -166,6 +166,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -184,7 +185,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -212,14 +213,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 40218f2dac8..3f76f63d936 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index f483ba085c3..46b053e9c19 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 966d5f30844..891cdf27b92 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs index a9317b6f6ba..fa262abfc64 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs index d8fc5cd3b7f..246d98b6f7e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index 6786bbc83df..86a26b07558 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index 2417a58ea89..2d912f95a00 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 84fecbfccf7..a0f9cae77d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs index 226b7c9f76f..7c8d2950ccb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 99393ac59cb..f7f0efde525 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 113ff64c163..f198663f43c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 39fa21b0992..7a00b7a453d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 4f357e1e109..25d30e12e31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index c5d3b311817..242dfc2da7f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 9fd903f6366..3335759e72b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index b3ecdffbe43..ee69c873760 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index a2628d793de..8fff6e78716 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 1ba10cf11e1..3ba0f8e56d0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index ec5fb3b9870..025779d7054 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 538f0d482bd..051e5f34c38 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 3ecef1a250a..865bb209102 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 4e4cab09164..cd38c0e739c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs index b056653d8cf..0697ffc9982 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 4c085134ed6..de06a5a6bc5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 4207cc3f8a2..7d23048aa4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index b98cef9a898..4e5d78bb897 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index d7344df657e..8925f6503e5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 2ef0df284fd..8aea60d1eea 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index a863bd1d2b4..b7890be6870 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 8e3d2b8a1fe..7ef7099c2f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 53beb5df372..fd5b8ffdc1f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 10ff3cb5e86..91e8b732491 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 1f70911e747..01270781c03 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 48ab85a61d2..9211490a8e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index ad289e84c58..1b6824d7511 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 57aee8c2e2b..8c66f9d3908 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs index 3f092da3be2..4c571dab5b7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs index 413fd911a2c..a3950786167 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 3d81f399652..c28f2d584d9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 5c6dce8f1f7..86e55631558 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 0c43db32e17..2588b027cd8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 2f305edfa01..5772eec26e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index e681c710926..acc345b8697 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 8a64556e3ed..0d77e10354c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index bf348113c60..2bae11826f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs index f080907c6d3..92d923be099 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs @@ -284,8 +284,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a group object. This API is available in the following national cloud deployments. - /// Find more info here + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -327,6 +327,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -345,7 +346,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a group object. This API is available in the following national cloud deployments. + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -373,14 +374,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Group UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs index 626dda49e2f..20e7e1412cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs index 7847dc70741..4fb2c3f8214 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(GroupLifecyclePolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupLifecyclePoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs index 96a8bfc5d1d..d43d316ff30 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs index 454fe5fe0b3..90bcd329e59 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs @@ -37,7 +37,7 @@ public static AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs index 1c487947d4d..20fd7ba8e71 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddGroupPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs index 86f8a3087fc..b86368dea02 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(GroupLifecyclePolicy body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupLifecyclePolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs index 04bd8385385..7e2a60f8906 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs @@ -46,7 +46,7 @@ public static RemoveGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs index d4a10e85bd6..1befb0dd2c9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs @@ -37,7 +37,7 @@ public static RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs index 96584b15af2..8029846cfc2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(RemoveGroupPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoveGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs index 73781030911..4efa36a7403 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 35f963f9afc..5e521af5341 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index f2bf3dcc1a3..8cafd173633 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index 8961f57cf80..8ac9e0764e8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 0a798b06e5e..0a67eeef385 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 1f2c9028594..f46cd2b99cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 0d5c03b470e..2c7cabde1e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index d88543e89f9..e6fc09f7109 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs index 3fd23779dfc..e01c291dda4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Count/CountRequestBuilder.cs index ebc93189679..8a1033814c1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs index c1570e7339e..fe11a7b7c99 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs index e61890a5a37..fb13a3087ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs index a046555ce8a..5917193bff7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs index 383fa3a9cbe..b4f5a2bdb31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs index 559a6f2baa0..b4d784cccb0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs index cdfea32fcf1..396722124ee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs index 85f282a28b7..3ccc921e7d9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 8da75b79ed2..3d19584ea53 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs index 26e6dfe7d59..3f3eacd2959 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 1b229872619..a6f9e8e8c21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs index bb554a540f5..8aab05232fe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs index d44e9b1989d..9238b6e82cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs index f5d9bf6c3af..c4dfd9faa73 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 4e50bc38df0..34eebc5715e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs index 9efc138a43d..d8c0f3d454b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 33fcb5fdeff..ad41aecbd6f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index ba0ab98f1ab..266e62c8af9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs index a562208f675..7c9d20b63e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs index faad212beca..692907cc1ed 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/MembersRequestBuilder.cs index 64f302eba51..b20b2800413 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/MembersRequestBuilder.cs @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs index 50b956028a6..59ca9b21401 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs index 363085daeb6..ac94b3e3aad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs index d28351c0aaf..fa2a3fce6c5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs index 98dac7c0649..0731fb33e7c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs index 3c7470ac0f4..bf36bba313a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs index f0692d167fb..ae208af81ed 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs index cc4292c4d79..36bb6380cef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs index c259ddd9169..a4bb87bb5d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs index 7ec48f3eb42..48fee4cf533 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 7acbd4eb645..ff9b08866da 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs index 19e6ae8ffad..3b11942f871 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 3a91d0d0256..256400fbd79 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs index 62a6449435c..1f9f3c6f7ae 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs index 2dfb04bf3af..4f5fa7653fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs index 543654487b0..0d06cc41627 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs @@ -93,7 +93,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs index b389b5c1ae9..2d8167e0074 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 70ef6cc41b3..98aa9ee6fc0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs index 9460af80a72..beb2db94e72 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 2c2fa76f048..8a2f18986e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 8459be7db9f..a505df80acb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs index 4231d8eac17..3341d05f903 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs index dd3d57ccd90..2f136ab3eee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs @@ -106,7 +106,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs index 69a3158f3e0..cb1d5137a68 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index 7ddafb52a97..55363e8a039 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -46,7 +46,7 @@ public static GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"webUrl", n => { WebUrl = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("webUrl", WebUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index d8f5f8a5ada..020af138cce 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index 4e4d553d7bc..d8a3de1c297 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 32095f98e8e..5b60b15a101 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index e260bad7ddc..8fdd19ce544 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"notebookFolder", n => { NotebookFolder = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("notebookFolder", NotebookFolder); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index f4f35105649..97a9df50961 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index b711ab5a005..aaeb4dc159a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index 508686f46f4..270ca5fb952 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index dd4e152833c..8c5695a7239 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index fa8e18dd9f9..83e3db92cd8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index a8cd77eaf29..09024ed60db 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 79b51fc7578..4e045b3f210 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 6f077548a14..f1db6270f70 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 547bcbca31f..72db486c4d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 535354ec345..033cb9e4f03 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index f25f2474bde..276f7ba110a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index b0277b29348..8efc714882c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 5c3e90e4c73..904ba9adf7b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 32849fd74d8..6bfb35294cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 79edc5731ac..024f5b38511 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 14e94193822..e599f23696c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 6d9be9f02d7..1df1b59f8b5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 699de316348..4bb85265f1a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 27f885bedea..e488860169e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 1eab2a833f8..b619efc0c72 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 211b526c60a..9626751fc33 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index ae582926ca5..7bf95f8d2ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 38dc7d4351c..6b41f6044fe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index e5d4d6d6bda..4d76cc5484e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index b8d99f57703..5dae1132fdb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 24ed3c213ea..b613593c7ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 58d763a9d03..172c9f387bf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index f0e3feeb9bd..32c09b3bb0c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index b8d607d9f52..c70ef35ea7e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 33b84bf281a..4299f194883 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index c18e28bb3e7..b6b2b1ab0fd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 7ca63411260..65cd8a2e778 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 7af2472ffd3..f5a83f0e041 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 2cb98970bcc..c0f9712ca91 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 7f42cd0abbb..dedbc967af3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 3f0b3f11041..181bb2142ce 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index ac6efc27bf5..49f9d9d2b59 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index b86a39a8ac2..b60e36ccfa1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 655e4182d7b..0fd5f4778cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index f527f5e6e22..f2263ebe908 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 1f1021372ee..5cb638efe0a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index f5f301127d6..a8b7199c615 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 593d6d5a11f..417807715e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index d70cf25bcc3..fbe29cdddee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 72962905f10..098cd7f69a6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index bba75467113..c349de5e32a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 5c0c28d2001..15ba4fc28b3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index df666857b3a..9c7fd1fd1f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index cb0b9ca62a6..153a2092b80 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 03481b2b4e5..03403290efa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 0fa9b30ce76..8f8e8d10f07 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs index db1e3fe0361..37d849cf0d0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Oneno UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs index 56b624fdb8b..ff3dfd81aed 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 78a891f8a1f..20b83c7c760 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs index 6f1aa0508a4..a0950f234f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs index 2521e213c20..3fa71906210 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index 8806e680ce0..0f173cd0bcb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 72a3422e91d..96060958c22 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index cc1c96ab9a9..a63ff222d69 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index fb93712b5e5..614f69f69b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 7e5d3d768f1..c4f25c60cac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index c068d43f31d..df26671d994 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 152660e6b0c..cd829077f2c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index c860b4edbd4..1e192a08c84 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index 990013eff70..a4b093e7768 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs index 9c7c2a594d7..c201a5064ac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs index 0b16362262c..fbb105be746 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index ba2258cae33..1d3ebce7508 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index c02937de5be..ff3481ec9d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 51e1126d8b1..5b60dbdac32 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 9180d1f03f3..9675e6b33fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index bf766909cfd..859e5a0735d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 550e521d18b..98062ebc681 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 17338708672..dd5b0c0f037 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 8494c123bda..c93e1a59750 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index f8542dd94e7..a00c56f4e2b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 0852c1df0fe..ec1e7aef97d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index e3e61376738..360ad370224 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 9284852faae..8bbaa5cfb47 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 5cab3fca46b..4d27b9b098a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 5147d7a59dd..7d088f7da9e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 68f260c6de7..e9a2c3efd7e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 8b1da91df56..9c957e52b12 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 4cbfe2c94c8..5c2714171e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 6057ac1be5a..07b3adfbf18 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 69429c8e894..843587f9e07 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 2f35bf5aced..3714d250fd9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index bf245a53aa7..f63d107e79d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index d74d398864c..9ab832527f8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 4440bcc4c6c..c059eeb5e66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 6ff5a0b3ee2..674fba43a2c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 8b1e54d4ac4..89bfb092501 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index b6b6feffaf8..f63c26782cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 86fa2eb4d8b..c410ca2cd23 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 3c91af273c9..ecec6fa18c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 68d0dabfe4d..44fc2ddaec2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 8311f3ee25d..7e26259b5af 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index ce763321a40..9334939c488 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs index f564e9897c5..30ca30f66b3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 03e23ce63bc..094cc29fdff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 84aa42066c5..0983b573615 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 6489ce8533f..bdf95150cda 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 1fdd80eb4b6..b0db2543000 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index e63a87b2c13..b7a1749c428 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index fb036d79b5b..31df72839a2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 0053d7b697e..0fa52335c21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index a271d7d4bcc..6a2e2c81b51 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 01fe15d2db2..ee793e372b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index ce696337961..9b241028a96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 0b281841140..d4ae4957d12 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 5a4b70b2450..bf971646578 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 074edb43240..17257cae925 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 4a5a445271c..af447ce9d9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 32420f27e0c..be085e30e09 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index 8b8c45ce320..8f3a8d0138e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index bc2a3d2f388..e4b29fbe607 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 960c88aa28b..690a2c5ce27 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs index ae69aa32e2f..e96dd7af248 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Count/CountRequestBuilder.cs index 42c803de76c..d906f46b99d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs index b4f2caf3e07..872e9b5b9b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs index 5aa30a395d0..f5ca799d6eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs index 2d30d361169..8146df6f134 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs index 4d98ad67e74..f5258be5f61 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs index d34a50f3c04..20dede889cc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs index f9915b0e4a8..d96f3839490 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs index aa1a86484aa..cec87640fe9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs index db141352a48..c1d36ce6f6c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs index f0d3838bddc..77433022e6e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 2604188fafd..252b174af3b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs index 1ca8b6327f5..319db41135b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs index 59d8c174463..861b258ec6f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs index 5cf75eca6d6..af9464a317e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs index a15e4e1acd2..4a3b8a0a074 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs index bb07b8363e9..a2fb5d41599 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 12752e3318e..1b6a5023663 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index a98c18217aa..4ceb3cd63f3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs index 877fbfca4d8..be95161c28f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs index ea37bfc02a9..40df259b38b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/OwnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/OwnersRequestBuilder.cs index 31cc32b896a..6004e82f98b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/OwnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/OwnersRequestBuilder.cs @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs index a80acd01a1c..d88c9f19f5e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs index 10c11986bc7..7034d56deec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index c92883f999e..b898635c523 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index af2dd63c444..21fd7b5d5af 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the group. This list specifies the Azure AD apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs index 8480d721a83..ff1870f09a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs index 3f7499ebd90..ad40dab3d06 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Count/CountRequestBuilder.cs index 0a185da2019..904df1f28d2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs index 85c71355e51..0149fc5f9c2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs index 6dcfe5fe845..885665a9922 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs index 94adb89ae00..c8761cc3eb2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photos/PhotosRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/PlannerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/PlannerRequestBuilder.cs index 834f6a5f72e..f8575ce243e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/PlannerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/PlannerRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(PlannerGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs index 287453c131a..dbe8da33ddf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index 3d63454dd7d..97a3bb02953 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerBucket body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs index 4350be5bbab..e95ee77d8e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs index 7a9bbc4456c..d8b4777c3d2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action

diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs index d4b9855b685..22c2148c649 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 75cc5486e36..83cfa05bf34 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } ///

diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 26b9b68488c..407dcdeda3f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 8a2a5c4d453..232417c0e33 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 794485bd798..bc5fffc46df 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 335df3eb955..8f4db44ea8a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 573b218d145..304d5966e49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index 0f73fa9d84b..f68fe717e02 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlanDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs index cffecf3d17a..7d057fe2b07 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs index 3966fb587f1..670b3c789f5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 16733aec9bb..00fe585163a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index ecf998207c9..d0a5857aff8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 02e4eb8e2e4..06b71857a5d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 10b8a5bae0f..d2d0af57228 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 89c4a3d0f96..f456aa1e1eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index 8990105f19c..f055c231a52 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs index 4b589a71741..6f773ebe914 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs index fbba585be58..2eb921b5afb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs index ef4d58ab384..eb276ab9018 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs index dc0a25233e0..6abd036a7cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs index 7dcf95aebc3..1ce73d256da 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs index 116ddc3f8d4..1b36dc09cd3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs index fa0b6d4ff42..97a5e34f29d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Renew/RenewRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs index 89583bbf400..f9cc824c95d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ResetUnseenCount/ResetUnseenCountRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs index ab28b1b7a29..ac7d1777183 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs index 9af36adbb59..10552fea3e7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index dcaaa2877ce..7ac98b59427 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 57938610693..44af413bb29 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Settings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Settings/Count/CountRequestBuilder.cs index f85ed0565ba..58f55c7e1df 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Settings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Settings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs index 97aefedf073..6ca20a9691d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(GroupSetting body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs index 21275b08905..d2297939078 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Settings/SettingsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(GroupSetting body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostRequestBody.cs index e002df6083a..a23520643de 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs index 941d6a42c38..cbd3d252c7b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs index 838082bf8e4..ea6d9f6bea4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Count/CountRequestBuilder.cs index 87b50679d02..81e94da04ee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..f6631ecfb2e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..298cc265996 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,175 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public DeltaRequestBuilder WithUrl(string rawUrl) { + return new DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..d6a7bcb0658 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Delta/DeltaResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Groups.Item.Sites.Delta { + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs index c58ee0f7a2d..a8a0482ad57 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs index bce16d2fb8c..5edd004c9c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index 4b0d08e1e22..e9dc0b2844f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs index 5ece7a90457..8b3524596c4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs index 376eb903687..547271abe0c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs index de538ad907b..0d88f260f2e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ItemActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs index d2aad331ee7..9e7e1d5aa51 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs index 81d79cb0f47..a0f399da800 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs index 6cc52429798..f01ffb257c9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs index 7e4f07ae660..589d4c71000 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ItemActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs index 82e7630a73a..f2d2132d11f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemActivityStatItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs index a11f48436bc..72f5b5fe5d8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemActivityStatsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs index 80f5e78d06a..574ee9f4010 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs index fcfaab2c625..d8885825b8f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs index 81525faf31b..ae976c72c56 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 662af9e8195..d6354d04a04 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 86a2ef5168e..48cba99d27d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index 7992515f6d9..b167fad2ef8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index ee79e019118..4000c6d150d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index f31d180212a..2d2f1f0a99e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypeId", n => { ContentTypeId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentTypeId", ContentTypeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 0c794d0f7e5..b191b31b6ad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs index a2e1850b881..89f3fdc6e0f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -114,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -142,14 +142,14 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs index a2386f0d1b0..5dbfa8cfe26 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index cf38027dabe..39291b32871 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 6d411302e8f..37734c0a791 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 0264845163b..12392f1556e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -51,7 +51,7 @@ public static AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("hubSiteUrls", HubSiteUrls); writer.WriteBoolValue("propagateToExistingLists", PropagateToExistingLists); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 4ecbef4342e..c5ec6b2bcd5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociateWithHubSitesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index a42f9a7160c..1901d10583f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index 4ef1d18f3c6..ee5226b504d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 51682ccd281..f8543a805db 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index f4562b33bcf..248b3f3e4e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index ae2107101cc..00409626a47 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index a70fc4c622e..8b35bede949 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 0fc3f29dd26..d75b0066b2f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 8714f509208..10de14c322b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index e948f6976ac..c90105b9d0e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 9c5a798d3d7..3fae39c611e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index eb27d435e1b..7371df90dbf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 3ea832ca375..a11f50f06e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index fa7ee8fe88c..e0a2371d9f0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index a23ec1cd3e2..649b501669a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index b3d8d860f5c..94259414eb1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -162,6 +162,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -180,7 +181,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -208,14 +209,14 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index 99071bed2d3..7587c101832 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, {"sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); writer.WriteObjectValue("sourceFile", SourceFile); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 2acef2f2fe6..e98b6961028 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 8d94909ef69..406f138b830 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -37,7 +37,7 @@ public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index f0cea2aff41..81c17739d21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 9e8d8118e3a..4a86000cf7f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index a84ba26c728..ba18e3d6728 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 7657461ec71..5f53e24ba2b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 8bde9381dc2..a946f9cbc08 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 76378edb8be..b54844a24c2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 53093a76b17..ea3e5352520 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs index d4e5d373d31..02eb01813dc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs index bb0eb3b8dc7..5594007b90c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs index f405b05f559..924cc640321 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs index ce2c217a399..5c8fce15f74 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs index 3c16393a0ef..af8435a3460 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs index 97a61fe863c..416bc0fbc4f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs index 9fcf4ca0413..da44022f51c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index eead781cc95..6f37ba0a08f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 1aa5db7580d..607d04713aa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index d7b9ea32ca4..134dad2af02 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 24ee82678b2..8e49ce7b394 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs index ec51acceb05..7699472b734 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs index 70bfd425d7a..c9d6b883df2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs index 15590b4c7bb..534cfaf29a1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs index f1566b12910..dea505b3b27 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs index 4a503376af2..463aad57bd6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs index 8aec1e9e68a..ae6020c3cd5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index aad313e2fe0..f1026222d50 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 01d6226c3ee..2b5ddcc9189 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 866cd6115e8..e2b419db000 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 1a74ab4114e..d23b9fed9c5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs index e5a9ee5b3e4..0b24aa36866 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs index a697e1e530c..f534cabbe5a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs index ba3e68727e9..a17747c4c05 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 00ace946ce6..e45fcd83f48 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 9d772b02aa5..29346f1d2a1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index b1204132bc1..85306f8f7f6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 78b7d43fa08..57174dc3d1f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index d67d5327984..30e19c8bbf9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypeId", n => { ContentTypeId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentTypeId", ContentTypeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 07eddcc1b4b..e71293ba900 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs index 113d7d72cf9..45fdbe2ecc4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs index bc34725deab..165007b9b98 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index c9c0ac3cf8b..b0696a6b904 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 6bcc3134a41..63d2f080d7f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 1aa1afd5764..216a0a07d1f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -51,7 +51,7 @@ public static AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("hubSiteUrls", HubSiteUrls); writer.WriteBoolValue("propagateToExistingLists", PropagateToExistingLists); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 25dcc51ca39..e67851e3d00 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociateWithHubSitesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index 81945eca137..ad447609bc2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index 4aaec542f30..6fa46649d49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 56452c81748..44a168ce00f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index bd1572bc118..5d5999bdc59 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index 3cc06a08e05..f42bb557c09 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index 6d377b9919f..24143fd0633 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 84f80cf7f28..577bb618c31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 026ecf2bdf5..c1cc7c63c52 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index 6106e651703..aa525172f84 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 75a6feda789..6e01bfa01f9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 0143c913723..b439e0ba9a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 06ca76fdc7a..1c59dff3ee4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 95a9b95bb56..384d0a35580 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index b5056ce920e..1fd47654b5e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index a7e5b7da435..222a79e137d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -159,6 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -177,7 +178,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -205,14 +206,14 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index 911c855faf0..eab39ff0b4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, {"sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); writer.WriteObjectValue("sourceFile", SourceFile); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 0c114735dcd..d876721ba4f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 6ad3269af4c..7827daee34d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -37,7 +37,7 @@ public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index bd7aa1b6668..2a165b16e65 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 4bc5ebc7901..2d131b16b2e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 4c2b84f499f..6b6c5121d30 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 6c36ebb18d4..1c4334f04e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 9c931eeb653..97546c96f5b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 9579dc43916..f1c21e7ac69 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 382e81c1055..7bda416cb44 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs index 8b1727dfdc3..24c5f2cf5d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs index b5739f4ec5d..bdbe9c8cb24 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 28c70c1fa94..604cac6ba69 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 2fc1e290913..29624fee74c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 3ddf60462d2..89efa8a0dc5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 885293878c5..562f9ea5836 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs index 2a1c1ef433b..0a185c78f31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index b861e4ce50c..1c088e214a0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 6b85a258b85..92e2fd5e9ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs index b5e004b2827..21c48808cc1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index 7e643b71ff3..1619a143c29 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs index 55340b183bf..14d2bb1a2f8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs index 24a50dbdc6f..ad7c014e6e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs index ea9f7d5a6de..c40faf9cf99 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index b4cf91558d0..9bebdd32efc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index faa5041af9a..e48f0bc2ab1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index fd4f922a0ec..7ded35606da 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index d43d6ce4e17..e5d82789494 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 31aed8879cd..011b26215c1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 5fc4ac329f7..58a36e6b0cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index a1d3930541a..02acd860cc5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 9a0ffbaf09e..ab77fb1025e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index 61ba05b5163..9f5185f743d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -164,6 +164,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -182,7 +183,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -210,14 +211,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.ListI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs index b41fbeb181a..cbed42535f6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs index 25af287bc88..6f3299c7391 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index 43bad5aaead..31d911736cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 9407fc48195..c6015c42877 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs index 912d8b8ea36..ba6e65dccb8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ListItemVersion body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index 20230b09b28..85ef156b58a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.ListIt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 378d2a2d0cf..48ef0e64889 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 38d186f05af..e42d2b54834 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 79a7d3e01c9..cfb39863846 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 421ef5f7fc9..33b0af23e4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index a4c7d5cc93f..cee4c7cf2f3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,8 +88,8 @@ public async Task DeleteAsync(Action - /// Returns the metadata for a list][]. This API is available in the following [national cloud deployments. - /// Find more info here + /// Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,10 +150,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + /// Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,7 +169,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -196,14 +197,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.List UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -230,7 +231,7 @@ public ListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + /// Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs index a3b26c6ee1f..e195f48fb76 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index f8dba8e6d78..5f0202e8c2b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RichLongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs index 2c436b932e5..b27a35b9c57 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs index 88a272e7c73..1adc6d02503 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index b4b9f8b5007..bad67ea9437 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index 1ed1009084c..0fa24eaf07e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs index 0e4122c56ce..8f3f9ee0556 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs index 19a85677028..ba4e1ea1da9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.List b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs index 35c44a0bccb..d1965d51a46 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index b537c224eaa..a98e417c298 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -46,7 +46,7 @@ public static GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"webUrl", n => { WebUrl = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("webUrl", WebUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 4a545e0da02..2334986a3d9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index 9836f77b2a9..5eae39c03da 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 0c5396c42a8..797ae87a79f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index d7aa9fc7826..9a1b21fd611 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"notebookFolder", n => { NotebookFolder = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("notebookFolder", NotebookFolder); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index ddb3543f87d..79569b3cd5f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 2086c0ba86d..2c1dd74d1ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index a8479a85a16..c0f7726df94 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index c0c38fe2064..84dae2e435e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 401e5e16ac1..2751f959dc9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index eca9716d7b7..1598e57e6f5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 363c0c2c9f1..069dbddc9c9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index e5e7f716690..efc1672b45f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 7e06287d12e..91dc7094196 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index c6fff7f6f37..17eb362e217 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 206fca4681a..446241ac842 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 13f19deafb3..25c552605bf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 5b36446b7d3..df485e85550 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 2c57277a8d8..cec066212d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index f4b07c04439..a319b51b34d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 0d81b476981..a681effe2a0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index e285ff82c20..6fc2daa62e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 78ff211fce0..0cc01de0f5c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index fe5d1f42898..6c3c71737c4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 772249ea7ce..c75b8688a93 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index ae7761338d6..7db4fded130 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index c4e6420a07a..05238e934f7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 507a674c642..c494ae27efe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index d2549eec4b6..35cf1b8cf05 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 0b344dce2a0..6c266a2a24a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index d6b8d458222..a28f5645e3a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index e23783b8eb8..e68b9de0890 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index f4b7bb2fc49..9f256cdb739 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 7daedfbc82c..85c4001dec5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 404c4ca25b0..682e17f4218 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index 7cdb75b6667..fd3ee4456aa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 8307f15aa05..bd62bacf7c1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index e3626aa92a1..4d75941c18c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index cb05361f075..a9085a66998 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 74c0224d9cd..ce55e3a590f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 689cb7b749f..d33edc9ed66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 1e6cf3aabd6..b3fa2c45ae3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 9d8bf620ad8..39d90e1874b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index b8c29afef53..4be40a3b8d6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 074694c9e12..8505cefb2e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index acf05fbcad1..7f6ff62cad5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 45ff7e0bdad..5fe32560889 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 0933aeb3ebd..80b2868b416 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 134ef8b77f6..b387f03c7dd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 2d5bc603543..a75d3e02a57 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index d03477c1c46..c406bd76bad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 7937eb6ef4d..2eaf72a5776 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 65b3906d07d..80022de106b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index a2765899670..590a37f09cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index e276a75f474..85cffdc3776 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 0a29b36140b..43799b926bd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs index 4b8c5c25173..3a8df21f80e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Oneno UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs index a00ded17982..9d56558fcee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index edf24b1e503..f210cbaf555 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs index c8b3606db82..e838607376c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs index de87358adb0..3ccd36f2df3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index 3c280358f8d..a09c85118f3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index c1f920bcc84..337b0526609 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 6f8ce022e10..e327a3590a0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 40742d0632c..c4314b9d94d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 27315f1cfd1..219605571e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index fd57ecc673a..bdbc087fcb5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 34019e8e1a0..d7bb8836fc8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index a7ee47027c6..3b1ff34f7e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index 1fa6fd94bbb..612c2c84a96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs index 626187b0c48..934dd52eb63 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs index 693da18c6c2..b656851e728 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index fe67e4a2082..4ff95d1cb87 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index 893fece68e9..9e9576c31a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 8a9276c3468..10e8e86ccb0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 33672776796..60f5c3205bc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 45a85fc1940..c2ea7084d6d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index a24e75c4560..3a7d99c6eaf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 19d23d1b504..015e559d6fe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index f8cc81a5332..bb007e5c7e1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 34bdc553665..430a7c66108 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index e36d659d2db..cd64cf6c868 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 26d9af933b8..408bd3399ce 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index e0d7f1eb1f8..330a1941c89 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index df790a90e5c..cb1e085630e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index d616aeb9d32..8c6afe7d4a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 9494c5fbe78..609cdf7a9b9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index b7d6bc1a30a..ef9bb61ea6a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 227198dab2c..3621c5f3677 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index ba0cd3356b3..9dd111aa825 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index ea90c7a9a34..41a05b77862 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 523efc87595..06170a8a91f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 80d58673015..49713c75cb6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 3b251cb6486..322ab384127 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 24f471cf3cf..58b17eac20b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 9f82d322e94..a5327980d7c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 8e27687cddb..0f34ab0ed04 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 1b15382d0d7..bac2acbe6ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 2b41e37a8d1..1ca1ccfec3d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 494f963a402..7c653d3439d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 74781ad6a63..2019628676a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 037cf288e92..4ab2bbcf5ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index b65df94dcfb..1f233412cbe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs index 470bbdb46a0..f3535aca4ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 2688153503c..cc728e44d43 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 08059c69c5e..ad49505f95b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 7fb38d1abee..0875f9544fb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index a4e8a15fd3f..cb76547f6a9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index f2f45ae4d49..e4bb4d924c5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index c8a5962d900..dc9ea3eebac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 1e3dc030a17..c9ffa1adc92 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index ffba71a23fe..7c2f3c90ed5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 3b2ee3cd340..f34d1a93d87 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 86cc01a18f3..55913446d91 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 4358717686c..3e8b7ac84aa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 57dac0ec6b6..a2a15eefdb4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 021eae55935..014aad1e20e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 3bc4ffea259..5872385f4e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index d8e7b0a9978..2754007a689 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index 1c42c228d81..db53a426dff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 78e19188df6..8850ba4626a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index cb03d976ccf..4cfd03653a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs index d5d9502b9c9..a91f0f44e30 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs index 4c840db3091..19de0e26810 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index fec798dd6de..d57735f7681 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RichLongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs index ced060d96cd..d7e7fcd5e66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs index 6b3f175b9b2..f855c647c9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs index 26a918abf79..bf7bdb15ba5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs @@ -61,7 +61,7 @@ public static GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteCollectionOfPrimitiveValues("roles", Roles); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs index 5e11c7df987..1961a0bc58c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index 9c58c4f02d1..69c1bde80b0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GrantRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 77cc7777ec0..648823a43b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Permi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs index 5fadb697917..28a987cacad 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Permis UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs index 9b990c5cb46..18d06b78060 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs @@ -200,7 +200,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -228,14 +228,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Site UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SiteItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs index e2b67070648..5d480193e42 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs index e264c1db5a8..b2261e7e52a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs index 8a61267c64a..747466b0fe1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs index d4ba3e299a7..2072868dcb5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs index 449c11a3284..9f6054ae57b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs index 69b1dd83378..9345ac3f414 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs index f892e04cd8c..65545533845 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 6ecafee9e9d..d7b9504198f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index c7687ce980c..9e59997c904 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index bae270d3dab..8d1926ccaff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 93017cc5125..43677985be8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 15224f7acd3..298a2a670cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index e2411b80eef..a6db0f84398 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 49f55c05c6d..c4d9806ecb3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 05abe73bb08..f44a26e9322 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index c877b52d6f3..b63d594adf0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 20228d138c1..7d87b956a3c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 2acae8f15df..229eda38c8d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 01d7d75c830..1a775e3cc7d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index b24be510d47..5fdd682d1ca 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 14f4a02bd9f..8511ef458a9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 56c9fe7777b..afbf210829f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 1ba11d6b94a..0aee44e907f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index ef23f5b7283..519ed8d2a97 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 4c9aaa2f5a0..17ea5118099 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 852363c92e0..5821394c7f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index d740fbde0d3..0045b854248 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index ce8bf98bb9c..b277eba8a47 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index d996005fb1e..e7d05906993 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index b5572733063..ec18c5b5e12 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 87527eeedd9..f53b7ae14e3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index f0ad5dba73c..b904b7fce6f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index ca15c9bcf05..7361021c4bb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index 3b0e02ae7c3..94b317950e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs index f8824b17af0..427808d2f96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index 6629b7570c0..7ef4bf0d822 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index ce35becdde3..6ad6e22783a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index e83be4d1a33..365bffd0a37 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 0a02e2f3447..f5dd8659e06 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 81c43f79975..dbbe20c07b1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 318492d5819..4cb38105e6d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index d7612506f87..11a33fa8466 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3dbe693d467..8e9510d70bb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 1db2e6bbe02..da5e1aff7b5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 0d15309aacf..7a981324182 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index a27f8f48cc8..f03a76a9e1c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index caba71df0af..fccd764ea23 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 57f5696840d..06aad772c39 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 479c722cbae..28a51285163 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index e34d7a928a2..3c8aa4d4756 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 0906c15885b..68f6f991c38 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index a953ffea5e3..f5d8eb073c0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 701280d3691..5fbcf503675 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index e7fce331756..e3498638317 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 17de64fb7f8..9fc5542efb8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs index 2ad2940ab0e..7e60419cf4f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs index 6f1bc6593de..1c163c8cfb2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs index f62dfebcc77..0bb7d0ded21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs index 264f44a636d..8ca736ea785 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index f7f23f461b0..2d3559d613b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 21346ea354c..fb98f86d3c4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 4f7caae4231..78ca04855ea 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index ab8e3e5ae71..d0ecddeaa90 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 5d4bc4a5c74..dbde9f87305 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 07c442ac7e3..d8f01fd11c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 07328019db9..02597427cbf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 0bad6cedb12..56ead87fffb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 6f0f7971846..a8a8f906211 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 374d4c96fa4..0e464b33d48 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 30ce4dc57f8..bba6e4fb9c8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index c5a10938dcd..fa19a51585c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 2e344d074f3..42752112411 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 1e7287bc427..77a331b0817 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 16dd614dba9..f71c996901e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 63a91ec5eca..7a43e016303 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index d123d72900a..8804882cbf8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs index e14ad8afce3..715c5c083ac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index b6450484edd..4d8f8b72d15 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs index 226c6247ec2..91d8630856a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 3a7d373958f..bcc82b278a6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs index 4953fff5cb2..62677ef229d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 5c2cc829628..72530061440 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index e144febe2cf..8410043e9d0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 7e7c777c40a..7eeb10ae001 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 423d1991fd7..c8e0b2fcbf3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 51201189303..1a7f8ab50af 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index d04628c216e..c93bef82db8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 0b1fe20d6f2..e7302bebf5d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 2783f3d977c..c246e569372 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index f4f98b35e65..4d640714042 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 230c0754243..80acd5e9b03 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 4002f49f67b..c8a7dfc35ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index ce7095d8573..742557e53f9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 7fe19e37701..f15a9e17dd6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 457142160d3..211fb837b49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3e6df3803cd..8a47aa7cfd8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index b9390adbe1e..e109a452882 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index e27953f584a..c8fd1645266 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs index f2b8db2ddd2..df208928ecb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs index 773f1d342b6..c1a91dadd81 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 2efa5fe4137..580f45160d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 8407a661ced..5dda8e67cc1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 7998df597c2..b78ec2d1b96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 9d3b87c4027..048fbd12967 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index 561a19655b1..e5a0ac9a94d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs index f8cd4ff5470..1fdab9586e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs index f8c7958fad3..f377e02f13f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 56e6a3f0a45..d5a416a777e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index a9d8ebb021b..9dab606f8d4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 3ee941e23d5..82fe8c7a6e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 12492a4620b..7a70472d068 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 7ebdb64a966..03eb64db145 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index b0281ec49df..0ee3846f39a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index cad85e4455e..ede9be03b6a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index a0ad27b3c9a..146bc7d96bf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index be42283cc13..b5cdc1738ca 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 2fcc5274715..43633c89ade 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index d5105136ed6..f72374a8478 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 8396b026cf9..0b96c65bba6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 797d7de0142..4a681059d4c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 1d9ec4d145b..b9252757ee9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 7ba2886c78b..acb62925f08 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 5cbe10473d6..7b392a6c5d8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 875a350c51a..35a79aa872c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 91d92d65f25..ee4e2000532 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 5420e80ac4d..8af9a71328b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index 340b466d019..34e13334e61 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs index d3eafd9ad8e..4d37a14a5cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 49d1947cc61..655a2296d5d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 8c9d491707a..2671fb746fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 6a735d19320..111ef97cbb6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 69b936686ce..1a7f6aaddc7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs index 32801ec34ae..078d3f7d479 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs index 2952f046eb3..3d938869a33 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs index c8dad12e0cc..07aa6946cef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index ea7b0eedb0e..71d6bc23703 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 0ff55e75792..80f574e2c21 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index b5dc7626027..873da58da82 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 9b60cc7596a..166025e5dd3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 5cdfa1e802e..916e94e0113 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 4acca8a4e82..12d633a07e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 4c556314c78..559258b32eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index e4ac86e493b..d79ef4300bd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index d3e420cdea6..5d70ba2568b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 8f508d03917..3e7da7ea945 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 0962b2f6c36..1e3cfa18e71 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 5c7196e5a97..9ca1cbf8aa9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index d9ee068a326..2af2c8d7e92 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 2cab51acc5f..b21da7ef3a2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index a0f7efae405..33deb2c3de6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 1591b7c4622..813fff90da9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 9f6112f24cb..610f67cf8e7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 27b73a2191f..c17e4176f97 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs index 03c36e4035b..e23192bf0ea 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs index 986333f2ca7..254f7e07041 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs index 95691978715..57a4bcf6f32 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(Store body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs index 9ad830909a0..10db39c8d3e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs index cb226433e1e..4148fa83550 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs index b4623af0a87..b55f10f3d93 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs index 066e6f29dd1..5e7b99f3275 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs index d1eae216970..c522899798d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 2cccbf159fa..125193a959c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index af846e87985..ec7aeedeb51 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 09eae729c2b..cbbbc24379a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 9d969de6929..57214020097 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index c6d99602509..150b2a22468 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 83c469ce460..35a783efd77 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index ea57e43d2ea..09745e4e20c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 6a13ab6f6b6..2ef4b93e05b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 73656ee80ea..02a7eebad3e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index ab92befc1f6..25ffe183739 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 52bf6288479..496aa51878a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index ff6c6afeb27..de530a51bbe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 3c84f01e1b0..99214e066eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 75c10071589..15a48099ebf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index b0cc77265b0..ede2dba8b06 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 7c21fb0621e..6c43c5ac4c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 9f19f5d17ab..59db4f01a26 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index a7d15d102b7..0e6aaae8710 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 3978325f85c..d4ee9a58baf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 42641b010db..eeae942c8e6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index d80dff619dd..f19f96ad520 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index f357444108f..fd3c36aeb33 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a9ee3593c8e..468c8155038 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index b78d220d140..3128974fa6c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 59141ed9755..0709d0f7354 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 6d1114c68a0..7ebe6a003fb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index e6caa6a8132..9e0dc315603 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs index cc6c65e4a92..1a8b8a37d0d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index 98713faf862..714a5e7977e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 11054ceb71b..7d925c1be64 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 25b237855e9..14188105894 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 3459cb23089..12c5a707c71 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a333db5b08d..0ae458914ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 78bbdef99ee..eb28e5a0869 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index da22ffef443..b8491ed4c14 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 14ae0e0daae..05cb0af2dcd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 1a23270051e..db267fd07b8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 51c33fc4241..c54d34a226f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 533b9c56570..8383edf94f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index a50c8157e11..adbcff9c2b9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index d21ef97e3e9..25a8ae52370 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index af2d84f748c..2ac88415503 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 562dac5267a..a1e4fe978f6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b312b3ab17f..6d463ee190c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index bdbffe2ce2f..3ca7371a62d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 99497d3056e..9dda1b3d656 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 93309c425e4..78e5dd18e85 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 05e7530f230..bdf46909d0e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs index 4ba13709810..7278813cfe5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs index d09d9ab6cd4..801d819b1ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 7a8b2da5f8e..ec849b9b403 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index 9308b051392..c6b907d46f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index d6b7d257013..fe62ab48461 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index d4a0d019656..e0514f07a34 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index e0b1d33c12d..aca241b6bb4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 3f752a9bca1..220cfabda0e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 339e1b11d65..72db8ec1824 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 7361f6dd412..197ef408c37 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index f11c2b39146..df4ed556749 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 08fdcc346ca..1be036904dd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 76f1a3b1331..76c02e4f5b7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 0885b10a03f..ee2fb9dfe15 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 4c20b9bbc81..91d9fc64d40 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 64b7dedbc59..c580fd47f20 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index d7c75acdac9..2bd300e7ccd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 2d1254c441e..e4af68cfb6b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index e7d70009ab8..af68b1e43f5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index e51e0ad0ac7..5ffba41615e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 07b60f4730a..2bc5434a5bb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index d061513d8d1..cdac32272f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index 16169f3580a..ad84ce9ec5d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs index 16f763317a4..8baba4d6112 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index dd1f15bb688..f3ed1619396 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs index 1ce0b8a5a2e..3836465b0cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 5215bfa1f24..bf78c7a01ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 4001779bafe..c3dee69e39e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 36db15819ed..603c2fb06d7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 36b53fb2c04..9bb44bc2e78 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 41707647986..75d927f2858 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 081da9f1004..ee73563c874 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 1e22eddbc0d..7ae623e625f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 90e1e823878..a03f1f9769d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 2f9c919f6d3..d8f7b99a1c1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 330f4e03cd5..abe1066b600 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index adc0e22b8c8..3ae91f4c1cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index c452d9dfce0..d5f4e8d8840 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index e036c3989ca..b868f036df0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index f5d30c83ba3..b414ea86981 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3915157c128..1bc8a5a95fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index b8c517101e5..e6ade339c26 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index e2bf3ce84f8..7bbd58384e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 6caf8ebd012..9451c964c78 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs index 4c59612f503..c07199eb49d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 5451b2816cf..d92f01e2f45 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 64446accaac..7cc96dd0963 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index c7b301edc24..134a8130e66 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 61d4fede443..34c59bd3551 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index e0b1b1d969c..820945aabcc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs index 4275ea9d92c..139e96b4793 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs index c53149030e0..14d1eb307b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 5ac43c3c0fe..539737ca067 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 0f47dc1729c..3ce6caf9144 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 9533fdbd33b..380d4b52a19 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 89be5bd04ed..e097dee51b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index dc28becc64d..3af06cd58b2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 81677160e3c..31e7bdde97c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 32cbddbd796..80ab11e0d6f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 6246d0b565d..c64b5f3ff72 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index aea7bfa0c79..36bda40993e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index daee84d3700..3df059ce73b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index cb3f4c156ac..ddeba2006db 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 51d13e2d500..f5bb54d31ca 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 76d5015d6e8..cc84b0a5e4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 3c6407cde68..199e3f387b7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 1b357ea3ee8..af0ef8e83b9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 45d3cf9ebfc..f60d6be407d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 33104712873..4aeaff94aae 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index ed1f63eb0d8..2757053e9f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index cb89a556d35..b88805ad292 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index fc306a22ab8..42cee8e259f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 6ba0d66957c..4543e6de499 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 64126c1ad57..ef5decceb67 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 8e83f509c45..16e48683292 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 80e196fb57f..f3e9269b9bd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 87a7ffeefdc..dd5781d7359 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index 4f1898bbcaa..20352f916cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs index 4f0c7f081ad..fd75d82e315 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index 0bff91681a9..8ab78ea1c0e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index a0d9882480f..100d5244e41 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index d5908ec20d1..83af4e3e47e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index b5c541240a9..22d4a287a1f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 3df160274ab..aa65e876530 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 0edc330a0ff..2ac0010c853 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index cc140baba4c..13e3d574ee9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b803de05462..aee7d5e67ee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 4b34dbc0afc..44569dd6452 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index cf230262bb9..820830ebdb3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 042d81f0d51..cb4b1783c45 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 2c544354426..7c5f3888db6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 8093863cb75..5e6ca7cccc5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 66551bc5947..8aaff4080cc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 8ffaf6a730f..97955275773 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 877207e74b3..40407fa47d0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index a8754719b98..3558ed82b24 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 3384748619d..02519498211 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 61310b8afdb..902be257920 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 640809bad1c..8bf2adaa657 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs index 189a0e06ed5..79eee72a14c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs index 507dc94de0b..946058ebd46 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Store body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs index 42d1dba82d3..9e6f56beb39 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Store body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs index 6f0018667ba..b804e9602ee 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs @@ -47,7 +47,7 @@ public static RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs index 7e449743898..86d36389ca9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemovePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs index cb44ee6e49e..f2d8f55dc36 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(RemovePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/SitesRequestBuilder.cs index 3009e812627..37836dbc37c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/SitesRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Groups.Item.Sites.Add; using Microsoft.Graph.Groups.Item.Sites.Count; +using Microsoft.Graph.Groups.Item.Sites.Delta; using Microsoft.Graph.Groups.Item.Sites.GetAllSites; using Microsoft.Graph.Groups.Item.Sites.Item; using Microsoft.Graph.Groups.Item.Sites.Remove; @@ -27,6 +28,10 @@ public class SitesRequestBuilder : BaseRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAllSites method. public GetAllSitesRequestBuilder GetAllSites { get => new GetAllSitesRequestBuilder(PathParameters, RequestAdapter); @@ -91,7 +96,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs index 3df9439988d..2d4cf496147 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs index 8e4c2d534dd..0e0a08c5d45 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/AllChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs index e9256519a95..8e7a2fffd6a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs index 7be1358f973..47a1af693a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs index 20a99a07329..9a925f5c8de 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs @@ -37,7 +37,7 @@ public static ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"shouldSetSpoSiteReadOnlyForMembers", n => { ShouldSetSpoSiteReadOnlyForMembers = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", ShouldSetSpoSiteReadOnlyForMembers); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs index bcf3ec9150d..ebbda1e52b8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArchiveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs index 18b14755a19..11a7b6b753e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs index 872dbf86a81..5a5cc716355 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs index d1874f84aed..371f3fd2d2c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index 9f5871f966f..2e8bd43024b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs index 9e55d89c43b..2610f3950ff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs @@ -157,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index edcc7ee72f8..4a7bcc8ad96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index 1fb670d4d7a..ba21568e004 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index ba7a9adf4a4..2b3f7cf0c9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs index bc2a3282882..1fd0f802799 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 010466977c5..8ada4a1ea00 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs index 0038f843d58..15a7224a58f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs index b5ed38d9f11..35c047e1838 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs index d6c9b2009c0..8b1866ad2d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs index 039cfeedd0c..90382f07e4a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 78ec1a544a2..90cb4bb249e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs index 31ed325e211..9d4ccb11411 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs index 41fc636057c..c723d5d32ae 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs index 53211ebd933..fb00ed17650 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index b406e3c2380..2c22d51253c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 1b94e06d7c1..77ef95e9829 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 7bd3171382d..566afd82d71 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index ee5dd2820e7..730dbe97f96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 664dc7363e7..49f75f27892 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 3a2ae74ae93..ae8e251e401 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index 1dfc7944b99..455cc425a94 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 9f70f05965c..1d3ec73439a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index a4c191730a8..ab0241143c6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 0ed25af4f82..7e6e2709c02 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index c27572ae49c..2a82cc77854 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index f9abe6b72f0..0c9aac15fcb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 176a9432cbb..96b651d091e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 0fd0b275da8..8c13b499850 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 91bbda4c730..bad70ba3352 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 5fed376b4cd..90acb25804b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 0e672109573..7afac0df23e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 56b0fcc7914..a297722f662 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 3d496d5622a..3d2ca46c390 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index a980589492e..eb7d5c66f47 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 3f9668ba60c..95be40933ec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index ed9b0a5b473..887e3b231df 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 5abb7a0be62..1a1a850c5ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index ddbbb5e6a5e..c088f6e96ac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 53eb7331465..08ce356e373 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index a8931c03fca..b08ddb34455 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index e6cf40c91ea..7663e5c542e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index 953dff95b74..1569d3bb360 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index d932053dd66..7fae14f8e30 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 51f3383f066..3d1b84624fc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs index b05d0b5b009..2f7ec79fca0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 5a230116cf7..3021d2bca17 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index 6b0ffcadd3f..e47f736ce31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index dbdfd637991..8fe5c27c75a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 5dbee921f23..ac096aabf07 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 813ffece3b9..2e729c3f325 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 5300adf3ead..b3c89c81a05 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs index 98e993a8899..bdb07405898 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 6654e06bb1a..3a97c892973 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 052680f3e56..c6aaa24a9c5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs index 608449f84c4..0545f5e18fe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs index 0a0ce881e40..b2bd8ce3d68 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs @@ -99,7 +99,7 @@ public static ClonePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"classification", n => { Classification = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("classification", Classification); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs index 7eaab351ff2..2fbd2a07c58 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClonePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CloneRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs index 202fbc49d2f..d889de30501 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs index b36dfa4222d..6547e8bf172 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b69a3e75f69..d6b2eb131ec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index a25c6ece0ff..794d8db302a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs index 504da15221b..a3807df7a15 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs index 363fa610c8e..983ce0609c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs index 03d581acab8..629d7f20492 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs index 371c2991eb4..26fa09a0e06 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs index 33c20754274..15a447afb85 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index d5809e6cffb..4a41069130d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 43f0fc8b48b..76972f3087e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 2b635f4c1b0..38426971231 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index 929a294e2f9..76c801702e0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 0744b793cea..5a8d05e8772 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs index 00fd26c0fae..91a0f86159c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs index da2f8b14c1b..3be35eba0f8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs index 4665203c220..b0a7ffc605a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs index 122a2ee5bd3..37637124284 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs index 2706cc4bf07..1917ee29895 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs index 7f4712ed4b4..36e6e0cc465 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs index 5d08d056624..6e840524b3f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs index c1bb4e1cdbe..cf5911db5d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAsyncOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs index 81680e91787..0998f1d9057 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TeamsAsyncOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs index b81965f1485..aa344cc5f65 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index e44b9d4ce75..1fbd0d56fc8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs index b198675c8ca..fcaf939dd3d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs index 006e9e37b0e..2ade30b0b0b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,7 +90,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -118,14 +118,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs index 6f410b8155a..5af383defe0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index 0861b2e02b4..de34e572c8c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index 0872b8a7c4a..d722b539275 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index a7ae3ac7be1..a71037949a9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs index 223aa1bbbe3..10600bc5d49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index d5ab9305968..3015f86a1eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs index b6663af8ba3..18845f5696c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs index d73376b3a9e..20724894197 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 8e65afe9ef8..dc10681227e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs index 72fa2886b8a..12a1773a2c1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 67ffc756498..a9af78b558c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs index 588e49287cc..1e3b0c03c3a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs index 3898d33b163..19f812b3801 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs index e596e1ead36..0110c3aaec9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index cc2f314e710..f43e34414f9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index ac7d1444322..36d2d98a0d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 98af9c8c7eb..d777588456e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 88bb3551d73..e7fa33e6dfa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 69e41882af9..87462bb6ccb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 4aa63193883..636bbceb6a0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs index 226051ccce1..e151361425f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs index cf1d17422c7..29678959a49 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 7ec22be3dec..f8df7b473e8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 4cff9f07804..7126fbed5eb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index ba60f7f0d64..9444aeef447 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 6eb21987b1e..d1b72ad5917 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 3d1683bfbf4..2631702570c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 9e6290fd323..0e4a6381821 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index fd7c16dd79d..1c240108ac5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index aae33481171..d5e6ecd33ab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index f02e050ac2c..5978a409d54 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 5ac934b148d..0928d3756ed 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 2fe0dfe3a5e..3f937715b10 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index d7eb3f7af6f..c15fd5982b2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index bbd4bb5ba14..f18baf9e818 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 227e2709883..33caa0a35a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index bf01126aa85..3d8ffc3787e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index a7a9893ee67..c047ea7e49c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 5f571754082..19d4311f89f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 7767281dbaa..a7ca076578d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 13495c843db..ee21fc69d2d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index a8bc4dc6134..1fb78710146 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs index c3b6a6dfa7d..6b3f4099aa5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -155,6 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -173,7 +174,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -201,14 +202,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 1293ec22d28..27bfeccaff4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index 4e8d55af406..df08920c788 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs index 77f2327e9b6..1d6ce12f982 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 1435a57b17e..4f8ea8d46cb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index e2205248393..61f0a218d31 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index 350c316aa96..03c0ce61603 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 5125220ab59..fc39e9d031d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 7bb0f6b9399..ad937271b0f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index a3439573a03..e1fd6599319 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs index d3bed075995..3e297f03906 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 279d8c5928f..aea773b5f9d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index 0b29cc9c3c6..bb28be21723 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs index c27d0ec2940..1a748d2e37c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs index dddf9d09f91..058076eb567 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 176a962a601..45f4cd21030 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 29f461792dd..6dcf82c7c76 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OfferShiftRequest body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs index fb38b6a2e94..c359e009345 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index 5613621d91e..9b09ac6799a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index 057d8cafdab..0e96bbddf5e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs index fe3f9b32f09..8b6637e022c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 66ccfce6ee4..80db0956904 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 6587721787b..a5e5b1f60f1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs index 7f0a43c697c..61f558e4e17 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs @@ -160,6 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -178,7 +179,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -206,14 +207,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Schedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs index fa90e58de3b..d345c67503a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index 84e67c768e9..e3c205bbe7c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index bd355bfc848..f92dd2c5c55 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SchedulingGroup body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs index 67be5d2b8fc..96b335f6483 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs @@ -47,7 +47,7 @@ public static SharePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"notifyTeam", n => { NotifyTeam = n.GetBoolValue(); } }, @@ -58,7 +58,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); writer.WriteBoolValue("notifyTeam", NotifyTeam); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs index e74398d62a9..3c33fd5a8d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SharePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ShareRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs index 1153f5079d8..b1ca909f5b5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index be94c26f1df..0ab203cdec8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs index dcd16b0390c..49786956238 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs index 06c0bfde86c..4444db990a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index 6c14b4f328d..e635b8961a1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index 255abe025b6..77b40159a24 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SwapShiftsChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs index d9ca20d3097..da9e619e21a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index 5c6ab0eb54d..bc68efb0865 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index bd525644358..6dd5ac3b2c3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs index 8b280a4e480..cb3a89c41bc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index e610874ae76..acc1d6a1a98 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TimeOffRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index edc58ebdd41..0934adec81b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(TimeOffRequest body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs index 5bdfb1185dd..b49c192e60d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index bab85d198a6..95d599d5806 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs index 476cc160350..cfb40f2488a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index f14c41ed05f..976ec163774 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index d8a153985cb..d4c50e225ca 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs index d5ac7cb37bb..c52deb7efa9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs index edf04272405..eb80f612e6a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index dd4f243a40c..8fc48ce8bdb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamworkTagMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs index 42a604a0919..b4f3083aabe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs index 8e6f690bba2..b582de6e6d9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs index 842975d559c..4d2765b5255 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/TeamRequestBuilder.cs index 275d328ae55..67530755901 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/TeamRequestBuilder.cs @@ -199,6 +199,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -217,7 +218,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -245,14 +246,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Team bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs index ba72dcf8789..1673d6a32e6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs index 73a53b8bd5d..8177a03d130 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Count/CountRequestBuilder.cs index 37f9a7d6027..8297abf9c96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index ada30f291ba..cf4350c9680 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -39,8 +39,8 @@ public ConversationThreadItemRequestBuilder(Dictionary pathParam public ConversationThreadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}", rawUrl) { } /// - /// Delete conversationThread. This API is available in the following national cloud deployments. - /// Find more info here + /// This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -101,7 +101,7 @@ public async Task PatchAsync(ConversationThread body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete conversationThread. This API is available in the following national cloud deployments. + /// This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(ConversationThread body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationThreadItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs index 0fac766b499..900aa7d8ea3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs index 614aeaee72a..193eca61195 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs index cb5578805e2..7611414c033 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 9d65b7cad4a..f047258e31d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 05bfdf29a9d..101bd92ea5f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 652b715608b..c6b63841e14 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -88,6 +88,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -106,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs index 2609816c1d3..bcd4044fef1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs index 47ae41e39cb..9b64cb26438 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 507e22b430f..57b01fad119 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs index 8b8071ac186..87846c12b5a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs index e69a2d7e79b..ef11dd306c9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs index dbb21aaf1cc..73dbc9f8978 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs index 0c30ef329d2..e8886635e36 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 895e842f1c0..8b696388f29 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c4de57da89c..e03d513ea42 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs index 7f03cb8867a..549521d6e9e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -88,6 +88,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -106,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs index 29d6bf88eb2..8b6e71d9b64 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs index 2456072cf9a..21de64cb16c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs index f953cdc4359..7f349f64550 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs index 3185ae4ec38..e9e87d208cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs index ceba6ca4ed1..08c6d2bfaf8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs index f42c25dcbea..e10f947f17b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs @@ -83,7 +83,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs index 784c11b6a89..812fb389bca 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Post", n => { Post = n.GetObjectValue(Microsoft.Graph.Models.Post.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 8186c54bb28..855134127bc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs index b96d047b89b..7e8cacbeef7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs index 2a020a30452..ded6fdf2aec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Post", n => { Post = n.GetObjectValue(Microsoft.Graph.Models.Post.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 33391b7b017..4fc8afcbc1c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 9cbcbe8964c..b4619b83360 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs index 858c87f7da7..e5541a88a36 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs @@ -47,7 +47,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Post", n => { Post = n.GetObjectValue(Microsoft.Graph.Models.Post.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 87a8f1dba73..58d484acaff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs index ef127ff7437..517eef5b081 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/ThreadsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ConversationThread body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ThreadsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index 9c6f2584dfc..8e2fa8d2ced 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 1f69d8b0c50..5bb3549c151 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 43d53525537..bdd7e67bf6b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index 3f193c5eef7..36faa25a6c6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 4b739a6c661..fa6ea6f9328 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 6773cdd1c79..bc8d02e04d3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 901880744fb..232f521139e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 0797a05ed0b..d10f3c26a3b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index dea2cc73d9d..eab2f6d1fb6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.cs index 671f9c7c4dc..cb231b959c3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.cs index 6974a137d7b..0533459e39c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.cs index 5ac83703427..be83a54e9ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.cs index 0c6a287b8ad..8ec4bc84470 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.cs index 55eb32c38d5..8b1031bc812 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.cs index 5f761d90490..c0bc793b885 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.cs index 6e07adf5394..4fcc9308579 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.cs index de8886ac55a..e09fb5c52bc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.cs index e05cf3662ef..8be3014da23 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.cs index f669b390ed8..f1a6b86ca1a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 8542cfe91cb..b08f711742e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.cs index 81f53a507a2..0c3cd5f2199 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.cs index 616565a41a6..562fe12b242 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.cs index d1a50881219..615a948bcc0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/DirectoryObjectItemRequestBuilder.cs @@ -93,7 +93,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.cs index 6871c88d0ec..8e829f32761 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 2d927945944..7b43f98291f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.cs index b5ec5b8e94a..6c5d214d5fb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 6f65bf145b4..2e8ebd665fa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index bd7533c5411..f6d6575fda8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.cs index ae60a6a9dc3..4e3b5c7c112 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.cs index 32e3a375013..1c36fe5729f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/TransitiveMembers/TransitiveMembersRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs index 0a3400504f2..c6b2ef8e060 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/UnsubscribeByMail/UnsubscribeByMailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesPostRequestBody.cs index cf458878d58..cfa21dc6dcf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -65,7 +65,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"mailNickname", n => { MailNickname = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("mailNickname", MailNickname); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 2a8fd787542..dd671c7342a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 8cb75fb3e74..f19aeea5cb9 100644 --- a/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 3338d3df0e0..564736de6b5 100644 --- a/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs index 0b75da3c374..6c522aa9382 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/ApiConnectorsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(IdentityApiConnector body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApiConnectorsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.cs index 782dce72b91..28e27a9360b 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs index 86a8d2a796e..3c764d53ee1 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/IdentityApiConnectorItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(IdentityApiConnector body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityApiConnectorItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs index 4b9a3b3b5cc..92f86180b80 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs @@ -60,7 +60,7 @@ public static UploadClientCertificatePostRequestBody CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"password", n => { Password = n.GetStringValue(); } }, {"pkcs12Value", n => { Pkcs12Value = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("password", Password); writer.WriteStringValue("pkcs12Value", Pkcs12Value); diff --git a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs index 8fdda6d2ec6..e22fce58fe5 100644 --- a/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ApiConnectors/Item/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UploadClientCertificatePostRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UploadClientCertificateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs index 30b8d60240e..9ad7060bb09 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/B2xUserFlowsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(B2xIdentityUserFlow body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new B2xUserFlowsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.cs index be1019e82c6..19961e4eac8 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.cs index f3e6e40d7fa..c2e6ddaa064 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/ApiConnectorConfigurationRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.cs index 0064be72f2f..577197061fa 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/PostAttributeCollectionRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(IdentityApiConnector body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PostAttributeCollectionRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.cs index 882613eb509..27f7c155d17 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/Ref/RefRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,13 +128,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -154,13 +155,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs index 1df4570f92b..48aede7c151 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs @@ -60,7 +60,7 @@ public static UploadClientCertificatePostRequestBody CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"password", n => { Password = n.GetStringValue(); } }, {"pkcs12Value", n => { Pkcs12Value = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("password", Password); writer.WriteStringValue("pkcs12Value", Pkcs12Value); diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs index 43567cdd689..de098952bcc 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostAttributeCollection/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UploadClientCertificatePostRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UploadClientCertificateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.cs index faa10fa0555..ebec0ad17a6 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/PostFederationSignupRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(IdentityApiConnector body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PostFederationSignupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.cs index 18e6cde6c43..2b417f7607e 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/Ref/RefRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,13 +128,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -154,13 +155,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs index c448c6b53a4..ebb5f5e2233 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificatePostRequestBody.cs @@ -60,7 +60,7 @@ public static UploadClientCertificatePostRequestBody CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"password", n => { Password = n.GetStringValue(); } }, {"pkcs12Value", n => { Pkcs12Value = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("password", Password); writer.WriteStringValue("pkcs12Value", Pkcs12Value); diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs index f462755fb95..cd62b2e4ccb 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/ApiConnectorConfiguration/PostFederationSignup/UploadClientCertificate/UploadClientCertificateRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UploadClientCertificatePostRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UploadClientCertificateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs index 17556100b30..a420d803980 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/B2xIdentityUserFlowItemRequestBuilder.cs @@ -136,6 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -154,7 +155,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -182,14 +183,14 @@ public RequestInformation ToPatchRequestInformation(B2xIdentityUserFlow body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new B2xIdentityUserFlowItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.cs index 933f6a29b83..d9e3d2e34f6 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs index 1011aa0d206..4258a534d49 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -81,7 +81,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs index cdc7be68e4d..dffc7f04170 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs @@ -92,6 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -111,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.cs index 79899501982..1bed17c132d 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.cs index 7c72b34db1c..0baa1f365b6 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs index 957ba71ccb9..37efbe091b0 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/DefaultPagesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UserFlowLanguagePage body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DefaultPagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs index 1bfb6f402d8..8044a58fb65 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/UserFlowLanguagePageItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UserFlowLanguagePage body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserFlowLanguagePageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.cs index 316f1138615..528eeb56a1e 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/DefaultPages/Item/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.cs index 0ce562767a2..89c9bfcf930 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs index 81f27f56089..6e9b0bbc2a9 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/UserFlowLanguagePageItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UserFlowLanguagePage body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserFlowLanguagePageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.cs index 87f3b028e42..d4dc37b713a 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs index c31502e0379..41a1c35d64c 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/OverridesPages/OverridesPagesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UserFlowLanguagePage body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OverridesPagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs index 3f5ea3fcadc..964fddac7e3 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/Item/UserFlowLanguageConfigurationItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is available in the following national cloud deployments. + /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Microsoft Entra user flows. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,10 +120,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is available in the following national cloud deployments. + /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Microsoft Entra user flows. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(UserFlowLanguageConfiguratio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserFlowLanguageConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -200,7 +201,7 @@ public UserFlowLanguageConfigurationItemRequestBuilderDeleteRequestConfiguration } } /// - /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Azure Active Directory user flows. This API is available in the following national cloud deployments. + /// Read the properties and relationships of a userFlowLanguageConfiguration object. These objects represent a language available in a user flow. Note: Language customization is enabled by default in Microsoft Entra user flows. This API is available in the following national cloud deployments. /// public class UserFlowLanguageConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs index 13a1b41bdeb..1b93d495467 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/Languages/LanguagesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UserFlowLanguageConfiguration UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LanguagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.cs index b6d63391d09..ce1f510b7a6 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.cs index ba25978583b..abc1ef2ed1a 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/GetOrder/GetOrderRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs index c066e382fba..80b24f5666d 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/IdentityUserFlowAttributeAssignmentItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(IdentityUserFlowAttributeAss UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityUserFlowAttributeAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.cs index 26619f6700e..7eb9250cf50 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/Item/UserAttribute/UserAttributeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderPostRequestBody.cs index 093c5a87a6a..c911f08f663 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SetOrderPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"newAssignmentOrder", n => { NewAssignmentOrder = n.GetObjectValue(AssignmentOrder.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("newAssignmentOrder", NewAssignmentOrder); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs index 7792d19dcab..52e7c4d1365 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/SetOrder/SetOrderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetOrderPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetOrderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs index c32c8fb5c60..fdf9a9c6cb0 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserAttributeAssignments/UserAttributeAssignmentsRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPostRequestInformation(IdentityUserFlowAttributeAssi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserAttributeAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.cs index ea005c8e5a6..7f879056d30 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs index bf356375c86..0db962e7001 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs index 4247f61507d..aa91dd3dc27 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,13 +112,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.cs index 61176691e55..a890132eb07 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/UserFlowIdentityProvidersRequestBuilder.cs @@ -81,7 +81,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs index 9db7cd64769..e6809ddd56b 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/AuthenticationContextClassReferencesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationContextClassRef UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationContextClassReferencesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.cs index f89f51c8e0e..632f4e2b00c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs index e14dc43116e..4dcb38ca32c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationContextClassReferences/Item/AuthenticationContextClassReferenceItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationContextClassRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationContextClassReferenceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs index 60a357ef49b..2c861b9967d 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethodModeDetai UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodModesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs index 2b24b28e1ae..fe524ab40ff 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs index 01c824d3ede..30ceeae26bc 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodModeDeta UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodModeDetailItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs index ae731c88489..332894508ee 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationStrengthRoot b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationStrengthRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs index 556a4854d25..4c4b0417cac 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs index 404d387a5e3..57e02c8beed 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationStrengthPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs index 42192d8d41f..e4746eb273c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationCombinationConf UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CombinationConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs index 127237efc26..5761dba2a29 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs index 97e2f22d7d7..538be06a151 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationCombinationCon UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs index ff0cbf2c343..80b2ec0f733 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs @@ -47,7 +47,7 @@ public static UpdateAllowedCombinationsPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedCombinations", n => { AllowedCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfEnumValues("allowedCombinations", AllowedCombinations); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs index 9128223163f..2b17dc2f09c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UpdateAllowedCombinationsPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs index 7d54c522507..bf2397e4c70 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs index 0b0161eb395..90682a3ba47 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationStrengthPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs index 1eaa0589e7d..019dee6908a 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(ConditionalAccessRoot body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConditionalAccessRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.cs index 3fb4cb528bf..0cbe0947cd7 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index 0cfdaef0cd9..a0b8b7770c8 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -29,8 +29,8 @@ public NamedLocationItemRequestBuilder(Dictionary pathParameters public NamedLocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a namedLocation object. This API is available in the following national cloud deployments. - /// Find more info here + /// Delete an ipNamedLocation object. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -91,7 +91,7 @@ public async Task PatchAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a namedLocation object. This API is available in the following national cloud deployments. + /// Delete an ipNamedLocation object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(NamedLocation body, Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs index 499ba3310a8..fe9ba268359 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/NamedLocationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(NamedLocation body, Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.cs index 4d23ecee138..80ed165c546 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs index eb5ca9b49ea..986bdcc0a29 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/Item/ConditionalAccessPolicyItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConditionalAccessPolicy body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConditionalAccessPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs index 14c784f7256..573534b253c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Policies/PoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ConditionalAccessPolicy body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.cs index 675cc13d1fe..277959cf68c 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs index ad045b9e4d6..d8818731a98 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/Item/ConditionalAccessTemplateItemRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs index b05d62a2478..ec8905e5dd6 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/Templates/TemplatesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs index 6f989bfd2ba..c7193438a48 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index e3d5b72b739..3d434bd051c 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.cs index 9754588df99..14e74af45d0 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs index c1f83177d25..6fac3798c6d 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -47,7 +47,7 @@ public IdentityProvidersRequestBuilder(Dictionary pathParameters public IdentityProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/identityProviders{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is available in the following national cloud deployments. + /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProviderBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -89,7 +89,7 @@ public async Task PostAsync(IdentityProviderBase body, Act return await RequestAdapter.SendAsync(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is available in the following national cloud deployments. + /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Create an identity provider object that is of the type specified in the request body. Among the types of providers derived from identityProviderBase, you can currently create a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently create a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(IdentityProviderBase body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityProvidersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -150,7 +150,7 @@ public IdentityProvidersRequestBuilder WithUrl(string rawUrl) { return new IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For an Azure AD tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is available in the following national cloud deployments. + /// Get a collection of identity provider resources that are configured for a tenant, and that are derived from identityProviderBase. For a Microsoft Entra tenant, the providers can be socialIdentityProviders or builtinIdentityProviders objects. For an Azure AD B2C, the providers can be socialIdentityProvider, or appleManagedIdentityProvider objects. This API is available in the following national cloud deployments. /// public class IdentityProvidersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs index 02f0db35340..79a73604b3c 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityProviders/Item/IdentityProviderBaseItemRequestBuilder.cs @@ -29,7 +29,7 @@ public IdentityProviderBaseItemRequestBuilder(Dictionary pathPar public IdentityProviderBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/identityProviders/{identityProviderBase%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -91,7 +91,7 @@ public async Task PatchAsync(IdentityProviderBase body, Ac return await RequestAdapter.SendAsync(requestInfo, IdentityProviderBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Delete an identity provider resource that is of the type specified by the id in the request. Among the types of providers derived from identityProviderBase, you can currently delete a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently delete a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,10 +112,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Update the properties of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently update a socialIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently update a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(IdentityProviderBase body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityProviderBaseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -192,7 +193,7 @@ public IdentityProviderBaseItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Azure AD. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. + /// Get the properties and relationships of the specified identity provider configured in the tenant. Among the types of providers derived from identityProviderBase, you can currently get a socialIdentityProvider or a builtinIdentityProvider resource in Microsoft Entra ID. In Azure AD B2C, this operation can currently get a socialIdentityProvider, or an appleManagedIdentityProvider resource. This API is available in the following national cloud deployments. /// public class IdentityProviderBaseItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs index c367c838a86..708189fbf07 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPatchRequestInformation(IdentityContainer body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.cs index 864d1160b51..18587a9f122 100644 --- a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs index 5f4d2adc8aa..cfc904b4397 100644 --- a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/Item/IdentityUserFlowAttributeItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(IdentityUserFlowAttribute bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityUserFlowAttributeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs index a8f748dd8bf..b7f9394e0bc 100644 --- a/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/UserFlowAttributes/UserFlowAttributesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(IdentityUserFlowAttribute bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserFlowAttributesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs index bb3ed671695..850e8506165 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewSet body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.cs index 4fd81514c7b..81c13673dc0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs index 6851275ecaa..8943e284dfa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewScheduleDefinitio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index e0a46970e9a..ae9ae2dc8b3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 4c7f61b6350..5ec4c5f3503 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs index 905f990729e..c290c7854c3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewScheduleDefiniti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewScheduleDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.cs index bf94bef0f66..6f97f7db7cb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 5a63bc407a6..5100fc507d9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index d17906a33da..4d0e4693421 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs index 83472802d86..a1ff8b6e020 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/InstancesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewInstance body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs index d35b22ee55f..b2a84634c4c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs index d5cc13fff8a..5574a9a3ca8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs @@ -156,6 +156,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -174,7 +175,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -202,14 +203,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewInstance body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs index df5ec752e28..552469e002d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs index 52580eb491a..0742f3b7274 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs @@ -88,7 +88,7 @@ public static BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decision", n => { Decision = n.GetStringValue(); } }, {"justification", n => { Justification = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("decision", Decision); writer.WriteStringValue("justification", Justification); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs index 69a7d375c69..d07542be134 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(BatchRecordDecisionsPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BatchRecordDecisionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs index ccd81f8afe0..91f3348fcd3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ContactedReviewersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs index c75bf6a8294..cf16ab76ba4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs index b3c91722df8..095a4d2dfad 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewReviewerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs index 3c6a2015df0..a5a1d6af596 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs index 1b6d40629cd..d58f3bd21ff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewInstanceDecisionI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DecisionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 99dc8bb8910..51c33b80fc7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index fea20c0f02d..b6dde9d7273 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs index 436fe6ce4b6..e58d9af7456 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewInstanceDecision UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs index 04288e56823..637a1360989 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs index 4abdd0ec105..3a0689076f9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(GovernanceInsight body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InsightsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs index 7823bdeb485..3be792ad5de 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(GovernanceInsight body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GovernanceInsightItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs index 620a099c44b..8da4e7d5d8e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs index c44ae9f5af0..c570c9ef99a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs index c3b58f63160..a4ad1d1dd7f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index f885c171887..e6fa9d7b5d0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 7346c90ed54..21acdee8b76 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs index 8baa829418b..844a2b6889a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewStage body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewStageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs index fb8eb809557..128cb90b972 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs index 5f1553a0ec0..1fc81bbb286 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewInstanceDecisionI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DecisionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index c3636a6ef4b..1c8d71dbd78 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 902682a37ce..788a551621e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs index 8779626d23b..35b933e61c9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewInstanceDecision UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs index 0a5755a48bf..6f0ff479c0c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs index dbfd5cc5cf7..4f594b38255 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(GovernanceInsight body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InsightsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs index d8029999812..48770b196cd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(GovernanceInsight body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GovernanceInsightItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs index 0d65c795dca..a63624a2734 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs index da57400291f..0de1823b6c0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewStage body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs index 3dcb2e5789a..4c6af995b3b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.cs index 8c051954634..e02c5c4f7b0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Stop/StopRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.cs index c414fa4acfd..3db45783d3c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs index f890251483d..49d3653fa4f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/HistoryDefinitionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewHistoryDefinition UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HistoryDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs index 6c24a963129..d12a5c7ceaf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/AccessReviewHistoryDefinitionItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewHistoryDefinitio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewHistoryDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.cs index 72b9305e154..7a6b9fbf74a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs index 116dc009f42..c6993cb864e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/InstancesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessReviewHistoryInstance b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs index c805698aea9..e2a774a6d0b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessReviewHistoryInstance UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessReviewHistoryInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs index 26fd4f33d39..4543c865465 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/GenerateDownloadUri/GenerateDownloadUriRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.cs index 23991e082ca..1572af1578d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AppConsentApprovalRoute body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppConsentRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs index 942bb4f95ac..c59149e961f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/AppConsentRequestsRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(AppConsentRequest body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppConsentRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.cs index 0a5b355eccd..e2bdb75f699 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index f5071dbc84b..2fec93fd42a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AppConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 44113c70f44..3f738e3ed22 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs index 42cd3be252e..954b49f3450 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/AppConsentRequestItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(AppConsentRequest body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppConsentRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.cs index 63fbff45c87..fba355748eb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 611bdecd76f..9f39334c8f3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 6fcb70930ff..0d47b7e710b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.cs index b89c10f5b4c..84fb608bf26 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/ApprovalRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Appro UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApprovalRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.cs index 6b68a5fbc55..d43d5c35595 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs index dde5045c3df..21c63c3d879 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/Item/ApprovalStageItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ApprovalStage body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs index 967bb252026..16a5f321b2a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/Approval/Stages/StagesRequestBuilder.cs @@ -42,7 +42,7 @@ public StagesRequestBuilder(Dictionary pathParameters, IRequestA public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/appConsent/appConsentRequests/{appConsentRequest%2Did}/userConsentRequests/{userConsentRequest%2Did}/approval/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ApprovalStage body, Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ApprovalStage body, Action @@ -144,7 +144,7 @@ public StagesRequestBuilder WithUrl(string rawUrl) { return new StagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// public class StagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs index 7b01021d25a..e1737e33796 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/Item/UserConsentRequestItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(UserConsentRequest body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserConsentRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs index ac90e2bf9bd..f8056678c72 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AppConsent/AppConsentRequests/Item/UserConsentRequests/UserConsentRequestsRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UserConsentRequest body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserConsentRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs index c558b510edb..f93f1fed5ac 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/AccessPackageAssignmentApprovalsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -91,7 +91,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +106,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -134,14 +134,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Approv UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageAssignmentApprovalsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -152,7 +152,7 @@ public AccessPackageAssignmentApprovalsRequestBuilder WithUrl(string rawUrl) { return new AccessPackageAssignmentApprovalsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// public class AccessPackageAssignmentApprovalsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.cs index ae32212594f..58cb35e775d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 881053cb8a8..a3e908525bb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 1a1ce1b8528..1435300e6f7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs index c91f36b5396..10eb979912d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/ApprovalItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,10 +115,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Appro UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApprovalItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -195,7 +196,7 @@ public ApprovalItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// Retrieve the properties of an approval object. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// public class ApprovalItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs index ea1f2dfb31f..ba75f5f597a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs index ea23e93d2ef..8fd7822e6c0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ApprovalStage body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs index 4192f2deae1..a80243102d2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentApprovals/Item/Stages/StagesRequestBuilder.cs @@ -42,7 +42,7 @@ public StagesRequestBuilder(Dictionary pathParameters, IRequestA public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ApprovalStage body, Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ApprovalStage body, Action @@ -144,7 +144,7 @@ public StagesRequestBuilder WithUrl(string rawUrl) { return new StagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// public class StagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs index 9cee8789b49..b4bb91fc40b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/AccessPackagesRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Access UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.cs index 509c044b4f8..f3d0a5fde3d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 4aa1515e5c2..1afac53b3e5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index d8989777335..a336640a93a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index a107f0770b0..82a3988bde1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -147,6 +147,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -165,7 +166,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -193,14 +194,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Acces UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs index 5b8c3e9788f..7cf04d2b17e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.cs index 000d950a6c2..5bb45347957 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs index d1302a732d5..07c6c1c7b2f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackagesIncompatibleWith/Item/AccessPackageItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs index 86890cbb596..95a2c29f014 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageAssignmentPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.cs index 5fe5f4c5cc1..2adad259ac8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs index eef31d8443c..55de5dcbe08 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs index 589cac3adec..c231e99a4d2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageAssignmentPolic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageAssignmentPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs index 72155a38b28..39dea3646c0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs index f7381c36f0d..bb1527d27be 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs index 9297081c1a1..14dbebc9c82 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(CustomExtensionStageSetting b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomExtensionStageSettingsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs index 630b6f85913..009876e7ff0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs index e18794b8f54..4dde74553e6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(CustomExtensionStageSetting UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomExtensionStageSettingItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs index d7b20d2ac8e..150e467b4f6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs index c6f7100acc5..dd11af003fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageQuestion body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageQuestionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs index d2e40a6668a..679ab610fe9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageQuestion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new QuestionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs index 3ac06445767..b9c06b44c94 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs index 4a10f63a499..607f9735c6b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequestRequirements.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs index 44d9946ce54..f2deaaa5fb4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/GetApplicablePolicyRequirements/GetApplicablePolicyRequirementsRequestBuilder.cs @@ -28,7 +28,7 @@ public GetApplicablePolicyRequirementsRequestBuilder(Dictionary public GetApplicablePolicyRequirementsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/getApplicablePolicyRequirements", rawUrl) { } /// - /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsGetApplicab return await RequestAdapter.SendAsync(requestInfo, GetApplicablePolicyRequirementsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task PostAsync(Action(requestInfo, GetApplicablePolicyRequirementsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -84,13 +84,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.cs index 96dde6b246f..f5ff8bb8dc5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs index e282a6d95f3..10a42649dcc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/IncompatibleAccessPackagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs index 45ccef40438..4c09b28b99c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index f1854fb5b22..4aece4cabfd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.cs index 0046d89679f..38598c1b99f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs index 341a7e471c4..b328ddaa051 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs index 7d0556bcb55..946ddc6f779 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 01a50dd1a37..325263ecd61 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index a46e80821a5..a71dae35a8e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs index b4d2ebaa594..3a7ace3a4e7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.cs index 7f81b65871e..1814addf156 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs index 4ce949560c2..fc8cd3005ad 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRoleSco UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 7b205a616a8..b2ec19175a5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs index 32879694565..7185c741aab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs index 7cbdd50e415..0bab52277c6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 701f43fdb5e..957797e0972 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs index e2961165208..1b8b90a4493 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs index c8fcef8f035..0a2d04c3d40 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index f5ded3d75c9..51fc921497c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 2408f2ea5db..3064254d072 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index c33d056d506..1fa24c76bc4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index cd25462149e..9f9d61a49c8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 3703e7bbc42..5f3c42584ea 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index b0d86c2c054..a5c3db6e319 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs index 7d29fdf65bf..82349312b7e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs index 278178f6fda..52f331d1f63 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 081cbb496e2..aea2c8690cc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs index 13de49d7a78..9d045b97fab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs index 50e53b64df0..018a2a987a6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 7a2fa2b72a2..065d65be383 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 7206780c8ff..3f015789f62 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index f11516c17e6..8765694cf48 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index c9c673cbab4..dbeaf375fa1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index ca518350d89..6ffe8c0cb02 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 0775ee16dca..da98a32b151 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs index 8236d732118..8c7974d4404 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs index 2ef63a25d15..3fad7cb2fff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 22e9c457fc8..c588714a5ac 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs index 022fb36ffbf..05c3fb0ab0a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs index 795cdebc7c0..9fb85b4c51d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs index f2804ac3363..2f76dbc412c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRoleScop UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRoleScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs index f988baf9e9f..20e5d1f1cd4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/AssignmentPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public AssignmentPoliciesRequestBuilder(Dictionary pathParameter public AssignmentPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(AccessPackageAssignme return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// In Azure AD entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, create a new accessPackageAssignmentPolicy object. The request will include a reference to the accessPackage that will contain this policy, which must already exist. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageAssignmentPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public AssignmentPoliciesRequestBuilder WithUrl(string rawUrl) { return new AssignmentPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentPolicy objects. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=accessPackageAssignmentPolicies as a query parameter. This API is available in the following national cloud deployments. /// public class AssignmentPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.cs index 70002c64729..a07bde53f73 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs index dbff38fc2e2..3bd3e09f71b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs index cfcc3310cc4..63cb72a49ed 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackageAssignmentPolicyItemRequestBuilder.cs @@ -49,7 +49,7 @@ public AccessPackageAssignmentPolicyItemRequestBuilder(Dictionary - /// In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, delete an accessPackageAssignmentPolicy. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -110,7 +110,7 @@ public async Task PutAsync(AccessPackageAssignmen return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, delete an accessPackageAssignmentPolicy. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, delete an accessPackageAssignmentPolicy. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,10 +131,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -149,7 +150,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -177,14 +178,14 @@ public RequestInformation ToPutRequestInformation(AccessPackageAssignmentPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageAssignmentPolicyItemRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -211,7 +212,7 @@ public AccessPackageAssignmentPolicyItemRequestBuilderDeleteRequestConfiguration } } /// - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentPolicy object. This API is available in the following national cloud deployments. /// public class AccessPackageAssignmentPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs index d1afc202f79..1336d691c87 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs index 01e3a3a3bcb..991b7389a81 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs index b7c56f34d5b..aa8732de17c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/CustomExtensionStageSettingsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(CustomExtensionStageSetting b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomExtensionStageSettingsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs index 44e25b73e9a..a39bda8184d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtension/CustomExtensionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs index 866b47be005..6eba396e655 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/CustomExtensionStageSettings/Item/CustomExtensionStageSettingItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(CustomExtensionStageSetting UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomExtensionStageSettingItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs index cbdb02fda6b..4353bedf8ee 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs index 9b96e6aed6b..f84e7f9eb9d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageQuestion body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageQuestionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs index d397876b777..0efd4975f6e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageQuestion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new QuestionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs index a65084995b0..c3f02069fdf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task GetAsync(Act return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is available in the following national cloud deployments. + /// In Microsoft Entra Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(AccessPackageAssignm return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action - /// In Azure AD Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is available in the following national cloud deployments. + /// In Microsoft Entra Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageAssignmentReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -154,7 +154,7 @@ public AssignmentRequestsRequestBuilder WithUrl(string rawUrl) { return new AssignmentRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. This API is available in the following national cloud deployments. /// public class AssignmentRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs index d3d12d46eba..6379cf81c97 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index fee30e04f5a..05077b61644 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index b53014afd0c..81a1cd90190 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs index a88edfbd3c0..e88ae8b80ac 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs index a2c9e2ca0b8..627866bc269 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -141,10 +141,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageAssignmentReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageAssignmentRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -221,7 +222,7 @@ public AccessPackageAssignmentRequestItemRequestBuilderDeleteRequestConfiguratio } } /// - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignmentRequest object. This API is available in the following national cloud deployments. /// public class AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.cs index 4db9ae6a6a6..97060e92744 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Assignment/AssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs index 306d00ad367..cfe7fabcffa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/cancel", rawUrl) { } /// - /// In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is available in the following national cloud deployments. + /// In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is available in the following national cloud deployments. + /// In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancellable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs index 7a1874faa09..b9dc78cea78 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs @@ -28,7 +28,7 @@ public ReprocessRequestBuilder(Dictionary pathParameters, IReque public ReprocessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/reprocess", rawUrl) { } /// - /// In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// In Azure AD entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, callers can automatically retry a user's request for access to an access package. It's performed on an accessPackageAssignmentRequest object whose requestState is in a DeliveryFailed or PartiallyDelivered state. You can only reprocess a request within 14 days from the time the original request was completed. For requests completed more than 14 days, you will need to ask the users to cancel the request(s) and make a new request in the MyAccess portal. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs index f57ef5e5176..de98baebda1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs index f59efb9b2e9..1840e8f322a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomExtensionData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs index cb4f24d3cf2..c1a4465cad7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public ResumeRequestBuilder(Dictionary pathParameters, IRequestA public ResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/resume", rawUrl) { } /// - /// In Azure AD entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// In Azure AD entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs index 965f09cf8b5..5474f2268b4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs index 82b0b06f9c4..d582d377cba 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccess/AdditionalAccessRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs index e79c4a68d79..5718ba2ee6b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs index 5cc155a21f4..19d68cd7cb7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId/AdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageIdRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs index 96ea453f88c..9b75efc0a3a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/AssignmentsRequestBuilder.cs @@ -67,7 +67,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -108,7 +108,7 @@ public async Task PostAsync(AccessPackageAssignment bod return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,7 +123,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -151,14 +151,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageAssignment body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -169,7 +169,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// In Azure AD entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignment objects. For directory-wide administrators, the resulting list includes all the assignments, current and well as expired, that the caller has access to read, across all catalogs and access packages. If the caller is on behalf of a delegated user who is assigned only to catalog-specific delegated administrative roles, the request must supply a filter to indicate a specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. This API is available in the following national cloud deployments. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.cs index b91528a47c0..bf40332ab3e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index c673a6e392b..f3d9ea5692e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 8efad2499c3..edcbba87f73 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.cs index 4bfa8669dcd..a355ebb1bf9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackage/AccessPackageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs index b899ed0b537..327310b71fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AccessPackageAssignmentItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -130,10 +130,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageAssignment body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -210,7 +211,7 @@ public AccessPackageAssignmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// In Azure AD entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, retrieve the properties and relationships of an accessPackageAssignment object. This API is available in the following national cloud deployments. /// public class AccessPackageAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.cs index 0643f1866ef..ef3862c9cb0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/AssignmentPolicy/AssignmentPolicyRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs index 0f9240ce3df..95f4f596223 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Reprocess/ReprocessRequestBuilder.cs @@ -28,7 +28,7 @@ public ReprocessRequestBuilder(Dictionary pathParameters, IReque public ReprocessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignments/{accessPackageAssignment%2Did}/reprocess", rawUrl) { } /// - /// In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Microsoft Entra entitlement management can perform this action. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action - /// In Azure AD entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Azure AD entitlement management can perform this action. This API is available in the following national cloud deployments. + /// In Microsoft Entra entitlement management, callers can automatically reevaluate and enforce an accessPackageAssignment object of a user’s assignments for a specific access package. The state of the access package assignment must be Delivered for the administrator to reprocess the user's assignment. Only admins with the Access Package Assignment Manager role, or higher, in Microsoft Entra entitlement management can perform this action. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.cs index cea5c148203..d5f5809f1cc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Assignments/Item/Target/TargetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs index 20e9da9a557..d94e150b788 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/CatalogsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageCatalog body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CatalogsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.cs index 094e3405c94..9fc2f3fc52b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs index 95a72deba90..1bf4f3721ec 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageCatalog body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageCatalogItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs index b2df7db3cb3..f57c0117c6c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs index ec16945c7a0..8d62840b66e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index 4bdcfe458f6..4808639e994 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs index ac59e363019..c15b5d82740 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs index 0365e2ac6a7..5841495ea6a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CustomCalloutExtension body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index 1a0f7229f2c..81167f47697 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -29,8 +29,8 @@ public CustomCalloutExtensionItemRequestBuilder(Dictionary pathP public CustomCalloutExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. - /// Find more info here + /// Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. - /// Find more info here + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. - /// Find more info here + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(CustomCalloutExtension body return await RequestAdapter.SendAsync(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. + /// Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,10 +112,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CustomCalloutExtension body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -192,7 +193,7 @@ public CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs index 731f38cdefa..7fc7a794cab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index f6dd8e83f8e..85a4fa3c05b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 6fdccc6ffc2..10daf820757 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs index 892ffafe09a..453c6a204e7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs index 72da0411a82..253dab2a3fc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 5e9583049fa..e9fc9355ec0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs index 73d5486663d..0faa1e79168 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 75a7f8b6dec..3ece84a8a6f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index f69c89c08c7..d51a3f331a6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 0efd38ca3fe..7976a204b84 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index cab22f3e696..4deb6eef1ff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index 58eac4d7312..595621076ef 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index d8f8b7f78c8..0ec4d2ba9db 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index 14829e0283e..071bf12d4c6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 46657b431d3..b34b630a692 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs index d539beb4010..71fef01903d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs index 80dc703fcb5..617e29641fc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 8916bbd9e72..9d86748dfad 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index e101b8fe93f..d13edddd34b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs index 17803ea2a39..2773c28db36 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index 395cf26b6db..172fe7a6fc2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 024ced47816..1d47884b69e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index b406515b40c..d6910251f46 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 05b24a3a0a5..cccbbfb34f1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 219808a2ccc..06e2fe957b2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 992e8a90150..3ec6f506e43 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 043199507d8..8184a3f7c0f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs index b448db27238..58a1176fc9d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs index adf7677a87e..e8d5b6c6c7e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index dfbb92ffe57..f701e55a799 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs index e1668234e8b..9b200817bbf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs index 66d854d96c4..2b9602ca9f6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.cs index 235cf282294..ce75607bd6b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index aa529f34b79..e05ace28c99 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs index a31d2190bce..ff70bb04cc3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs index 68e7be73aa4..5e8b8d518a2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index a694d8e1802..e1512902d0f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index b2e45b24bf2..f6f10d32974 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index 7a49ca3c268..a901892c26f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 66aa1c34954..9b59205ab85 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 00a0838f1bb..a710ed2975b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 80a3839f83f..5218f772a6b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 431df96a1dd..9c4f693ac86 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 3912ef29adc..04012b4a17a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs index 8c0cac1675e..b4310340509 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs index 1ec23cf621c..c4bac2c06dc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index ad6468e699f..4bc475b300e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index e14d68d935a..d5fb663d7f2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index c8ed67651cf..1fe9de8c8be 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index 71037918c36..e846eab68a3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 1381e3a3734..ed271c63394 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index ba2c18b1739..7717c1c8e28 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index cd1f0a1cd9a..cea36f9eb66 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index d79dce3f91a..682eaed315a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs index bb21071c05a..5d88f9a9318 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs index 802a2147055..70596c1d1b2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/ResourcesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResource body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs index bb8ade527fa..427ef664e38 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/ConnectedOrganizationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ConnectedOrganization body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConnectedOrganizationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.cs index de8c88fbaad..d1d859feade 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs index 058292e20fb..ea6f2a59ca2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ConnectedOrganizationItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(ConnectedOrganization body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConnectedOrganizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.cs index 7d693d4191f..d0db7501951 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs index 6218c6edeee..dd9f368d54f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs index a84ca3946c2..91f1346797e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs index c7a350f94d6..d1736de9681 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.cs index 1b8736f107d..ca9bf2910c7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs index c3137a7bfb5..2d37cec4175 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs index 8ffa8b1d8a4..d01e51e05cb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs index fb2cb0b6f41..4b5fec53cd6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs index ee9f7b14126..ee4b29c1dfa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Entit UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EntitlementManagementRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.cs index fe36548671c..c0dbd383758 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.cs index 24d40eddb74..854dfd464e5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/AccessPackageResourceEnvironmentItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceEnviron UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceEnvironmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.cs index dc426d86d60..14cae96f4d0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index 03540c8186c..a0fbc74f26e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 44c1da1894d..b6b85b40d64 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs index 6fd7f712063..5539117027a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index b4149a134af..bf6e22f33e4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index d329fdfbe1b..6087d035070 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index ebe7abf1d70..1effacb7a72 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index dfc7eded654..3cc84f73db7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 689671462a2..873d40d1466 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 9afed010217..4dee5976d32 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 5efd5688f53..c67f7590f85 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 5bd2b9c4a4b..6efaf7255f1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.cs index 6222e612cde..da6197fcd7d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs index 3c03f343ba3..fad8a2201cc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 64f39150089..2f64ca6b758 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index dda25fdcec6..b6f5245d52a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index 01a86fa0f51..8f9068eeda0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index a5dd63c2e09..330637d227e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 7972fa0d78c..a26c2474209 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 558d5cd741a..bbddd1a4c7a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index c012d48fe78..24688f7637a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index 0642f5e2798..7135707495e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs index f6da4ec7ea0..411a1fb6ca8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.cs index a1a2974c501..27710fb9fb4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResource body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs index 96503021e02..22a07c76a34 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceEnvironments/ResourceEnvironmentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceEnvironm UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceEnvironmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.cs index 4c05dec98c9..75a52297f20 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.cs index 8ee354b4d8f..9f70a744c36 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/AccessPackageResourceRequestItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.cs index 988d2f28b78..fa4c533fdb0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/AccessPackagesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.cs index 56ad2d01024..6e048413327 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index 1d451d3db6f..334c2d6d863 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.cs index 3ab8a5cfb96..06addf7a428 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CatalogRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageCatalog body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CatalogRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.cs index 31b6bff50f0..447d7dcd283 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs index c80bfb35cf4..f7e5c1fe88d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CustomCalloutExtension body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index 5a7e14966fd..2257997ecfc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -29,8 +29,8 @@ public CustomCalloutExtensionItemRequestBuilder(Dictionary pathP public CustomCalloutExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. - /// Find more info here + /// Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. - /// Find more info here + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. - /// Find more info here + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(CustomCalloutExtension body return await RequestAdapter.SendAsync(requestInfo, CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. + /// Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,10 +112,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. + /// Update the properties of an accessPackageAssignmentWorkflowExtension object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CustomCalloutExtension body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -192,7 +193,7 @@ public CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.cs index 27f87d8813f..7db8a3f7a34 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index f4bd878d042..8e68ecec1d3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index aa551151a94..503f96d2e14 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs index d87d23af22c..0f01ad28e77 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs index b34ad98dfb9..ecfcd992473 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 2fae80c40a4..9d70661efdc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs index 5bf94793648..9882d7bf457 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 69e43a93ce2..0bc3e24dbde 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index f921a14bf5a..a8e3d58e764 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 6f3531fe8e2..37fbf2689f3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 4f87a3e532c..eb14b2b89c4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index 22d87c28b1e..8a72e484800 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index b19697fad6f..5a18f5ef24f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index 4300b90bfa8..bfb52dd4af1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 9b7eef831b6..b79ad1247b8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs index 5a9c2cafe0c..9fdb9093559 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/ResourceRolesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.cs index 1a8e60dbf46..e0206cebf9c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 90ff6d2a8dc..efbaa559f9e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 44907996e8e..67c8523d74b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs index 5b3ca9e83e4..5e566515d48 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index 35868c69b3b..b72023ad71a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index fc31402cac5..33dafbeccb2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 76e577e746a..67d4f2bd3a0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 60007fc3557..037012b8139 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 51be92f3198..58067b9c4b9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 2fc9a2c2c87..da97b8c6444 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index a755d27e42a..606894f6b68 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs index db8ae37789d..d4f8750d3fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs index aed62e61a68..2369d82e031 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index f9acd6916c0..d88f60d2158 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs index 116dcc73e15..70b82f70def 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.cs index 875341b099b..37beb0f508a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/ResourceScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.cs index aab768697d5..018e344fe92 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index c9253766127..cfbc899721e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 07b2fa2e159..8cf842fcbe7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.cs index 223f9a004f6..a9c2e3007af 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 65122874dec..56aa08dbdeb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index ae68a598729..ce9c09c086e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index 908ddc8230e..1617862e4de 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index c43627fbd69..15bb3abf0d8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index d7364779a79..6fd32e5f4c1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 04b6325d940..4b32092d523 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 0586f1a90b5..c07a88ce066 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index b468357d7e2..ec498bb376a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.cs index d03bc9c2ba2..1cf20b33d7d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.cs index 930bba63531..83a36a67641 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index da03f71e25d..ca42c527fcc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 9b3dc456a9f..a40bfdfeb34 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index ceca0d01925..6919599fdab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index c55fb683ad4..b3efcd52844 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 8d77c0d6be7..6d37f5d9e1b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index b2c1b9098ed..b9f3f781405 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index ed2a371d092..13bbf6bbdb4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index 4dc2ac03e16..8feda2f0892 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.cs index 0d588e704f3..ac17bd6d1db 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs index 76b15942393..39b440bd0f0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/ResourcesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResource body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 7e5808fbe5e..96643bdc0fc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs index e87c90b4307..29bb1ec5e61 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.cs index da8fbd5c388..076596d397a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 11b5a1f2bcb..73e3b2b27aa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index a2a3192ae70..ffa409064d9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index b4f2bf6b093..6fffb71c7d5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 5bac538ba8d..1a3773fdd60 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index ea775035b17..06648dc4329 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index fbb9f4ea8b5..6d2b2dc7e26 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index ccc1af40302..ec893b9ffa9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 1afd64c23ce..2dc6c4fb623 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.cs index 383a65fdf69..6630483cfbb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.cs index c9a4ca8c643..a6c46809444 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 35049f496e7..515b0a05e72 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index edc48a6bccd..dea2b6f572a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 415b2595a16..5bede91ed27 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index 14e7cd6e422..0a7ab4eccdd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index a4d438d59c4..2658fce5a34 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 4f90f469443..c33574af96e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index dc0fde42df2..62718d7e551 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index b8f839c0619..bde502dfb4a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.cs index 6e5016bf3fe..4e7ec29ab68 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs index 651cbb8518a..863944a6780 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Actio return await RequestAdapter.SendAsync(requestInfo, AccessPackageResourceRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is available in the following national cloud deployments. + /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add a Microsoft Entra group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add a Microsoft Entra application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is available in the following national cloud deployments. + /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add a Microsoft Entra group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add a Microsoft Entra application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.cs index 47009fc3299..197b95d683d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs index 9bb3d6f0b50..3001ac427ec 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/AccessPackageResourceRoleScopeItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRoleSco UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 56358954d44..3096c990e36 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs index 6806945d9a9..d41fdb0309c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs index ed6530ebe10..704e1c6b145 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 4959e33e8b9..f853657300d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs index 1fd458ab355..30ad97dfbee 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs index 5f031ba7a15..84905821efd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 7c1960fce3f..69da493a192 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index cf058874da1..c17c72e2a1a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 774096835fd..6f35b627688 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index e97a5a703b7..84418669045 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index cc3959e12e7..ec8179b112c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index 800e8457474..146a0dec5ee 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs index 560f122b8f1..35cf4f035a8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs index f1d6e533921..ff07021406d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/RoleRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 81f398596a0..d2dbb73a417 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs index 95da8abb950..9ac4895bcd1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs index b542f3a5f38..41b6167e875 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 68da1fbc549..51fb6b5f199 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index cb8a72be075..b622f2d56f2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 28998db1417..0d8b52d5cfb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index 99826293856..0f1825b39ed 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index c9c48943379..f169b0656ae 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index 79b5abdf90b..d8879455ca4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs index 4915e7931dd..4189ae630a5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs index f2b16a13b7f..afa81d3ed97 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index feaca60554e..c7908ae9308 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs index fa266337489..158dd35a1d5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs index 1679db41ab2..cbff2c40f6a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/ScopeRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs index e9e5867de62..6c287e57508 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/ResourceRoleScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRoleScop UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRoleScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.cs index e9f288b2d49..5de487d80dc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index fefe18be4c6..6237ae723c7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 99cdeae5e1b..74495a54835 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.cs index 639863258b1..cfa5b259a4b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index eaf95aaab42..10fa6673c82 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index c785542b70c..90810170ec9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index 842a3bb6a4b..b2c3b58af47 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs index fe9ea593f5b..ee9def92a5c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 40a22180cd4..d0fd1644da2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index e1b3c930656..56e966dd0cb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index d1d8b09fbc9..a7aa42dd53c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs index d67fc645769..4f0ed9509e1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.cs index 8e76e6eb2f7..0021010b29b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.cs index e5b6900a577..de938dd12b4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs index 40a1817af0b..43d450e0ee2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceScope b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 64ab6f163c9..c45f0e519bd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index ce9d7cb0cd8..e9c9d3c531c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs index a7749e6dbd2..3d7a89f222e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs index 763247e044b..1f5a332665b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResourceRole bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs index 249a3efd63d..7152f81e6e5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 1ba9e689980..a657917da21 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AccessPackageResource body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs index 0a2957475c3..5fb88a77eb2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceRole bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RolesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.cs index 239f756c261..193af3d69bc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/ScopesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResourceScope bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.cs index cb9368c5814..b23bbbc9a0d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AccessPackageResource body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs index d77ad325e5d..7826092ed7c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Settings/SettingsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(EntitlementManagementSetting UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs index fdff5be6418..4cd681003bf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/IdentityGovernanceRequestBuilder.cs @@ -114,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -142,14 +142,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Ident UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityGovernanceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.cs index a6899b5da21..1d7fb3073aa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs index 8b7a8c33ff6..7a8170be2e6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/CustomTaskExtensionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CustomTaskExtension body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomTaskExtensionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs index d4ecc9798e1..b28956fc334 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -39,7 +39,7 @@ public CreatedByRequestBuilder(Dictionary pathParameters, IReque public CreatedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/createdBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public CreatedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public CreatedByRequestBuilder WithUrl(string rawUrl) { return new CreatedByRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. /// public class CreatedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index bc6388d9afa..8daeaa43504 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 32bcfbcae4d..2ea2a6f1043 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 50945e2be51..9fdfe2ded3b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs index d2cf06582cd..9a2c134bc14 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/CustomTaskExtensionItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(CustomTaskExtension body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomTaskExtensionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 11797370f9f..5b47bb6ba7b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -39,7 +39,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters, I public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/customTaskExtensions/{customTaskExtension%2Did}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public LastModifiedByRequestBuilder WithUrl(string rawUrl) { return new LastModifiedByRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index 970e0bbdc4d..4a0a107dde6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 4b89264cb1a..1c11c139ef7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index c914ddd6cdc..04c0d17f9d2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/CustomTaskExtensions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs index 845c4b682a0..2da0dec4af7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/DeletedItemsRequestBuilder.cs @@ -93,6 +93,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -111,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.cs index 9780685a6ee..cdcf6ef6087 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs index 934ea464a8e..60cee5974c7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index 14b8c5aeebb..67d16be08ca 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 49e21ba0e77..2d805e815bf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 441f7ecf452..c31bb5f04df 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs index f2143cdcdc4..ec4b2cb7569 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs index 11b9e7e3780..515091081f0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs @@ -42,7 +42,7 @@ public ExecutionScopeRequestBuilder(Dictionary pathParameters, I public ExecutionScopeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/executionScope{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -94,7 +94,7 @@ public ExecutionScopeRequestBuilder WithUrl(string rawUrl) { return new ExecutionScopeRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// public class ExecutionScopeRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs index b18ea223347..a2620ff3be5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs @@ -29,7 +29,7 @@ public UserProcessingResultItemRequestBuilder(Dictionary pathPar public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/executionScope/{userProcessingResult%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -81,7 +81,7 @@ public UserProcessingResultItemRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index b1e157a03ab..fd63440484b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -39,7 +39,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters, I public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public LastModifiedByRequestBuilder WithUrl(string rawUrl) { return new LastModifiedByRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index 9d6540bec20..8d7acecdab6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 2531e028127..1ec0b39a75f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 71d7b3acc62..72f3aee8aae 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs index f328aa3324c..3d777a4245d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs @@ -47,7 +47,7 @@ public static ActivatePostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"subjects", n => { Subjects = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("subjects", Subjects); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs index ed46f78ba15..a47bfec61f6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ActivatePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceActivateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs index caa073056c7..9399c24dfac 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateNewVersionPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"workflow", n => { Workflow = n.GetObjectValue(Microsoft.Graph.Models.IdentityGovernance.Workflow.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("workflow", Workflow); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs index 1ae9df1046c..1e7e36dc197 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateNewVersionPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs index d36408bfdec..fee59a812c3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public MicrosoftGraphIdentityGovernanceRestoreRequestBuilder(Dictionary - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is available in the following national cloud deployments. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is available in the following national cloud deployments. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.cs index 485a5ef32bd..6a5217be5f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 4d866fdddc8..f76066eb119 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -74,7 +74,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 5197572cb60..1062eee29e2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 04688018a66..754ca1b68a1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 1b87a9c63b6..d59c253475b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index d15c0316a6f..e7e4f4f5eb4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index fd85a8ef25f..59730fbfaee 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index e70af4f619d..ae5128ffa00 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 2d7c8a17278..54794c1b9d8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index d008e2f4fba..86f3aae87ce 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index fb0c27f54b2..5716c515562 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index ae6f0b6c4a2..fc95eaffc7a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs index 61864d8bce5..86877800688 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 581aff4d4c0..371a9b28755 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 14bde14b830..a5e1f920c42 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 31c693bd62c..ea0b0765b38 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 8acac6e6114..427c187e22d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 4a815cacde4..c13b6ee8002 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 0d16e78095b..7f613347fc3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 7fe59ce12d5..164704614f4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index a940c98a994..01cc38efe55 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index e994446a0c2..1d2a9e75199 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 2904cd7c135..cfcacd9640f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index aa38fc26f9c..af09dc0ce01 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 36e72052497..0a9be076221 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 5c4ccc39511..97bb5182c3b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 4bbc39a88b4..0411bfedec8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 7a69e7b9552..0a4b33d801e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -74,7 +74,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 8771b236e68..17a8e9637e3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index e8560319223..b1824ac0d99 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 3c601bd1406..a18edb9383f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs index ea60099ed54..472cca1b7b7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs index cb38183f89e..703f503dc98 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs index ac6a6786d9b..98a88f489da 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs index 767b881fd3a..8436e8a40b0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 610b2669d1e..621a7b1cfc4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 064a30ac397..bbc907c6e7f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 83fd9aaf0dc..2de4d329b2a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 833b7adf93e..cba3767aa83 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 472b66fba1b..09b70f54652 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index b0dab8fedff..b8bcb3b55f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 28267314923..74c1925f644 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 8c408881809..16275a7610b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index bd16462df7c..05f275a2cd9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 31247a2c4c3..eaf1aaf4dc0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs index 164d93caf60..70aaeb2abd8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index bbfdc7a84c6..e2aa644ae8c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs index 22b712cf765..cdaf861e384 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.cs index 34f2daa38be..07f459160a3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs index 86109efd685..23d35612a18 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 8fb7454c06b..4c45333e8f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index d1e5f5d0aa6..b58bec3badb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 3b147a74f3a..e7129a30303 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 2ca86430f76..95112fe7006 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index be84435df93..d169601eb70 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 21c21f92a99..e419753084b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index ed23a06b81d..40cd56924b8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index f0b2252d742..73072219109 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 7009d5b082e..eff9c226e74 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index f1f463768f2..e88527aacc0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.cs index 5702d6319d5..a961ed10f29 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Tasks/TasksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs index a7d298c1947..8b29789b5b9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index abe2832e675..bfdaa0536ef 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c52469434fd..743762c1dc1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 761dd492ab8..316aba6bed2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 28724fd958a..60b31e8db60 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index dcf9e2a9d4b..8281be472f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index b80a8d01adb..645f8fa868e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index e519ea4a791..2ef925a5252 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 8ca3474a2cb..00d0f3c8518 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 7d6e14f2709..1c3e606fa14 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 2f54b25de77..dbde238b8f4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 52c4206e14c..6cc1fb166a8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 5ff62f18620..9008216ed5b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 3a07416b743..96bfa0d7d20 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 3421c3f3f79..4c351f3f804 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 49f3f2683b1..5c575d1bb15 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 98ae012303a..c7b8f6a62bd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 66a60073993..27b7d61be43 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.cs index df82c851607..b6e34cbe863 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs index ec61199053c..95665a2ae16 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index d30f703e745..98b776ab32d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b483e1f033c..ec70b9526bb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 0dc6bd7204c..cb953315b8c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index bd261c24278..721233478b4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -39,7 +39,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters, I public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public LastModifiedByRequestBuilder WithUrl(string rawUrl) { return new LastModifiedByRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index c1fedb1f0f4..80750e0ef83 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 34fa0872873..2d9cd9e0461 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index d97884a1c8a..d4509e233ed 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs index 7b66a5fa686..81701492827 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs index 36400256b1e..536b92e8757 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index d26ef033df2..01b587f664c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 50f18369467..65a007cd1ac 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 48f2bb2c866..4b9164a7c16 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 1d37f3a9d69..18d547c293f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b97263213a8..dcaf1476978 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index f69ec17961c..d7ff5938d03 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 54853066950..2df6064c737 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 98b11b1646d..3ab9aeb7544 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 5a626eea596..46543fc5742 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 3a6a4465521..bcaff3aaead 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs index 79587ae3712..30562d1caa2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs index 6e45484224e..c46c21b4edf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs @@ -79,7 +79,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs index 69a1fe74883..713150b9746 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/VersionsRequestBuilder.cs @@ -85,7 +85,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs index d47cb0735b4..e2484fcb2f2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -145,6 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -163,7 +164,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs index 48aab03b242..7cc80de05b0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/WorkflowsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.cs index d3f5f88532b..572284d7ccd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/LifecycleWorkflowsRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(LifecycleWorkflowsContainer UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LifecycleWorkflowsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs index 27bfcc8d346..4d9523dd117 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Settings/SettingsRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,14 +114,14 @@ public RequestInformation ToPatchRequestInformation(LifecycleManagementSettings UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.cs index 45d524294b8..83716d6a5f6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs index ec28fb12e89..474a315e033 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/Item/TaskDefinitionItemRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs index 011151096cf..e48161de728 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/TaskDefinitions/TaskDefinitionsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.cs index 9f2b09cf857..988655a4840 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.cs index d629ef4d12b..df9ada4d3ce 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs index 8ddfe871b93..39dfb0b1e5d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index ac3282f089a..a4473b40a1f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index fbb2199918b..874b997e95c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index f45cab7109b..72ace94786b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 2f70c2071e4..4caf0b2d07d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 547779c7eeb..4c8bd8017bf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 3281df55690..5e8dcbf9342 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 33b7981ee0a..4f69f7935c6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflowTemplates/{workflowTemplate%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 9f9f5031afc..37e4ac5bc3a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 77e49a8083c..9b6608a9ecd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 9722339ac25..54b57bf0d86 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs index 3dfdca0e6f9..3de9b4acd86 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/Tasks/TasksRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs index 130fbf5a404..ace65781cbd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/Item/WorkflowTemplateItemRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs index 5a3e0794a85..309ceb83d2e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/WorkflowTemplates/WorkflowTemplatesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.cs index 93626efba5c..6ff720ce0ba 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs index 162a94dd447..e758a35e2a4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index 2cadc4d392a..8ab56cd9a2b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index addd31af092..a272a44dc33 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 4c722b79a40..a33478cd2d2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs index fc0108bd4ef..7e84978c0f2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs index cc1c8fc649c..b155cabb521 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/ExecutionScopeRequestBuilder.cs @@ -42,7 +42,7 @@ public ExecutionScopeRequestBuilder(Dictionary pathParameters, I public ExecutionScopeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/executionScope{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,7 +61,7 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -94,7 +94,7 @@ public ExecutionScopeRequestBuilder WithUrl(string rawUrl) { return new ExecutionScopeRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// public class ExecutionScopeRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs index b60fc516099..6e595a7e99c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/ExecutionScope/Item/UserProcessingResultItemRequestBuilder.cs @@ -29,7 +29,7 @@ public UserProcessingResultItemRequestBuilder(Dictionary pathPar public UserProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/executionScope/{userProcessingResult%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, UserProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -81,7 +81,7 @@ public UserProcessingResultItemRequestBuilder WithUrl(string rawUrl) { return new UserProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. /// public class UserProcessingResultItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index b650c57ef12..3a569837457 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -39,7 +39,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters, I public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public LastModifiedByRequestBuilder WithUrl(string rawUrl) { return new LastModifiedByRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index a3f5b95edc2..0aecffe4aa7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index e05de09c2a5..24e96f29a80 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index c2ae0a08ade..63fadee53f8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs index 85ecbc72a88..800894a3604 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/ActivatePostRequestBody.cs @@ -47,7 +47,7 @@ public static ActivatePostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"subjects", n => { Subjects = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("subjects", Subjects); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs index 36dd7c9aed4..f1abe64cc8f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivate/MicrosoftGraphIdentityGovernanceActivateRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ActivatePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceActivateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs index a06fc2fdd19..94b494cbde3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/CreateNewVersionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateNewVersionPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"workflow", n => { Workflow = n.GetObjectValue(Microsoft.Graph.Models.IdentityGovernance.Workflow.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("workflow", Workflow); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs index 3849fe64642..ed6adf3f3d2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceCreateNewVersion/MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateNewVersionPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs index 2fe09428e9c..829cc80f723 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceRestore/MicrosoftGraphIdentityGovernanceRestoreRequestBuilder.cs @@ -29,7 +29,7 @@ public MicrosoftGraphIdentityGovernanceRestoreRequestBuilder(Dictionary - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is available in the following national cloud deployments. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, Workflow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it. This API is available in the following national cloud deployments. + /// Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.cs index 3caa61b768a..cb53126f690 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 6d0420cf1d7..6fa250851e4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -74,7 +74,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 08ff1cfd5c5..5374a0addb3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index ef9fbbb465c..51b52afea16 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 657cc4b2238..95166d7ba4b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index bd898f1a917..5857f52c265 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 4e5db9def7e..dbea449e0a4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 94b17f9c08b..8cd57d0d0ee 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 54d28dd2aa1..d286bfa2c97 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index b3e752d4a43..023c12b5e2d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 6d867478712..749c948f6b3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index d1a76fbcdff..5e24b1e0cf8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs index 4d646907234..beed45bc7fc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 571f9809345..ae85e86e164 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 5a133c9fde0..9277b1f8f8f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 4b5f91014ca..9965111326c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index d19e77dcd98..c0ad9f288f9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 4d47f5c0c96..8f93d58dc87 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index d160fea4440..26afa84086f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 6010d850a00..0a821df6d51 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 270cc919b26..0891d71c190 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 6a217413fb5..f0aed5a22cc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index b090cb1351e..37276e494cb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 2bba8fe1bec..42463e4ff00 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 0e9aa85e1f0..b6f5115ec21 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index 9c9ba681e5a..e5027002553 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 614b1d60fa0..03b454fb1c1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 265957148f0..c5cae85c579 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -74,7 +74,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 48c6bb80182..058ba639f1b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 4d92aaf38ed..64507393dce 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 8cf9a472fd1..1a20cbb3f45 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs index 3aed545afc0..21a94bb3f68 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs index fee2a785dab..ec1f22e54dc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs index ccee105dc14..a2b0dab4fc4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskDefinition/TaskDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs index 8789742d9b7..bae71b5890f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 7729be3d7bf..a9d81162e18 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index f21c61277f5..288d4329551 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 4f9cbd47d96..2f5aa1f5d69 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 509c40b219d..95ab3f54eff 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index fa4a457c97a..c7d1a51e59e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index afd3417d115..d96890be6bc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 8bba0afa1ce..4c51514ecb3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/taskReports/{taskReport%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 6aa4a279cd0..808ab1202af 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index e8e371c7ade..5c05165e7d4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 59bbefde42a..4217f6d603c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs index 52cc270fdf7..42f9e9c2bd4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/Item/TaskReportItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 85b18277664..5de8019a6c2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs index 1e67603dc5f..cc85cbd264c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/TaskReports/TaskReportsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.cs index b3c05752804..2953b2eff38 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs index 799f7a2c01e..e6c8a97b379 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 2843a9b5afa..ecc06a40e13 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 148837c0463..d669fae55b6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 6e24dd2ede7..698048b1697 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 7ca70bd06df..e5cb31f3a20 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index a933549936f..1322c9d5f1d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 6858ddfd8b3..1660b37c8d6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 3d7c4f8d1ed..4efd6a83ded 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 8eb725fdbd0..7c4ab107e35 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index b6b33f8ba22..e2270c0cbfd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 31221e4e4a6..428ca915211 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.cs index 9ce79526136..32b0d6ff984 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Tasks/TasksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs index 1c0deff67b8..e6be0ab0b49 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 703d8442dcc..edef04d8c95 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index dff881c78f3..b8dde4191af 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index ff180185801..0069fdfe7b8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 157e8274a7e..410f47471e7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 83cff6186b4..4fcb3987e90 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index a81d3de18fa..ee71f590ccc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index aa36cbde397..99a29ea4aad 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index 6432e6c3b56..610f13ac638 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index acdf0639739..02de2f2596a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index ac36fc45f4f..cf975c46fd2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index cf9a2a6f53e..97f2e0d2ef7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/userProcessingResults/{userProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 2b6ec6ff6f2..8a36ee9d832 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index c95626145d0..a4e5cb5493d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index 3a5efa2046a..5b4895b095d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs index 61f965b9811..a241c791eab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/Item/UserProcessingResultItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 452e36296ee..d85e9c413b8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs index 46d05a4261a..e4711fc4cce 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/UserProcessingResults/UserProcessingResultsRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.cs index e7ee3355b35..6120426b990 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs index 90ceb0e8c92..50df069e7b6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/CreatedByRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index 2095b6b7943..69e22943d78 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c12937c616e..95aee6ae429 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 10f38883e15..305d95a7cc7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/CreatedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index b91f303881c..17b1b9d21a3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -39,7 +39,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters, I public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public LastModifiedByRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public LastModifiedByRequestBuilder WithUrl(string rawUrl) { return new LastModifiedByRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs index aaab53ccf62..aaaa3475e54 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 5e2c899671b..82f794c7983 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 57b3a17b065..3f6039ac734 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs index d8ae107acc9..05492fd4552 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs index 86b1a3b082d..70fb3f63733 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs index 68de2700ad2..1afd1d0f8c7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs index 2dda1baa993..54ad2f10bef 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs index 7107d5c4025..9a439838464 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -75,7 +75,7 @@ public static ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetObjectValue(CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("data", Data); writer.WriteStringValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs index bcf8f991692..43c93b109a5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 1a0b2469b69..621e50cbf27 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 3ffaba978ea..0ad70a04fb7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs index 5d3f68bce48..07a7e708ea1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -39,7 +39,7 @@ public SubjectRequestBuilder(Dictionary pathParameters, IRequest public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/tasks/{task%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -58,7 +58,7 @@ public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -91,7 +91,7 @@ public SubjectRequestBuilder WithUrl(string rawUrl) { return new SubjectRequestBuilder(rawUrl, RequestAdapter); } /// - /// The unique identifier of the Azure AD user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. /// public class SubjectRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs index 26c47a2f3e9..718c8d40659 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs index c8eb2c547dd..879cdf8bd8f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs index ea2997a24b3..c11019017b0 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs index 16b66cae9d5..1e25cb17c00 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/Tasks/TasksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TaskObject body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs index 57a795d815d..75b0e8d72a6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/WorkflowVersionVersionNumberItemRequestBuilder.cs @@ -79,7 +79,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs index edde346e739..400ed15ae3f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/VersionsRequestBuilder.cs @@ -85,7 +85,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs index 352ab8b35bd..0f2852bf81b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -167,6 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -185,7 +186,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -213,14 +214,14 @@ public RequestInformation ToPatchRequestInformation(Workflow body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs index ae5022d0c1c..dbb098758ad 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/WorkflowsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Workflow body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs index a8771d6707f..08d56919f0d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/AssignmentApprovalsRequestBuilder.cs @@ -106,7 +106,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -134,14 +134,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Approv UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentApprovalsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs index 55d24564619..00a4a61ae46 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 4058c2fad9a..fab28fb7e5a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index f6fd9230500..741960a8adf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs index 4282935a46a..14fc1dcddf7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/ApprovalItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Appro UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ApprovalItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs index e400c2390c5..11390c44092 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs index c4476c2a6a7..511d2be6804 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/Item/ApprovalStageItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ApprovalStage body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs index 6a47266df85..1cc21cef8e2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentApprovals/Item/Stages/StagesRequestBuilder.cs @@ -42,7 +42,7 @@ public StagesRequestBuilder(Dictionary pathParameters, IRequestA public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentApprovals/{approval%2Did}/stages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ApprovalStage body, Action(requestInfo, ApprovalStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ApprovalStage body, Action @@ -144,7 +144,7 @@ public StagesRequestBuilder WithUrl(string rawUrl) { return new StagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Azure AD entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. + /// List the approvalStage objects associated with an approval. This API request is made by an approver in the following scenarios: In Microsoft Entra entitlement management, providing the identifier of the access package assignment request.In PIM for groups, providing the identifier of the assignment schedule request. This API is available in the following national cloud deployments. /// public class StagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs index 27aef9fcf65..c6a30265c14 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/AssignmentScheduleInstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Pri return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignme UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentScheduleInstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -153,7 +153,7 @@ public AssignmentScheduleInstancesRequestBuilder WithUrl(string rawUrl) { return new AssignmentScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentScheduleInstance objects and their properties. This API is available in the following national cloud deployments. /// public class AssignmentScheduleInstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs index e3be9af5f9b..f0d50a59efe 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index c70c917ec76..55f752f6433 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 2e160a5d41d..b93071014e8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index 0df9c5f1c8f..af2c6b782fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs index 9517a820ce4..ed6f1c384d8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index eea8a762087..3bff14e7b05 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index d51be34acc0..49658243441 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs index dd87755b4cc..d90e7a48ebd 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs index 9292f5053fb..2e764210a82 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleInstances/Item/PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -125,10 +125,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignm UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -205,7 +206,7 @@ public PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderDeleteRe } } /// - /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleInstance object. This API is available in the following national cloud deployments. /// public class PrivilegedAccessGroupAssignmentScheduleInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs index 3f9920194b3..4d2905aab04 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/AssignmentScheduleRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new privilegedAccessGroupAssignmentScheduleRequest object. + /// Create a new privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(Priv return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new privilegedAccessGroupAssignmentScheduleRequest object. + /// Create a new privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignme UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentScheduleRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -154,7 +154,7 @@ public AssignmentScheduleRequestsRequestBuilder WithUrl(string rawUrl) { return new AssignmentScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentScheduleRequest objects and their properties. This API is available in the following national cloud deployments. /// public class AssignmentScheduleRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs index 9a76bc46744..ae0db51758b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 3ed7f818a83..8d438de6605 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 68601e79435..ae7c02c3d09 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index e6560fa1f1d..1c4cc1aedea 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 2ae0f0ac6eb..4d51040a630 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Cancel an access assignment request to a group whose membership and ownership are governed by PIM. + /// Cancel an access assignment request to a group whose membership and ownership are governed by PIM. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel an access assignment request to a group whose membership and ownership are governed by PIM. + /// Cancel an access assignment request to a group whose membership and ownership are governed by PIM. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs index bb574600342..d465f549de2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 6caec0444fa..b026cb06c28 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index bf502eacfee..b783949208f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs index 18e56494dec..cc8bcc4163c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs index 2a2c94a4cef..f842fcf442a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilder.cs @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -135,10 +135,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignm UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -215,7 +216,7 @@ public PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderDeleteReq } } /// - /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentScheduleRequest object. This API is available in the following national cloud deployments. /// public class PrivilegedAccessGroupAssignmentScheduleRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs index 00373f66986..eb5bc9eb4d6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs index 557e45eaa73..8288483028d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/AssignmentSchedulesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(PrivilegedA return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupAssignme UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignmentSchedulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -153,7 +153,7 @@ public AssignmentSchedulesRequestBuilder WithUrl(string rawUrl) { return new AssignmentSchedulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. + /// Get a list of the privilegedAccessGroupAssignmentSchedule objects and their properties. This API is available in the following national cloud deployments. /// public class AssignmentSchedulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs index b0e9a77f58d..920e799b393 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index fac8dc93e95..6bf8d6be86e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 6f4eb49ebf2..a8bf3a10fb1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index 93a47753959..7452c279ce2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs index f16e24cd731..97a902b13a7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b846e0c4bdc..cfab61be52a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index a629d89174b..2be819e746a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs index 147af00c901..7c2d737f032 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs index ffe0e81f2c5..c35cc11cbfc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentSchedules/Item/PrivilegedAccessGroupAssignmentScheduleItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -125,10 +125,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupAssignm UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -205,7 +206,7 @@ public PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderDeleteRequestCon } } /// - /// Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. + /// Read the properties and relationships of a privilegedAccessGroupAssignmentSchedule object. This API is available in the following national cloud deployments. /// public class PrivilegedAccessGroupAssignmentScheduleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs index 7fcf3108bbe..3ae6f993d18 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs index cf6ee58f5d0..d49c72e0b59 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/EligibilityScheduleInstancesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Pr return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibil UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EligibilityScheduleInstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -153,7 +153,7 @@ public EligibilityScheduleInstancesRequestBuilder WithUrl(string rawUrl) { return new EligibilityScheduleInstancesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilityScheduleInstance objects and their properties. This API is available in the following national cloud deployments. /// public class EligibilityScheduleInstancesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 1289243bf93..596d755e399 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index d9c5c6ff950..3c40f8890e2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs index dad71e1a647..25e5a506266 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index fc098fbc3aa..fd42ec9bccb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index df1ed45861d..209138b903d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs index e4c10fedc4d..02268dbab5d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs index 09646844331..45bbb5b8929 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleInstances/Item/PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,10 +120,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -200,7 +201,7 @@ public PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderDeleteR } } /// - /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleInstance object. This API is available in the following national cloud deployments. /// public class PrivilegedAccessGroupEligibilityScheduleInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs index 0be539f69af..6095ae2b8ed 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs index e2a638cf891..64b217bf02b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/EligibilityScheduleRequestsRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -71,7 +71,7 @@ public async Task(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new privilegedAccessGroupEligibilityScheduleRequest object. + /// Create a new privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -93,7 +93,7 @@ public async Task PostAsync(Pri return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new privilegedAccessGroupEligibilityScheduleRequest object. + /// Create a new privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibil UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EligibilityScheduleRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -154,7 +154,7 @@ public EligibilityScheduleRequestsRequestBuilder WithUrl(string rawUrl) { return new EligibilityScheduleRequestsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilityScheduleRequest objects and their properties. This API is available in the following national cloud deployments. /// public class EligibilityScheduleRequestsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index a41794e6792..ff8e2154b70 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 6c3410db409..d35ab92c84f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 0132db23c57..32b3648e910 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -28,7 +28,7 @@ public CancelRequestBuilder(Dictionary pathParameters, IRequestA public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/privilegedAccess/group/eligibilityScheduleRequests/{privilegedAccessGroupEligibilityScheduleRequest%2Did}/cancel", rawUrl) { } /// - /// Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. + /// Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. + /// Cancel an eligibility assignment request to a group whose membership and ownership are governed by PIM. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs index 8a5edc074d5..5abbaf33d35 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b8ab5514691..841fdc1cf22 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 99296644846..edd45066cab 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs index 7b8b83637f4..6a2c6508022 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs index b0a22bd9671..8a0814bcebc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -130,10 +130,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -210,7 +211,7 @@ public PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderDeleteRe } } /// - /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilityScheduleRequest object. This API is available in the following national cloud deployments. /// public class PrivilegedAccessGroupEligibilityScheduleRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs index fac957d51e5..123adf4b952 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs index f5ecf956c53..d5e8b36f68b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs index 939ea19a59b..86d4673db9c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/EligibilitySchedulesRequestBuilder.cs @@ -51,7 +51,7 @@ public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); } /// - /// Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Privileged return await RequestAdapter.SendAsync(requestInfo, PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(PrivilegedAccessGroupEligibil UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EligibilitySchedulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -153,7 +153,7 @@ public EligibilitySchedulesRequestBuilder WithUrl(string rawUrl) { return new EligibilitySchedulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. + /// Get a list of the privilegedAccessGroupEligibilitySchedule objects and their properties. This API is available in the following national cloud deployments. /// public class EligibilitySchedulesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index a3d635f5f5b..3f5d2385bd2 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 4983a227429..23c474cdd5d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs index 5bc6b17f8b7..fce4eab9870 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index bb248022573..03bb415fa86 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 166d4913f5d..c3d31b71317 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs index 62e3dda34ea..4a81ad59c8c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs index 57c2eb7474f..66a0d3dbd27 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/EligibilitySchedules/Item/PrivilegedAccessGroupEligibilityScheduleItemRequestBuilder.cs @@ -58,7 +58,7 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -120,10 +120,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroupEligibi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -200,7 +201,7 @@ public PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderDeleteRequestCo } } /// - /// Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. + /// Read the properties and relationships of a privilegedAccessGroupEligibilitySchedule object. This API is available in the following national cloud deployments. /// public class PrivilegedAccessGroupEligibilityScheduleItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs index 4bc02952f08..520a07ad7c7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/GroupRequestBuilder.cs @@ -144,6 +144,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -162,7 +163,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -190,14 +191,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessGroup body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs index f632aeb2fd8..f89d5be4d9c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/PrivilegedAccessRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(PrivilegedAccessRoot body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivilegedAccessRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index 14ba921fd64..8c68cc7542b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementAcceptancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.cs index 25594d9d90c..41a708ad30d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 7e457ac2916..2755098ae4e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementAcceptanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs index 1a934f81f83..878b44fc97a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/AgreementsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Agreement body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.cs index 1c1e66ff6ee..4ada484333b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs index 08fc37b92d8..69d56a0ff06 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs index d41f9a733c6..641a6946591 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 438ff2ee930..745dea4acdf 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementAcceptanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs index aecde7bb9a6..4a2ba39dff7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Agreement body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs index 6f42b8ff211..a949a772b24 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFile body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs index 782240bb3cc..e627e28daf5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs index 3f076fa84ed..69e65523046 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileLocalization bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileLocalizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs index 5cd073de969..6a8a5e88208 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs index a8f861144af..83b511b5b3a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public AgreementFileVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class AgreementFileVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs index 8992be50699..d3790291768 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(AgreementFileVersion body, Act return await RequestAdapter.SendAsync(requestInfo, AgreementFileVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -143,7 +143,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index 592895a714e..49af4abd7da 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LocalizationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.cs index b7bc562d672..d9ebe6b87c4 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs index ed33db45110..5691dd372e1 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/FilesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs index fc0cd67686d..65934812a30 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileLocalization bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileLocalizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs index ba087f9f87b..c1127c32373 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs index b1ef0995f9c..e765aad7223 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AgreementFileVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public AgreementFileVersionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class AgreementFileVersionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs index c78030ce35a..a0025155bc9 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs @@ -42,7 +42,7 @@ public VersionsRequestBuilder(Dictionary pathParameters, IReques public VersionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(AgreementFileVersion body, Act return await RequestAdapter.SendAsync(requestInfo, AgreementFileVersion.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -143,7 +143,7 @@ public VersionsRequestBuilder WithUrl(string rawUrl) { return new VersionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// public class VersionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.cs index e710ff45c1a..95a10057aaa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/TermsOfUseRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(TermsOfUseContainer body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TermsOfUseRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/IdentityProtectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/IdentityProtectionRequestBuilder.cs index adb16219f2c..c20b13f4d4d 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/IdentityProtectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/IdentityProtectionRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPatchRequestInformation(IdentityProtectionRoot body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityProtectionRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.cs index f39a1f73d8e..ca9ab811c0c 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs index 59b5b937a6d..12d742ce580 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(RiskDetection body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs index e997200c7b4..bf01d0d6cd1 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/RiskDetectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(RiskDetection body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs index 65aa8ad98aa..aa2000f6fe0 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs @@ -46,7 +46,7 @@ public static ConfirmCompromisedPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"servicePrincipalIds", n => { ServicePrincipalIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("servicePrincipalIds", ServicePrincipalIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs index 998d6e5e5fe..fc7407776e5 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ConfirmCompromisedPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConfirmCompromisedRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.cs index d8a28a9fec7..31592e4d726 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissPostRequestBody.cs index 36009fa1b30..22b647248d7 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissPostRequestBody.cs @@ -46,7 +46,7 @@ public static DismissPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"servicePrincipalIds", n => { ServicePrincipalIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("servicePrincipalIds", ServicePrincipalIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs index e11277f8bb9..d8e56a97bf7 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Dismiss/DismissRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DismissPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DismissRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.cs index 28f01cbd927..2796f9f8a8c 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs index 484735ae385..5082823a0b9 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/HistoryRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(RiskyServicePrincipalHistoryI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HistoryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.cs index 2fba21c3924..e004b3c27f5 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/History/Item/RiskyServicePrincipalHistoryItemItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Represents the risk history of Azure AD service principals. + /// Represents the risk history of Microsoft Entra service principals. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the risk history of Azure AD service principals. + /// Represents the risk history of Microsoft Entra service principals. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(RiskyServicePrincipalHistory UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RiskyServicePrincipalHistoryItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public RiskyServicePrincipalHistoryItemItemRequestBuilderDeleteRequestConfigurat } } /// - /// Represents the risk history of Azure AD service principals. + /// Represents the risk history of Microsoft Entra service principals. /// public class RiskyServicePrincipalHistoryItemItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs index 50d2f305a9f..be50cf94243 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/Item/RiskyServicePrincipalItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(RiskyServicePrincipal body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RiskyServicePrincipalItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs index 1389cfda94f..282748ef93e 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyServicePrincipals/RiskyServicePrincipalsRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(RiskyServicePrincipal body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RiskyServicePrincipalsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs index 7ce1cc6c920..272a4bb51ab 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedPostRequestBody.cs @@ -46,7 +46,7 @@ public static ConfirmCompromisedPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"userIds", n => { UserIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("userIds", UserIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs index fac5f0ad8b2..51922d68eda 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/ConfirmCompromised/ConfirmCompromisedRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ConfirmCompromisedPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConfirmCompromisedRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.cs index 1a9d284fd12..90825860439 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissPostRequestBody.cs index fd5433757f1..fad8a0dfb6b 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissPostRequestBody.cs @@ -46,7 +46,7 @@ public static DismissPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"userIds", n => { UserIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("userIds", UserIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs index 3dca7748a66..442c903b8b3 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Dismiss/DismissRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DismissPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DismissRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.cs index 457cdb57d9c..197265d2fd4 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index f4b924b032a..c60da0f8376 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(RiskyUserHistoryItem body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HistoryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.cs index d6bba2361a8..796bf70049d 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/Item/RiskyUserHistoryItemItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(RiskyUserHistoryItem body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RiskyUserHistoryItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs index d5a6bbf4054..b1151a3cfdc 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/RiskyUserItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(RiskyUser body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs index 6b36052be91..ac898d66a97 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(RiskyUser body, Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.cs index 2dfbedf16af..1d8288d3996 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs index ef959aaed19..bdf6d48c55a 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/Item/ServicePrincipalRiskDetectionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(ServicePrincipalRiskDetectio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServicePrincipalRiskDetectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs index 0f01e52d728..051fb3030f6 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/ServicePrincipalRiskDetections/ServicePrincipalRiskDetectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ServicePrincipalRiskDetection UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServicePrincipalRiskDetectionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs index 0e7582adad0..30c071d6c8e 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index c4a8a0d2203..56e08ee7e37 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/Count/CountRequestBuilder.cs index 8d481b6236d..c6d2993b435 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs index 5b759cda5a1..ee11f0f67e0 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -110,7 +110,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -139,14 +139,14 @@ public RequestInformation ToPostRequestInformation(IdentityProvider body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityProvidersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs index d3cbc15a31b..c0f6acf3f2d 100644 --- a/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProviders/Item/IdentityProviderItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -164,14 +165,14 @@ public RequestInformation ToPatchRequestInformation(IdentityProvider body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentityProviderItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs index 30530457c0d..d024a280095 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/BitlockerRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.cs index 3759d7fbb3a..4c55df74861 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs index 4d86d2cd488..b2d629b10e8 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/Item/BitlockerRecoveryKeyItemRequestBuilder.cs @@ -29,7 +29,7 @@ public BitlockerRecoveryKeyItemRequestBuilder(Dictionary pathPar public BitlockerRecoveryKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/informationProtection/bitlocker/recoveryKeys/{bitlockerRecoveryKey%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is available in the following national cloud deployments. + /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Microsoft Entra audit logs. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, BitlockerRecoveryKey.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is available in the following national cloud deployments. + /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Microsoft Entra audit logs. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -82,7 +82,7 @@ public BitlockerRecoveryKeyItemRequestBuilder WithUrl(string rawUrl) { return new BitlockerRecoveryKeyItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers an Azure AD audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Azure AD audit logs. This API is available in the following national cloud deployments. + /// Retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. For more information on audit logs for bitlocker recovery keys, see the KeyManagement category filter of Microsoft Entra audit logs. This API is available in the following national cloud deployments. /// public class BitlockerRecoveryKeyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs index 42bfa8d2a0f..f6a138a7ac3 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/Bitlocker/RecoveryKeys/RecoveryKeysRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/InformationProtection/InformationProtectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/InformationProtectionRequestBuilder.cs index 18aedf508f3..76f5835c7c5 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/InformationProtectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/InformationProtectionRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Infor UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InformationProtectionRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.cs index ac09e41bce8..15e5720b432 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.cs index 20d4bcb2c1d..29a3fcfbded 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.cs index 5972777c1e1..ee89d6a9319 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/Item/ThreatAssessmentResultItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ThreatAssessmentResult body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ThreatAssessmentResultItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.cs index be82c533c82..e6ba58fd1ac 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/Results/ResultsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ThreatAssessmentResult body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResultsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs index 5d678c46560..24c67a751b8 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/Item/ThreatAssessmentRequestItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ThreatAssessmentRequest body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ThreatAssessmentRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs index f9f67bd65b1..9f1a478960f 100644 --- a/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/InformationProtection/ThreatAssessmentRequests/ThreatAssessmentRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ThreatAssessmentRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ThreatAssessmentRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Invitations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Count/CountRequestBuilder.cs index 0f4ddbccec5..499958d3b96 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs index be1dcd21e38..456ca9272cd 100644 --- a/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/InvitationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Invitation body, Action diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs index dbc93c18893..e9a70bdf578 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Invitation body, Action diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs index de7b04aa33e..6d8e7fcd49d 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index e624affc9e0..5d13d3872b2 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 5d2d3e99a67..3a572a98d5c 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index b78299e0b3a..d705916f265 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs index 24502250206..ddd128efc39 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/ActivitiesRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(UserActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Count/CountRequestBuilder.cs index a2a6bfacf53..7966ad5a501 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs index c45278faaaa..87af03ab23e 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs index 96da27c90b7..858ad3e5aa5 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ActivityHistoryItem body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HistoryItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs index f27b586502d..086a54086c9 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index b08311e676f..a02ba3104b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ActivityHistoryItem body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ActivityHistoryItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs index 1da626caa50..f7bbf0a16ee 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/UserActivityItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(UserActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs index 15105e81410..dc0af06aaa7 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs index 66ef78482d6..801fea7e0f2 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Recent/RecentRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index f672c07f731..5861cf560f0 100644 --- a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Count/CountRequestBuilder.cs index 2bf1c5517c2..920db631abe 100644 --- a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index f140121c7d9..994e8253f01 100644 --- a/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index a38ab35ad8b..87268912519 100644 --- a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Count/CountRequestBuilder.cs index 89d4ac09448..06e76557cc6 100644 --- a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index 0027088052a..9007e2c7309 100644 --- a/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicensePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicensePostRequestBody.cs index 756df0aa7bc..932bcf860ac 100644 --- a/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicensePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicensePostRequestBody.cs @@ -61,7 +61,7 @@ public static AssignLicensePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addLicenses", n => { AddLicenses = n.GetCollectionOfObjectValues(AssignedLicense.CreateFromDiscriminatorValue)?.ToList(); } }, {"removeLicenses", n => { RemoveLicenses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("addLicenses", AddLicenses); writer.WriteCollectionOfPrimitiveValues("removeLicenses", RemoveLicenses); diff --git a/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs index 80f1d25c208..538db922185 100644 --- a/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/AssignLicense/AssignLicenseRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AssignLicensePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignLicenseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs index f60a78c8f6f..2d96d19f65f 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs @@ -159,6 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -177,7 +178,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -205,14 +206,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Authe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Count/CountRequestBuilder.cs index e97498f9f26..08201f3b187 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs index 44bebcc74c8..8e55ebfde44 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EmailAuthenticationMethod bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmailMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs index da51c4f09e6..871f121b787 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(EmailAuthenticationMethod bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmailAuthenticationMethodItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Count/CountRequestBuilder.cs index 4f5a2838cf8..18310b0004e 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs index e473766a29a..a8b41ec9fac 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs index b9e0a85976f..a629a8d3005 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Count/CountRequestBuilder.cs index c02d5dd1a2b..225d92745c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs index df04a9b87d3..5fe40293553 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs @@ -90,7 +90,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -118,14 +118,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethod body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs index eff2cd1e863..c2abd1f8f2a 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs @@ -46,7 +46,7 @@ public static ResetPasswordPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"newPassword", n => { NewPassword = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("newPassword", NewPassword); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs index fb338fe66de..06f7892b572 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -29,7 +29,7 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl) { } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ResetPasswordPostRequestBody return await RequestAdapter.SendAsync(requestInfo, PasswordResetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ResetPasswordPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResetPasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs index a5a3bb58d46..b783d67261c 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/MethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public MethodsRequestBuilder(Dictionary pathParameters, IRequest public MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/methods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AuthenticationMethod body, Act return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethod body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public MethodsRequestBuilder WithUrl(string rawUrl) { return new MethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. /// public class MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs index 64cf8bf9393..8e2ad6effc0 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs index ec65d8092d5..4e5458be512 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs index 93c057141e3..0d58282c5bc 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs index 1a83c6b290a..95246bebf31 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Count/CountRequestBuilder.cs index 969dbcca009..8057978c04f 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs index 1dea4420947..bc343fa6336 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(LongRunningOperation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs index deb47d10079..ff070d53368 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(LongRunningOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Count/CountRequestBuilder.cs index b13e58be6c7..a1e94a64013 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs index 0260c63fc5f..6a694e27e52 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs index f5db8f12142..ae85d81e27f 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PasswordMethodsRequestBuilder(Dictionary pathParameters, public PasswordMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/passwordMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PasswordAuthentication return await RequestAdapter.SendAsync(requestInfo, PasswordAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PasswordAuthenticationMethod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PasswordMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PasswordMethodsRequestBuilder WithUrl(string rawUrl) { return new PasswordMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. /// public class PasswordMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Count/CountRequestBuilder.cs index 9b69071ba39..78deb65ac73 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs index 85ae718a00d..dc28e78662c 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs index ff86be4f496..cac38a3d865 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs index 24f96c3f81c..c8b62f948e4 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -122,10 +122,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(PhoneAuthenticationMethod bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PhoneAuthenticationMethodItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -202,7 +203,7 @@ public PhoneAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// public class PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs index 981fae9d9e8..e5eadf0e736 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PhoneMethodsRequestBuilder(Dictionary pathParameters, IRe public PhoneMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/phoneMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(PhoneAuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PhoneAuthenticationMethod bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PhoneMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public PhoneMethodsRequestBuilder WithUrl(string rawUrl) { return new PhoneMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// public class PhoneMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs index bb81c63d7a5..3aef7605ec0 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs index 0670c4dea94..bc21e0ec3d3 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs index 2200660e3c9..79e0e537bfe 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs index b911f7afbf4..f60da06f929 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs index a315b5c904d..102e4b3489d 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs index d2d8748a47d..e0ae054d905 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TemporaryAccessPassAuthentica UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TemporaryAccessPassMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs index e562fd7759b..da818360d41 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs index c05292bb5cc..d8a6758f979 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs index 2ffedb3ebe9..912444b1ee3 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs index 00c87688c0c..01caf94bb52 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index 421de330789..f4ad7d84f9a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index a08ae920add..a0014e20311 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 1fb8d0c7c71..cbb7ed9834c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs index c4d2b5b2101..a889ec74591 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index 3e3d0bd83e2..fde0e2174a7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs index d33399a4ec7..ad060acb5d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs @@ -115,7 +115,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -143,14 +143,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Calen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/CalendarViewRequestBuilder.cs index 6cb3b18a47a..06afbf0f6a5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Count/CountRequestBuilder.cs index 8adef748142..151dfa41bed 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs index a9611702835..ef196dd71f8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index cc87e9e2e82..01d727f98d4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs index fc91a697b32..5b5a8041583 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 72f54557b75..b975949b9d8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index e20af93f109..2a1a8725d25 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 6a079d24f7d..d777dcdf5f8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 55b91784a12..98975240990 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 12c54bd8090..9aaeea56086 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index c8a40e9b6fc..700f0ada8ca 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 654b1a6ce74..edac69b3934 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 26618bdff0f..cd4be9f5479 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index cd7a273555e..c39f2a7e75e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 0c5eb1ea832..0e75d364a07 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 28e4a556835..642327bf45a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index d42d3b4e0bb..1fafc2466a5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/EventItemRequestBuilder.cs index 1239cb22f11..2bc5a47cf83 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index 2a7ee95b758..c58dec097d6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index af424112583..f048c507dc3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e8140cfb352..4cc976996c9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 1175df1acf3..0a899d34af3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index a82ecd0f94d..34cf486e563 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 0a06de69391..cac8fa370d4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 770c3fdf230..4c990859f5d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 3a44f70c9b8..b784540374f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 735c14450bc..700c1ce3c1c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index bb3935bffbf..034b7e39512 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 633c70a5779..90a1242fe36 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c29fcba4a63..4014e229abe 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 1ace8d9b395..80f27a9ab94 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 71a588c5fe3..5949dbaa4c2 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 727d614e0ec..05a0502e3b5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 900eb5d1ade..82094a84446 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index b1a94d33cbc..8d9d8c156e6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index e6ff2dfef5b..0c00e8aa6a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 9765b8608d1..eaa313b0662 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 1b7697cc199..a7292559c31 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 4a9ee9a4246..5692fab35c9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index cc8373a0c60..5696cb74652 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 3d31cf2eabb..56c9ef7a9ca 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index ebaf3e8015a..9d3df89fec8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 0ac521000d1..c83baed5002 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 0e0f0a622d5..01389b2cd78 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 85b29bfdf75..64f645b023f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index a882e645026..b0f3391cc41 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 784e1cfc934..b2d709b3187 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 20c6769cf54..800786c3982 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index f81043b3a27..72eae05b934 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 2ef5e9654f2..8af753f89c0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 5223212a6a5..7c754d9e31f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index efac0220c03..98f3a235132 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 6936ad1121d..09137ad708f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 1ac5cab064e..8a6b78da1cb 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Count/CountRequestBuilder.cs index cbdf06189cf..823a3b3afc8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs index 56842673e03..31892eb5162 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs index f6ffda70d70..d1f81c1f0f3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs index 93fdbd675fd..d2f7dc1add0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs index 5e937ec6184..fd40f14d877 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index 754519808fe..1e323e0b271 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 61d41d95290..6c8188ae80f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs index e34e1f73ae6..8d9d0793533 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 3b6ed4dc173..93a4eb19692 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 91c7864dc04..e47fb330a7c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 609822877a3..c0c1c3ad070 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs index d01614edf7d..c5102600bc5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs index 20ef70ec014..574566bbfbd 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index 3e06616e2b6..1a247f87ba3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs index 9ff2c968453..495e837e8c8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index ab2856b89ef..20fb95e1f39 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 3abbf922fa6..9780ecaf045 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs index 3469d1e3c92..e9aca4bf786 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs index 37f711f3f16..5b85fcd9d34 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index cbb7fffed4c..75127b0ab95 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 87ac315591e..69dd44b3753 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs index f49e00092e4..14dd075f442 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index 8b1c3201057..5e16b5aad60 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs index c5453fc3c12..ee72774b547 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs index a6dd8da6bde..ac936d1ebf7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index e65d29a6c0a..986e2a44c9f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs index e4ae6dcaeed..ae607ba9fa4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 81b1e87b90d..9e8c82147b8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index c39c7268b81..07de2c32e2d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 68397f25fc9..b155ec4779d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 5d7ca67083c..e2ac10eb96b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index db1e965d60d..d384e149118 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 28c6bb6358b..568fa6af335 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 5f17c7b24b2..a7e89ab462f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 6017ebdec55..5f27601f875 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 2b0dcb9752c..f6adac4abde 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 08fba409dfc..52e5017ad16 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index de363798053..81718c4ffd3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index e7d3c94051c..aab8c2e7f32 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index c6b2c29b017..71c9ddb71d8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs index 622a8cd0e5c..1553e8bd2a7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 79d905145ee..b95fe7a7533 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 61a2623f33e..3af3f7f49c5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index c281eaebbcc..8912d861d4d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index def786de38f..2e16d608b56 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index d01031f34dd..a25db0344a1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 36d26468386..c27089c6bdf 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 67002a5d5fd..f4527e6b87f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 47bdb39a2ef..a94ee78ce3b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 7e795e05df6..2170da67f93 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 548c60bd4b4..de3d9d7643c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index f3df3f31cc8..2cb0551226a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 60484de2a79..2d6c0e125fb 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index e176e9b25dd..21071a3df84 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostRequestBody.cs index a1cf2c3c3fa..bc88d736397 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs index c3e6ec99557..30c42d3edb8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index bf56e03e44d..055dbb9d99a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs index 49f3d0eadf0..fd4b5156609 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/CalendarGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Count/CountRequestBuilder.cs index 9af1c2ac5ac..1d638a238c1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs index cf60cee4984..d41d781354c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(CalendarGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs index d24ffda7298..0cc2f364655 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Calend UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs index b98dd8c4be7..f7c532f1479 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index b00a228d687..ead8fbc6922 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 9ae83aa858d..e1fec2c00c2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs index 93184abf57f..54c7dea9d4b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs @@ -138,6 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -156,7 +157,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -184,14 +185,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Calen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 3e1c659974f..b5150a0c6a5 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs index f2b30cfaf90..84d8167c09a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index 40d1a2eb4a7..70dcaf165b5 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index 396d7ffb5da..7c5d9874cd9 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs index 0e7c0c94066..d5c8027f83a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs index 8569f501fa2..410f114a104 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 3bb67a8fe64..1ae36e60c90 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 8ca5fe15295..c700388111d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 3189288191e..5c3c3eb1ed8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index ac99878e91a..ece4772b00d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 9f478cc0b2a..81101e47763 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index cf283765c0f..087a46af03f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 46112cde9a8..c6e6c56abca 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index aae9b196168..46691a61582 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 6bafdee415b..0e6f9ecf926 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 40fb53376ec..d2308aeb171 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index afcc6f6745d..05e045d0be6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 5e9b5782ca9..15437a0936f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 4f40787154f..b6a4c70b01c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 5d717e92a41..a7008eb5853 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs index 1a87d9c3b1a..192407ba133 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index 94fcaabb6a1..501469d93f4 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 2c3b80e1263..a48e24fcd8f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e69fd14b468..e31391e0230 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index a4a9a79b9c8..869a97989c4 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 8424ce85cb5..ed5bc753cac 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 3958d79ad08..08afe262752 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 9e3e8a649a3..ff5d9c0266f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 666ee9d9c65..6959c0c5ae6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index bb49878ba4a..e244049a12d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index c6ccd97db99..c7c8c851731 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 235025da849..b97ce0a5d6b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 7b30d207558..f8eb96566de 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 94fa84504ef..ec811638db8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 1ebe62bf587..85bb328d7f2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 7df1797664f..206a902e30b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 103ba0169d9..28008916486 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 918cfc476f1..3722fa0ca72 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index cc3ef8a35d0..834cc32d4f0 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index d90c4b8b93c..ac0e165a409 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 3a3cc3ab77d..c1e87c9e4c2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 269e3ff1a39..c14f5f77032 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index f403d1bac49..89fda13d94e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 1c5bb546a10..cb4785b0123 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index a62edf484c1..7f6ab96ea03 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index c6a070a822e..4b018a05a80 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index a37d8e85099..f77907fe67f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 705228fff12..54de198d700 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index ff4d4ed3457..941db38d7ce 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 88d5dc016f2..db240c5bcf4 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 6c12313eac3..7cabf03e5c2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 339ed8866e6..49e3a0ab3e3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index cce07164106..0e604b41a58 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index ba3f42e7165..f958c2a201b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 2ebde26217c..5b9ac73b8a8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index fc6e47ef33b..7a19b3abaf2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index c07d06a5723..49af4f96f2c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs index b40f511d511..bd614410f6c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs index e9dd077e5fe..1be7f125b23 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index ac7ee3e3bbf..fd7ba3867aa 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs index 10343187113..ca956d82647 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs index 84d8673ac65..ffa3009c6ee 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 8f4e4920168..2639514ea8a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 120f69c3674..d839a10bd8a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index f815d6b894d..feecdfadce5 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index e0075e2f928..ff4b346e134 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 7d743e3b8ba..a95d88e49c1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 781b508611a..0ad6b372190 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index 0b23aaf4ef6..27b06b8edbb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs index 4b5a1fc47a1..c504539c06b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index b675d4be1f1..deb689d4a28 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs index 3f234799b8a..993cc5d42b3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 3fda8ae0e88..2b29442418d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index c0cc275d369..0a9c424bacb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index ebf7d8f16d9..d9c48c0fe0d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 1eb6039fe50..8fc7af35c8c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index e57fafd31e8..17779834210 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e4e46b90b0e..a611f30e814 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs index 12249fb680e..d18ee1f9233 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 92d46b7adbc..af68ccfc5f3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index 0dd2d02ed06..28e2b56403a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index e31f57fb550..36ecac67f75 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 8395257bcf4..b175356c3c3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs index 021c2616b35..0658434a7af 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 066abd473fa..db49e486138 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 65d47cf7735..375b0b9cf40 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e4926257a6d..36dd48309c9 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index a0dc3d23090..6eb8223ff2a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index e7b56f0522b..0f9cf79dd08 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c1d4eaa74dc..578f0ea8d9c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index cec83f2e91d..9059cdc83be 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 70026e5d175..a0de7a5cf36 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 82632b5f5c3..0105e5d2f7a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 4abeb9dd723..38b4925774d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 5a32c7f5e17..51471b68b5b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index bd50c3a4238..9e397832eca 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 2bbc91261fe..bbe8ad2c432 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs index 892e3d64b4d..13785e82f1b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 1655db52071..b46e9227dcd 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 5745e3ed4aa..57e71fb54a7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 381baaf1415..3540db69f86 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 74bed551cf9..9baa4db3d46 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 5bd8449f174..4bcbeb7a012 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 729ab6f4841..6c31aa4ad74 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 382d57f0057..6d5846748c0 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 503d61b0388..6b9525f737d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 284e5021550..3e7f8b40d59 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 9027967f106..2b2d5187e85 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 4cad798830d..44d9c2758df 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 82416fda623..d9149c00330 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 98d169b1848..854aa70f403 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs index 1a795f1966b..cccf32b956b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs index bdca03095b5..49d02e7cb52 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index 8efbd5e1016..899f23ba41a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/CalendarViewRequestBuilder.cs index 7064c38e834..7ab2b0119d5 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Count/CountRequestBuilder.cs index 858a3ffd852..3fa03c03fa9 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs index 6e34721fb5a..4849af7a21c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs index 88a075dc9b2..4828c631e4c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 08227e16718..bc9093cc6fb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs index b82dd97177e..b8b105bd4a1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 43934af9e14..d5548c1fd93 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 23a4aef98f0..d7c3a99a7dd 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 17141195323..0fcb9d51ca7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0a3ef018831..85feb4bd4f6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 6891c6bd5d5..fffd9d0a901 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 7e8d6e3952e..3d9fc7e5479 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 45fe1529ab0..ff013d786ae 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs index d8743b38a71..756f02da293 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 7ad08703fcf..9edb70df546 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 4016cc3c17e..9dd0868868c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 3bf75772fd6..e8c5d304864 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/EventItemRequestBuilder.cs index bccae025616..7ccfd555149 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index 172147eb962..e94802a2720 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 2b687f13be4..f0562489fc3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 409dc3aad93..f0890233191 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardPostRequestBody.cs index b4efc64f0f4..ce6fd0e8d22 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs index f527fb164b4..30d07cd055e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 5393ab8075f..204573f3893 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 6243b7fafb2..7affacdee56 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 3b36af25281..dff723e175e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 88958bafce1..3341ae87fa1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index a935be86a43..bdca95171ce 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index de2d7143e10..ed038676754 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 29640e1b197..5a2e146bea7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 895dc2d3d54..05746957845 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index a961509db31..60f1354ff3c 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 1db883953b8..8bbd4eab8c7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 50880d53aa1..8888700d312 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 79b7a07837f..7c38674690d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index b3d0b651aea..070e24a7616 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 2669a92011d..09fbbcdeaae 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 59235e8061a..15c487bec6f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 8ea5c3bc0d1..f0c19ff5e79 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index ea9685c9c6b..180536cba54 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 5836387e525..75fa971704f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 344da3159cb..509932ab06d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 328f06c92ec..1e4307658cb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index b71ab1ff9cc..b0794b12752 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 57b5e8d237f..87bd5e6ffca 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 3e252365306..8b5fa414ca3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index c83989759a3..514c2025a14 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 7b2b5eed60d..6d0604b9b44 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 7b8ca028819..33d0eb96a7b 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index d42a7d0fa28..b0b08387394 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 671767ecfea..0d2e21198f6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 195e82ac7bf..d1ea413d59e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 963bcb5c826..820179a8729 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 50d35b6f3f5..d2c0efb8a40 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs index e27864b15da..8fefdb538d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/CalendarsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Calend UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Count/CountRequestBuilder.cs index 62c850086e8..c9aeb70c20b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index 879ac506a91..eaf65fe9484 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 9d2a585ab83..ea324ef0cfc 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarItemRequestBuilder.cs index ada5ea8c887..9e1fbb93e42 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarItemRequestBuilder.cs @@ -138,6 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -156,7 +157,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -184,14 +185,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Calen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index ff4b79151f7..ca555ac1154 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs index 831b2447841..854cb9a35d4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index d29c5853b46..0030fc30f39 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index 0cf9f6070fa..b12576cdacd 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs index e48c48324f8..d1417194944 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs index b1c9a63d808..00a0195479d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 944931e23cf..70cb1784e92 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 62f138b34f6..aee3caceda6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 296b01ac708..037538e3551 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 502240ff14c..02c9d7de2bf 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index d92ad39b9b6..8b3ea2ab3d2 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index d39db9bab70..af18683422e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 3ffa7d73bc9..6b48fb6b224 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 12e5231200e..1895d887f9c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 705d513eff5..d2612637f5c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 336c79f8cfc..399096dc8c1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 342b852591f..537575b6f80 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index ba9226d762b..31317fccfae 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 9780b20ff4a..5c2ef5248dd 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 373b3b0be21..cb64520b63d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs index d09aaf10466..82d78cec95b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index 84415c24403..c209aa08f54 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 3a8bc9c050d..b90479fc7f0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 3c7dded4f5b..2547588f2dc 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 489d6c8cc0d..23c9739dd40 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index d47eba4dccc..c3e95707f43 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 38f4a3d6a92..01baf63efe4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index fee0c423d22..4c1f98e5784 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 20df27597f6..c7c007ae9af 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index ef876f9a809..f7c19ee1c6e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 6dd844594ed..d6698d5b764 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index c965306d40e..7569c1c78a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index aa787906bf3..45d5f2e7d5b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index d27c89a0566..3aea87e817b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 9a9426b38f7..09f4a8dd8dc 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ac03b6bcd0a..dcffa8ac38e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index de8d6497c51..21c6d00aa85 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 0d8017bfbb2..aabd9a5c9fe 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index d5c7588626a..07f81186452 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index f29b70a0262..d547db12ccd 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index c3394978196..e5e4e04fd44 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index bc364512cb3..513eaaef00b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 36c47b0055b..04e2cb144d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 0a336ec06af..40c1aa0bab0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 8718e1facba..2b8b686c2c0 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 329465be933..b7a1d49ca8b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 46735f6bcd0..c457172f856 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index f803f96dc8b..8a2502ec66c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 7ccb18da5eb..38362cb6712 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 8ffd8e67182..34eedd536e4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 1a30e6257c0..353acb1aba4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index d9ce285db47..43e16bbd60c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index ae92d70b796..47d5e1b9c29 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 91da7d92430..31e2d6b5720 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 25b60c353d8..2c67cde9c6f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 6347095882b..8d99c2889cc 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 5cc0f248f54..3ff26e8fea5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Count/CountRequestBuilder.cs index 2b4fe692ee9..32702d87265 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs index c2455d793a1..2f393e7e336 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index 73d82142795..e3b3a81cb21 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs index 55b89f107e4..3a7b82ff5f5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs index 0f27576097a..2f1247e2f71 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 9c37af95259..105882b8e2b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index e8c26ebe3a3..830c6615fba 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index 10d0de86528..42458a1be3a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 4ef18874567..5a30bb0cb96 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0ec8fd0c7c1..4603d6f7491 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 501d3577015..65b5f2cecff 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index 3ee46c68073..18bb1b7c6a8 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs index a3eba75da8d..93c9ab88e3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index a50527e0c65..24c7084471b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs index 68e14f987b6..ff27f844b0f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 0855e8375ca..161c45cec54 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index d6d199aa331..0c348ebb233 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index 2f55cbdcdf1..2c613376242 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 50580548896..30a0524c196 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index bbe2ef4f18c..a935f115423 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 49a3b49be46..7d2f3499d7b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs index 37dc481d2fc..e3ed9a0df3f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 2221608ac79..a156ea7b432 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index 811812e3b7f..234a3c00741 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index b1b3217cef2..fe3925c0d5b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 6a20076a63d..540fc8940a1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs index eb534639b50..07112a98122 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index b65eb46025b..a09a2c89646 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 9ea251f009c..ef566fce542 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index bc9e3c25db2..cd6e70eedc7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 3f2f68e66f6..c9e1c46c40b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 5515fdca962..cc40475a19f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index dbfe3c4e793..38df09f51e6 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f3402dd59dd..86bd3aec604 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index f7389c7e145..a17853cf608 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index c41c600988a..835cf8b63f3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 79d60d5d624..73a0b800af7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 9e28fdcfd69..72c55f9c6d1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 51e0759d17b..4a742b44065 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index c88b0760000..f8561b84781 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs index 987cf239d31..ce390e114d1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index a0a6df1621a..f358bae9729 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index beb8f41da10..e0ac103a65a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index af6e5147702..6bf32350749 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 04bf176031d..f49d6c34486 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 3fd3ec5434d..97d523fe7a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index e09916cee24..0ffc47140d7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 13ee46a6ead..8c72ef06b48 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 0251258818f..fab14cb46be 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 61192b48b31..7874e3285ba 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 9b2e4cedbb0..cf4f926f123 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 698cb827a6c..1b2543833eb 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 51098629ee7..59cc456a2ae 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 4ded6667766..44fb7bf2a2a 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs index 55f059d7854..e75721248f9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs index fd8b99e872f..aad3236c6e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index 66307b4e0ed..53847dfe0a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordPostRequestBody.cs index 5180624be4a..7aa77c070a0 100644 --- a/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordPostRequestBody.cs @@ -60,7 +60,7 @@ public static ChangePasswordPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"currentPassword", n => { CurrentPassword = n.GetStringValue(); } }, {"newPassword", n => { NewPassword = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("currentPassword", CurrentPassword); writer.WriteStringValue("newPassword", NewPassword); diff --git a/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs index ff3ce077232..fc19403c4ec 100644 --- a/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ChangePassword/ChangePasswordRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ChangePasswordPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChangePasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs index 1beea7d2a48..7c74e1483ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/ChatsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Chat b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Count/CountRequestBuilder.cs index 8066924b2bc..38d565c3d3f 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs index df96510dbdb..d1640ebae84 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index d6d65a9cd09..a5d09e70519 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs index ce1a2f47134..b9e15492074 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/ChatItemRequestBuilder.cs @@ -170,6 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -188,7 +189,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -216,14 +217,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Chat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserPostRequestBody.cs index f82110f21c0..c8130a39ea1 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static HideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index c15f71319fa..7a2bf75f515 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/HideForUser/HideForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(HideForUserPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HideForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs index 45cb994fd49..fe514317781 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 2b6d593b638..b832358ec4a 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 48bb4846657..e7bbae8e23c 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 5374316bffa..57c267e83ce 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 4cc15c610e5..07a92b5adfd 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index 557198c44e8..4abf3654225 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 01066f91be1..ed5bc8b980a 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs index 11389e48cb7..874e1af920e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageInfo body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LastMessagePreviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs index 2b20db9d2c6..79930702cd4 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static MarkChatReadForUserPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index b1daa3c37bd..edd6611ecb8 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(MarkChatReadForUserPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkChatReadForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs index 7a21bfa3660..9b0b7a7ff24 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs @@ -52,7 +52,7 @@ public static MarkChatUnreadForUserPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastMessageReadDateTime", n => { LastMessageReadDateTime = n.GetDateTimeOffsetValue(); } }, {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastMessageReadDateTime", LastMessageReadDateTime); writer.WriteObjectValue("user", User); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index 8dca1e8849f..1713f5c6782 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(MarkChatUnreadForUserPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkChatUnreadForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostRequestBody.cs index 91d5eb39ac8..fc928ca1886 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs index 95b7adde389..f1028bd082b 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs index 02a3d76a7d6..e0fb5f8e21f 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Count/CountRequestBuilder.cs index ec4e06dd12b..cb29a8d79b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 127b38bd8b0..c54cf19e007 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs index 664a67d542a..b4d0730ed61 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Count/CountRequestBuilder.cs index 38f52465f6d..7290ba83355 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs index 56350db33bc..2667c7c8ac2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index 4c636c7e16f..db7fa46de63 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 87337945a23..47b3bdfe08d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -140,6 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -158,7 +159,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -186,14 +187,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 52729e1aafe..c3facad755e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 78cb9ac77e4..a3ec609a93b 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 9deb89dcd13..ccebb804eb0 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index cd2525d8af2..5eb0ea49e72 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index 6bb31eab561..edc23bcf4f3 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 65e1e1dfa21..1b56333f067 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 91280b7a566..2de80bf5bd2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 49700958110..8419d2397c8 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 16562defd5d..1a46fb6b8c6 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 7cdd98936ee..be36f52fd3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 59a147f7852..5fa0ab2e1bf 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 48af119ed59..9f00b0c48cb 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 02aa7886055..380e92b09a6 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 7b1fa43bdc5..937978d11cf 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 10f5b242c3c..61446bb588e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 10ab961f894..ef1b7a04848 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 495fbdab7f9..d1ce4a75191 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 3ac057a9ffa..509c3928c6a 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index ef8597d689a..78e8e092fbf 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 491b1de25cf..0f8bade8e54 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 1fbd6ccab2e..2f97aea1d3f 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index ceab4829165..4a15ec6dd77 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 0a2225bae6b..f20ef3985f2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index e0b7cf44d8f..af44c172897 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index ee9445704ca..d80189ecb61 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index 8848736969c..19e2e112573 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments. + /// Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs index f01e69ddec4..2038a3821eb 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index 298860e3e9e..c892de5f7ea 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 5ea26654538..87117bc6be2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs index 6f5f3a8523d..192ca9432c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs index 6f4a7f90273..e6be0b7eebe 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index be3eb4b5870..1693f43829e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(PinnedChatMessageInfo body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PinnedChatMessageInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index d3d186f61bb..eed44c8e733 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PinnedChatMessageInfo body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PinnedMessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 6fb224e2fb6..a55afd05af7 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 538a9b32587..a8c42d244b8 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Count/CountRequestBuilder.cs index b4b1c29cf24..61f5d32f4d2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index c375e75a89f..0c19e0467fa 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 78ad4e17908..9b73b62bc85 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs index 161eca6a7f1..9a4ed84634d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs index d12f361a57e..5cb91675c57 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static UnhideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index d2dc197bf22..16d4f712572 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UnhideForUserPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnhideForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 39c07649061..004e31fe68a 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 4b472b1eaeb..c8146d240f3 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2e0b3364b4f..418908856c0 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 43729c37799..4888bf5343e 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index eed6a6d3e05..32b819a845c 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 8ca5f4d8562..498fde41370 100644 --- a/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs index 6055722b436..b54da266575 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/ContactFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Count/CountRequestBuilder.cs index 97b84469590..46b6807e0e2 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs index ad6af08be6a..3f755b2fb02 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs index 1a3fc4bca49..d57dfdc8fbc 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 2421877468f..032f146a0ee 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs index 43501f1a2fb..4e2f6dbf16f 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs index 259e4966fe9..feecd4518f7 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index ec6c157315a..b7177d2fae8 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs index f8d7667790e..4bfd6f60d4d 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs index 0ba36fc770a..cafcee06f69 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs index 1993fcb6cdd..b9a8b1f9125 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs index 1670731e6ea..79b97dc0633 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index 0589968de87..2beb352a05e 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs index 29659973f3a..53ffd979bfa 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs index 753f09d8edb..506b007f18b 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs index c5160327b88..11b04c3714f 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 89dc84276a2..5fe5a1509e5 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index d27406dcb0b..6911d28466a 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs index 7ba4f89ad8e..2843d086e31 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs index 793c04819ca..76cab936fa1 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ContactFolderItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs index 44e8da12288..1b7a10ed767 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs index 1341fd0cd6e..ed72671ba57 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs index aacdc59ca97..4bc8045f23f 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index 3679e7d7093..70730eeefa2 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs index c010e974127..1246caffb33 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs index 5741c388fd5..e8b533949fc 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs index b8514c22144..45e596651a0 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index eefb45e53a7..a4866eb3094 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index 4f9b1ff8d3e..d1435e432dd 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs index b92777820a3..df6779149ef 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs index 9d7772dc995..cda753450e4 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/ContactsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Count/CountRequestBuilder.cs index db3d5ed34e6..ed76f61a8ae 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs index b588acd97f1..613dd1636b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs index 11369ed1568..343977e4769 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs index ece9e71e7dc..b4fcf9f1d27 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/ContactItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Count/CountRequestBuilder.cs index 0e5d42af953..c5ec35febed 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs index 70084c4ed16..4c72bfaf2e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 5c10e9df82f..80b4d204968 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs index 3355e1649c6..38d21b8b8df 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/Value/ContentRequestBuilder.cs index c4227ba97d9..7189dd8f4d1 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/Count/CountRequestBuilder.cs index b1318737717..a9259948a09 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs index 5e7f18b54b9..e5e154cdb3c 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/CreatedObjectsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs index 251d428bdf6..19fbaa80e3e 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index ad7d2ea9e5c..2f891a20ce5 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs index 26b02c52474..f1b1d83a66b 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index c3fcb85c291..7fdcc84aa6d 100644 --- a/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs index 1e2e943ab58..3fbad53e9b0 100644 --- a/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs index 68026af02a7..e96a3e0bbc7 100644 --- a/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceManagementTroubleshooti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementTroubleshootingEventsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs index cdb582f67ed..b872c3f104c 100644 --- a/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementTroubleshoot UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementTroubleshootingEventItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/Count/CountRequestBuilder.cs index cc8b2d57abb..8079366a384 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/DirectReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/DirectReportsRequestBuilder.cs index f5d56b7b764..c746c9ac9b4 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/DirectReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/DirectReportsRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs index 5d2921b7cd1..11d446e9f81 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 5e03d53da39..435ede0ff10 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/Count/CountRequestBuilder.cs index 6329bef4281..7218ee4e20b 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/GraphUserRequestBuilder.cs index b7eb5976bb9..a16e87dd294 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs index c4fad3d2521..cd97f51c8f6 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 32c9823fffb..75de243f295 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs index 7ce1279dbfe..204d5b3a096 100644 --- a/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs index eceaee10589..1d96cfbddf5 100644 --- a/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Drive/DriveRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Drives/Count/CountRequestBuilder.cs index 09cda9db2e3..7dd319fce40 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs index 7eda8558c2d..4037b6aa86e 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/DrivesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Drives/Item/DriveItemRequestBuilder.cs index 9ff21d4ac88..7535497a9ef 100644 --- a/src/Microsoft.Graph/Generated/Me/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Drives/Item/DriveItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/EmployeeExperienceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/EmployeeExperienceRequestBuilder.cs index d25047e4acc..dd306f8ffdd 100644 --- a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/EmployeeExperienceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/EmployeeExperienceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(EmployeeExperienceUser body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmployeeExperienceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs index 831c2a0425a..130d2946fd6 100644 --- a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index 72987902d17..561958bb4a5 100644 --- a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 37ffaca2bd7..50d575b0183 100644 --- a/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Count/CountRequestBuilder.cs index 4bd646e3608..2ce4fa60f07 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs index 6aced970b8a..9e737c8547c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs index fee726f2d27..bf078cd28ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs index 793b5f58042..0c9d2580f04 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: This API is available in the following national cloud deployments. - /// Find more info here + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: This API is available in the following national cloud deployments. + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptPostRequestBody.cs index 0daae35eed0..91a0e41a73e 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs index 1c4a94d0360..990aa10afd1 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 8e6e78d3018..0abe9d3ceaf 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Count/CountRequestBuilder.cs index 4afe62a26ba..f0c9493e532 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0e07794c507..9663b4d2a5d 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d41ab84ef8c..27c8c313972 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 4edc770af25..eea5759360c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Calendar/CalendarRequestBuilder.cs index c197a1a41d8..df3157143cd 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelPostRequestBody.cs index 89c284b49af..b67807f1c3b 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs index cfe0b27d715..3931e3e34e2 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclinePostRequestBody.cs index b624709727c..28a3cb3ade7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs index 1a90d47c678..2d6f4c2882c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index bed255da57b..7e46ddaf6a7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs index 06ab30c2d5c..834f8f4d124 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/EventItemRequestBuilder.cs @@ -167,6 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -185,7 +186,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -213,14 +214,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Count/CountRequestBuilder.cs index 24c83ed330f..7a266aae2c8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 85b630c662c..3769667173a 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index af17dc2c2e2..27f7608f7ff 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardPostRequestBody.cs index 88978dadf7d..9553567abf0 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs index ad58025a7a5..7a7cf6f1656 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Count/CountRequestBuilder.cs index 0a7a8783328..67c7faf9ad0 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs index 0689735490b..5e65c650e77 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index bc0e69fdcb8..3cfea60e811 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/InstancesRequestBuilder.cs index 5249c6a3cdc..46b1a9ccdf7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 7641694aa8f..c91e26ad85c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 28492a0e977..84914b36ab8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 095748a89e4..fa94c7992af 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 63855cb482c..5d2e7d9f7d8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 1394400ae86..316e0c7a189 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d56c7cc7d26..79fbe33b3d0 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 695dbab6f74..969a3b430c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 7be50b2d131..c890cb203b0 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 59967d88b24..a07ae5ce80c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 8ec3fa2decc..e3e6ec350e7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 67e1eb4465c..db9e2a7726d 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 8e0b9248227..648fcb220ca 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 5e0eb4a7326..fc60b5256bd 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/EventItemRequestBuilder.cs index fe8462ec852..de64830a7ed 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index c9392f56efe..18c952ed0fb 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 9e9a6abd304..4f14e687062 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 93284946859..8ec55f9d67f 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index aa6f0794ae9..4f127054788 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index b6a5461f378..d042ddcf4d7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index a23341ece45..91ef1331ef8 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index a34a1e46d48..5d95208ca73 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index d1d01bf9971..35ff0b91d3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 93a9eb608cd..cfce7b9361c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 7f44525a3ed..5faadbbf1c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 84d0926c934..4cde6784b3c 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 27c23036734..77fe25f37c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index b6ccbe61e35..07191307307 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs index f3a681d9c53..c09ad7008e3 100644 --- a/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs index f06c02b8547..9b260b1b3da 100644 --- a/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataPostRequestBody.cs index 2b525ea446b..a787ec3aa37 100644 --- a/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataPostRequestBody.cs @@ -46,7 +46,7 @@ public static ExportPersonalDataPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"storageLocation", n => { StorageLocation = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("storageLocation", StorageLocation); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs index 6b77bbc72a0..ef5febc9b0f 100644 --- a/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ExportPersonalData/ExportPersonalDataRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ExportPersonalDataPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExportPersonalDataRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Extensions/Count/CountRequestBuilder.cs index 43f94416760..905a9bc4db4 100644 --- a/src/Microsoft.Graph/Generated/Me/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Extensions/ExtensionsRequestBuilder.cs index 0931d7d5e5b..c34b644548d 100644 --- a/src/Microsoft.Graph/Generated/Me/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Extensions/Item/ExtensionItemRequestBuilder.cs index a015e35308c..f6cb56eceb5 100644 --- a/src/Microsoft.Graph/Generated/Me/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs index 91b7f8014d1..61cda2e197f 100644 --- a/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs @@ -100,7 +100,7 @@ public static FindMeetingTimesPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attendees", n => { Attendees = n.GetCollectionOfObjectValues(AttendeeBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"isOrganizerOptional", n => { IsOrganizerOptional = n.GetBoolValue(); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attendees", Attendees); writer.WriteBoolValue("isOrganizerOptional", IsOrganizerOptional); diff --git a/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs index 59c3289614c..d654a55a0c0 100644 --- a/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(FindMeetingTimesPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FindMeetingTimesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/FollowedSites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/FollowedSites/Count/CountRequestBuilder.cs index b19eee97871..2effc718799 100644 --- a/src/Microsoft.Graph/Generated/Me/FollowedSites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/FollowedSites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs index 2de186c64fd..eea3f8721d9 100644 --- a/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/FollowedSites/FollowedSitesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/FollowedSites/Item/SiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/FollowedSites/Item/SiteItemRequestBuilder.cs index 9041d68971a..f4981d6eb75 100644 --- a/src/Microsoft.Graph/Generated/Me/FollowedSites/Item/SiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/FollowedSites/Item/SiteItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostRequestBody.cs index 50285a79ccb..7787d242ff3 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostRequestBody.cs @@ -52,7 +52,7 @@ public static GetMailTipsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"EmailAddresses", n => { EmailAddresses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"MailTipsOptions", n => { MailTipsOptions = n.GetEnumValue(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("EmailAddresses", EmailAddresses); writer.WriteEnumValue("MailTipsOptions", MailTipsOptions); diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs index 3670f99b47a..20f1c408814 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs index 24ad636f7f3..6454c025c5a 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMailTipsPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMailTipsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs index ef6636a4741..5b8c8502750 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs index d374b5bdece..105748525c0 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs index 12b9e3cce96..db97463eb1e 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs index 28d7ed3bbae..bf3e5d714ce 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs index 05e8a0bd204..9ec741c23e8 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs index 0c1cc400390..1bb7b16f452 100644 --- a/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 88bccf0733c..bdaf99dbab5 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs index 8bf90cdf5aa..365c0297ec4 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 331d07363c8..57008df1e53 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index d35693fe30a..7ec9e9e6916 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs index 844a3b1a53e..0a12250c436 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 5ab1b4a1e45..426066607bd 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/InferenceClassification/InferenceClassificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/InferenceClassification/InferenceClassificationRequestBuilder.cs index 27b210d461b..7baafecfc18 100644 --- a/src/Microsoft.Graph/Generated/Me/InferenceClassification/InferenceClassificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/InferenceClassification/InferenceClassificationRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Infer UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InferenceClassificationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Count/CountRequestBuilder.cs index 140a8ff32d6..6c49d5b8a7b 100644 --- a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs index e55a6f30d4b..4424656428e 100644 --- a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(InferenceClassificationOverr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InferenceClassificationOverrideItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs index ce686046ebd..1fac3d10e98 100644 --- a/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(InferenceClassificationOverri UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OverridesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Insights/InsightsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/InsightsRequestBuilder.cs index e9f1973730d..a25a7dc05aa 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/InsightsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/InsightsRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(OfficeGraphInsights body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InsightsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Count/CountRequestBuilder.cs index 821b71bc194..aa43c1e0370 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs index 4c9826a0221..6a41c2604a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs index 65c808ecfc2..5f9d1286d78 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs index 96a9c2889aa..1b2e621c8c5 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(SharedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs index 2f6f44de0b1..45c8f0ddcba 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Shared/SharedRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Trending/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Trending/Count/CountRequestBuilder.cs index c53bbf0c878..735f62c312d 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Trending/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Trending/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs index 1f4c402fed1..7cc345814e8 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/TrendingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/TrendingItemRequestBuilder.cs index 53c70cfdfa4..6873cc8a9e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/TrendingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Trending/Item/TrendingItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Trend UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrendingItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs index b0f93393b2e..fcd7d30571c 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Trending/TrendingRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Trendi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrendingRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Used/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Used/Count/CountRequestBuilder.cs index 14955842bde..3b754712b8a 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Used/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Used/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/Resource/ResourceRequestBuilder.cs index 6906901476b..36c3e8df0be 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/Resource/ResourceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/UsedInsightItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/UsedInsightItemRequestBuilder.cs index d5362bebd95..b043c8328f5 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/UsedInsightItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Used/Item/UsedInsightItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UsedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs index 0788cfd3f64..0cd9a409395 100644 --- a/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Insights/Used/UsedRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UsedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Count/CountRequestBuilder.cs index 7cc7e06f18a..69e940d4229 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs index 1a510a5d06e..0a0b5389459 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 666cc4059f9..6c4f438bd2c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs index db7914f8aea..3dc565de833 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs index f2b4357a4bc..0c48ff1f406 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs index 7e8f04843f8..014c7d28403 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs index 4dc7127ec53..7ad313b8ba2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs @@ -37,7 +37,7 @@ public static ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"shouldSetSpoSiteReadOnlyForMembers", n => { ShouldSetSpoSiteReadOnlyForMembers = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", ShouldSetSpoSiteReadOnlyForMembers); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs index 9cefe4e2be6..91fc8279dfc 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArchiveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs index 803a87ac610..30ae773418c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs index db095022022..444a5afb74c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs index dcd8d2e3c68..fe2c0451b76 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index af5bab1a359..3ecb18a8acc 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs index 47a41a75def..92811ab7a27 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -157,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 6520562a8af..d61325ec031 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index 7cb488b2a75..0c5a9082a00 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 1e42d7b443e..b009ff42fb0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs index 938b69a233c..c848693e323 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 06c597c62cb..668a6309625 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs index 5bdedc72a58..30e20b776b0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs index b06c9755b0a..7bc041a4845 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 396321e12db..9a25b219d12 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs index c36ddedd1f0..8a295f2742d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index ee09d2b5c09..cd625e2ee9d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index faf56bff301..594e494d2e4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs index e5444e54a64..9fce42eada5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs index 70fdf2abae6..4b98089fc8c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index 79916c8aa83..de4ffabf6e3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index c06083c24ec..dd36dedb094 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 5aba3e3726d..26d53ea55a7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 2e2d0b967f8..8853843d373 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index d6c44282eb4..2eac18c9dec 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 8da3e3fd602..cf6efd558e6 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index 59cc935c6f9..15c02385a56 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 9363ecc6af2..300077c9d11 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 81ca6cd731f..7cd94c1754b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index fb5393a3477..f4fcfee0d2d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 345934c765b..00d8f76aafe 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 3efadfd7673..7f1b767a352 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 55ecf6e84cd..177540c74f7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 3fadfb02d5e..37c5c5b7cdf 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 466e8d0a6fc..6b83ccdc4b2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index fd06be83cf8..95e0fb54049 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 2e13e07b46d..eb498ded5c1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 9879263a862..96b976c9a09 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 6bf8dbaab2e..399493161ad 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 8bbd124a479..f5e8cc82528 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 0b66403259c..82ddbaf6b7c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 94af662909f..7a274540ccf 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 62e872e3a01..54ea94c3e64 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index db9df7882e5..c9dcb199ae4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index a5e2f34ab00..4b4a281734e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 18d0e5070d8..922177490c0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 70c08433bbe..2f8059ac70a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index ef6235ecec8..316d5f7d137 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index fd558f768f1..86b02ef691f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 8a4da8163a0..d66f14cac93 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs index 1a2ff95c4c5..cb0fa2e97cc 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 0cf22eb4540..72931eb8127 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index 2b925938d13..aec4e170358 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index 9f73812c7e8..fe47e99c57a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index ea01d96b31f..fbe61f0c396 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 2fe2b82cbb0..9deed189155 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 4111f082d46..b3fb23754b5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs index 260cd507848..1e75819e0c5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 110a439dd8d..c624b01fa87 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index a14b90cc9a2..ed4e7f45e54 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 8fcebacf58d..6534fdfb1a5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/ClonePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/ClonePostRequestBody.cs index 6d685432228..4888146ddb5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/ClonePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/ClonePostRequestBody.cs @@ -99,7 +99,7 @@ public static ClonePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"classification", n => { Classification = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("classification", Classification); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs index 74b4c1ac8b9..36b4716d76b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClonePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CloneRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index e6042b76be0..8eb4bd9adb7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs index f529b09d61a..ca449f54061 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 1298b3f0c56..8ca409725de 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 04f5d43b9ef..d7c5f12527a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs index 6e7f2119a87..83ef99c49df 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs index 7684eeb71f4..b43b0889626 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs index df7de95a6c0..d63c2834c04 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs index 0b88cfd94b0..67f75ec1268 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs index f368c9638eb..79ffd632915 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 9a2b4a44566..b95abc5ee7a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 7167ecdd102..37c8852a54c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index f509ab3b91f..d7ea6cd60fc 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index e98659e1ec7..33055398d0c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index a95d2b375fb..91f133242b9 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs index 2f279ec3d65..e8704b8b1e0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs index be1f53d1995..5d71f374bf5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs index c4281249eac..f389a07dcfe 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs index 83ae630c0af..4f4cdcd1828 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 1b673040868..47fdc2b4ec1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs index 735f4cd12d1..1beb117c108 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs index 4c803d7f523..d8a9e2276e4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs index f0f8310f9cc..bddecfdb576 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAsyncOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs index d2d6637402e..f9b346d9453 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TeamsAsyncOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs index 3e010fe0c9d..fcbbd0c3e33 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index e35b70c3cb4..f75d8188818 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 4f6fa125cd0..83dd8f764a1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs index de3f26d3fbe..1cafb6e8a10 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,7 +90,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -118,14 +118,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs index f15fd081caa..fd23d35a0bb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index fceafde7ad4..09c59fb9cdf 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index 57212840171..73929eeb8fb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index b39b6c5607a..cd15b955e00 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs index a9664ab7d0c..22f5055026b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index c6e3f753c9d..ac67f1a32e9 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs index d8b2bc165c8..7fce240196c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs index d4914ec3b60..675d894fe12 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 9a3d591d8b6..39098b23f1d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs index 4def5566026..2e678449c1d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 0a9872d219b..8e8ca9c9a6c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 3476d1f95a4..86214c0e0df 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs index 112b673fa00..656c7d46d40 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs index 9aca42bfe20..1ce94425ce0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index 94266016719..70094d0b70d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index 649bcaba821..e667e77c968 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index e61f66b343f..9d22772c9bb 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index ba32223dc8d..0e2d1132a56 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index d097c41a70b..409fd8e2297 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 2272e72debf..0314ff7d66d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs index 3c3bc81cb3c..fdc3338efbe 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs index c4d95a4f3e7..8a0187d5ba2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index f6bbd2356c5..bbbdc2e8035 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index b73600309db..cac1efe3405 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 42149e4bb8b..76c9c0fc861 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 44b48efd80f..b693072af33 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index c2b60346f2c..7500aec0352 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index edbc1c3e5bd..2c713501736 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 7358c8752b9..8fe8f33121d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 21a329b084d..394665b2426 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index fdb8a4b7f50..4ab27f91560 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 3d98291281d..b83ca2b21d5 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 6bc3e7184c8..b35bf119f72 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 02b1f66e07b..97c3cab1f59 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index c059bca933c..66978034b59 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 00cad68e8ca..f4124233b3d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 0a4ffa88fb2..4004fe5cb86 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 3c67a494d73..13f62463668 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index c239c3667ce..68a3f4cb911 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 9b0e35dbe2d..ffde042657a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 0a47678ad3a..9f718f91768 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 642a3534179..7226d52f2e4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs index 97ea87ed4bf..27100ba7040 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -155,6 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -173,7 +174,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -201,14 +202,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index d8edbccc17d..0b13ba049e2 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index 113ead1aa6d..14c03e09671 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs index 3401c1f8443..2fd5aea6b68 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index b70c0c649f8..a74c9026f10 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index ab822d5eb88..a0f1f34a02c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index 984a2c5f33e..746e4d9c723 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index fa9f4aea587..d64cd64d465 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index d51d66a4e82..d29e2514862 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 5276e788251..54eb4eab3c6 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs index d6706a075bf..d75f3e86c14 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 28825783df8..cbd018c0b6c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index 5db12366790..23e72599887 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 29899925509..c12d9643a54 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs index 2c4351ccc58..56ef86ece6a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index def4ea66f0f..2e051654ae3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index fc7fff63676..dce65e40282 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OfferShiftRequest body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs index 33e73163cc4..587a84eb62f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index fdf370383f1..3c31bd4a680 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index de48df3c436..983a5f84e8f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs index 6469cb00c49..043948607c3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 22080a165a2..fcd656e505c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 85bf12387b0..8b909918517 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs index 24a4ceccf21..9c049cdf08e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs @@ -160,6 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -178,7 +179,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -206,14 +207,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Schedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs index 11ef5df5d51..f5889f86151 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index ab359c4b5b4..007f2cae2f1 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index 8a567848bbf..0d6c214857c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SchedulingGroup body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs index 56c6ff93cf7..90d96ed187d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs @@ -47,7 +47,7 @@ public static SharePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"notifyTeam", n => { NotifyTeam = n.GetBoolValue(); } }, @@ -58,7 +58,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); writer.WriteBoolValue("notifyTeam", NotifyTeam); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs index 67ac16a135a..1d13d0ce45e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SharePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ShareRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs index 5c792489836..a4c7db6302a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index d135f6c1dc8..bd2fd9148f8 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs index 0073ca14db0..2aa0b64d00f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs index d77ec970912..fdd9fb092f4 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index 3523cc148c0..98bd8fcab3a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index ce43a90805b..9475996cc4b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SwapShiftsChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs index a39b1ec9f8e..eff72388c7a 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index e04dc3bbdba..c69c3735bef 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 0b698720048..7371c0777ac 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs index dcb4f8b9a0c..6ecdb3f2322 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 383265bf6f5..0dcddf35a58 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TimeOffRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index 7ff6bb2fdf3..93fc5c681ab 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(TimeOffRequest body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs index 7d70da0fbed..0ba98a84504 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index 1094e815ff1..8d61f2f201f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs index 97a197df7cd..e881e639bf0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index f94fadbf4f4..4e983b6ab4d 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 028e7f1f819..000e71e8ab7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs index bf6149a1f42..ccf367eee64 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs index 2566a64ba31..5353bd153cc 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 51f2073764d..461bac5666f 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamworkTagMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs index be0b863aa68..9f644314357 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 70ef5f749d4..bacb1a3d497 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs index 2fe8f992dc0..42b40643c01 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Tags/TagsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/TeamItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/TeamItemRequestBuilder.cs index 1c91af7734f..7817bda9ab9 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/TeamItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/TeamItemRequestBuilder.cs @@ -199,6 +199,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -217,7 +218,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -245,14 +246,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Team UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Template/TemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Template/TemplateRequestBuilder.cs index 78c1a5099c5..7d92190b796 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Template/TemplateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Template/TemplateRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs index 511782c0823..cf61bd0bc65 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs index 66d9919f2da..88b8a7dca6e 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/JoinedTeamsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Team b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new JoinedTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/LicenseDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/LicenseDetails/Count/CountRequestBuilder.cs index 530a098e235..4bde42069f0 100644 --- a/src/Microsoft.Graph/Generated/Me/LicenseDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/LicenseDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs index 31ea9068a46..ca28025426f 100644 --- a/src/Microsoft.Graph/Generated/Me/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Licen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LicenseDetailsItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs index 332480457ca..bdd65730ec3 100644 --- a/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/LicenseDetails/LicenseDetailsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Licens UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LicenseDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Count/CountRequestBuilder.cs index b4d93fcd5f8..71daba3d30c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs index 7a481c458bd..7169207e0ee 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs index d3562eaf551..e889231cf16 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 80d50dc89e3..aa9b668c4d1 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs index fe9cf7673a5..2f6ab65aae3 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs index 25d803a3766..340d8c26460 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 0e45e419195..52415086d6b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs index 1bbcccaa033..e0ebb122889 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs index 4924d84a958..8927efb199a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs index b7acd290d55..2dabffe8d17 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs index 79c329cffa5..2ab650d5f65 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 220521cbe4a..f314aa24027 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index a70d25cdaf7..8cc2b93b001 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs index e1a31d7b251..959359b44e6 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs index 205fb5f713b..3daa1650e75 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 9477d61f6d9..286ae7f77b1 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index de156c07655..b938ce82625 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index bad2699faa9..8fbd38c69b7 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 420ad534665..b6734131bcc 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0c83317fadc..c85a4ada2c5 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f04925a3367..f8ca32eb659 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs index 090af505cde..fc03bb5b008 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index ddd1f52e24d..c306341c243 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs index c184613cc47..4471d96167b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static CreateForwardPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 9531ca50ace..8844e2994cb 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateForwardPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs index 9d39a074c72..ac8d187e3ec 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index c99b55f97c7..58eac04ac6f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs index 42e75b8f13a..2c7f6caf9ca 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index da8d48ce3d1..67a5cd760f1 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyAllPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 51eabb28c7d..dc5d9c19440 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 2cbc062603f..12f216b1402 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index cb991708cc1..531aa667957 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs index 4dc9cb95d6e..feff0ac3499 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index d646053c472..37e82e908a1 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs index ca2e4af6fa5..8b752e9040a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Messa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs index 9dab4935330..f5fe1fedb18 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index 4329c8b429b..10848de51e4 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs index b5ee250978f..8717f7fa1f6 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index cdf3ac02039..ab94d8931ee 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs index 3e45e424e41..83a7f581fee 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index d94ee76aa5d..eaf23e34418 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyAllPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 4a513d740e8..c58d7cda0c5 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs index 80cbfadfa6c..3b2e620114b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs index 6f4fc8d0070..b3d1877cac2 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs index 36181c2751d..190061724cf 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs index b1e2c351c87..12d3357c331 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyPostRequestBody.cs index 69cd9e764ab..14577514c04 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs index 093ac9427d7..4a0e40748ad 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs index 21fccc6dde4..7c1f835582f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -94,8 +94,8 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of mailfolder object. This API is available in the following national cloud deployments. - /// Find more info here + /// Update the writable properties of a mailSearchFolder object. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of mailfolder object. This API is available in the following national cloud deployments. + /// Update the writable properties of a mailSearchFolder object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs index d28e8d9a46b..ffd88ff4bd6 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 2bd816aff70..c1be2b66639 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 02f4fe37503..7066d8e6a11 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Count/CountRequestBuilder.cs index 498da5dbed0..8aab0aed4e5 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs index b1c625019c2..c4d3298a0cb 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 780f45ac3bf..7ba065e886b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 2d91a68d17e..5f4ca73f758 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index eccb863a024..1359b45c46c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index dba611c470a..8469fa8ea15 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index f3fdc4d0950..5edb9f8c04a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 449164a3bfc..6086fd40784 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs index a2597117688..8928bdeadae 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index d9d5d2b10c7..0629fad142a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs index fdd1d8adbed..14bfbb381d9 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static CreateForwardPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 72e2f895472..ea0eb1a7300 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateForwardPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs index 21ff4894159..39e91b29ac0 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 57ca8c83090..87c56f29359 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs index 9eb855f182d..46aa93c3d4e 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 0edb4f64af2..9f7a9504270 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyAllPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 8fc2c57a3ea..477b0e1291e 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index ba5bf631578..f5459dd0247 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 01bd08cad63..99940a95a2e 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs index 24c495cdc90..90a268e0417 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 3f5815910a8..f377257ebe6 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs index 929749f2177..3dcc697479f 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Messa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs index 4563c111bf4..caef7eff357 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index b4d9c91274c..2830491f34e 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs index a204db58119..eb39b716eff 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 1202cfa1ed4..246aaacb082 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs index cc5e8cb7b68..1cae5c5da81 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 5b8a62de89a..8ab5243c1e0 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyAllPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 145b00f2eb1..4f6e18b1db4 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs index 58eb4965c56..1786b944120 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs index 4c2ba6ba2bf..f8dccfaf666 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MovePostRequestBody.cs index 6659cf3a5c4..522f2ffc4a3 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs index 534034d2ed7..f29ea0be526 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs index 1f28edbdcae..a4d04b36d30 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs index 7db4bb60238..ee83e581039 100644 --- a/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Count/CountRequestBuilder.cs index 60c3b2506d6..ae9baf04927 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index c1eafed1726..6fff66f8aa7 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 6cb73bc07b5..fdf48822b8d 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Count/CountRequestBuilder.cs index 8bb0cf7996f..f69fa36d8be 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs index fa95840cf70..faf5bfaff71 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs index 223fd8f5e41..3533bd90009 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs @@ -37,7 +37,7 @@ public static CleanWindowsDevicePostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keepUserData", n => { KeepUserData = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("keepUserData", KeepUserData); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs index 17c916c330b..310942bb5f8 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CleanWindowsDevicePostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CleanWindowsDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs index 29277789a4e..e42ef1c46b4 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs @@ -46,7 +46,7 @@ public static DeleteUserFromSharedAppleDevicePostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("userPrincipalName", UserPrincipalName); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs index a2a3052050d..a043873bf2e 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeleteUserFromSharedAppleDevi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeleteUserFromSharedAppleDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs index 6c5654fd3f2..2fb42b9fd8d 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCategoryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs index a7bca6d7284..e9c088d4a34 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs index a6d805bdd56..4bde341ba74 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyState b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs index 482f167cd6b..95818c5404e 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyState UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs index 5054b27769b..27758672dd0 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs index 4fb44072c93..3c5683cfc08 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationState body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs index 1b6a21ee656..4a7aec21e02 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationState bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs index 6b0001709ab..c91a22d3f6a 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs index d3da344a21d..06e796026bf 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs index cd99f38370a..fc6662cf6cd 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs index 349117c14da..fb2ec8965ea 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -46,7 +46,7 @@ public static CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index 3d9c544166e..f09dc976af2 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs index 8a46bb2e364..d90cdec7d2a 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DeviceLogCollectionResponse UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceLogCollectionResponseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs index d9d8372d74f..2d7314d6d5a 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceLogCollectionResponse b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogCollectionRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs index 240f176dcff..a5895157db9 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index e79f718ade4..35fcdc67cb2 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -229,6 +229,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -247,7 +248,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -275,14 +276,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDevice body, Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs index 44252b272dd..43bf118ecd4 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs index f4739bd704c..2303ed2224c 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs index 7c68151ede1..59be19cb73e 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs index 512c2e5c0bc..a856fbf9d41 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs index 487e8902cf8..9dedf77ff23 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Retire/RetireRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Retire/RetireRequestBuilder.cs index fab1a4ae218..a72fdf73630 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Retire/RetireRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Retire/RetireRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs index a44baf6224a..bd729382dbb 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs index c2bd4d6c0d8..536c4fd1e9f 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs index 38752593e6e..164e9b5ff5e 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs @@ -47,7 +47,7 @@ public static UpdateWindowsDeviceAccountPostRequestBody CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"updateWindowsDeviceAccountActionParameter", n => { UpdateWindowsDeviceAccountActionParameter = n.GetObjectValue(Microsoft.Graph.Models.UpdateWindowsDeviceAccountActionParameter.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("updateWindowsDeviceAccountActionParameter", UpdateWindowsDeviceAccountActionParameter); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs index 68a2d671522..ec8a70f3285 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpdateWindowsDeviceAccountPos UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateWindowsDeviceAccountRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs index b1f7695e98c..88487666669 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Users/UsersRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs index d66727c47eb..069ab3aa8ca 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs @@ -37,7 +37,7 @@ public static WindowsDefenderScanPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"quickScan", n => { QuickScan = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("quickScan", QuickScan); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs index 131314df9e3..f457a0450a1 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WindowsDefenderScanPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsDefenderScanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs index fec8bb4eacf..89f4a2323b4 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs index 34fc8d6ec47..e9e3aa89d72 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs index 6c97ae294af..88b43a31a4a 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsDeviceMalwareState bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetectedMalwareStateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs index e3c33c54c04..33e47555f4b 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(WindowsDeviceMalwareState bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsDeviceMalwareStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs index 27f1779dfbd..85e873c6013 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Windo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsProtectionStateRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipePostRequestBody.cs index 6f70b06159a..fccf8ca7388 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipePostRequestBody.cs @@ -61,7 +61,7 @@ public static WipePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keepEnrollmentData", n => { KeepEnrollmentData = n.GetBoolValue(); } }, {"keepUserData", n => { KeepUserData = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("keepEnrollmentData", KeepEnrollmentData); writer.WriteBoolValue("keepUserData", KeepUserData); diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs index 3de7173c08e..488d276b36d 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WipePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WipeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/ManagedDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/ManagedDevicesRequestBuilder.cs index ef7ace37726..4b19284e406 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/ManagedDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/ManagedDevicesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedDevice body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs index 3a06905cb08..f316ae5f7cd 100644 --- a/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Manager/ManagerRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs index 7fe39d449b4..ba7dba68974 100644 --- a/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Manager/Ref/RefRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,13 +131,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,13 +158,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index 5fac7abbb3f..54e108c4f89 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -458,7 +458,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -486,14 +486,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.User UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/Count/CountRequestBuilder.cs index fbc2e613130..6986754a404 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 5d7f39dc4ed..b0db6915730 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index eadec673a22..8ed2bfed750 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs index ade2c7fd369..f51386024aa 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 062a616e9c7..231687e8053 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index 98673a49101..1c4a395370b 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index b3436a4e7a1..92e33c65a0f 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index c6823febbe2..e33193889b6 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 88d207dcc8e..585019653c3 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 0eea39ec7d6..b234151cc92 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 2b3cfd13270..9b5880e69dc 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MemberOf/MemberOfRequestBuilder.cs index 38d386af0cd..bc2a6cc4fce 100644 --- a/src/Microsoft.Graph/Generated/Me/MemberOf/MemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MemberOf/MemberOfRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Count/CountRequestBuilder.cs index bd06eb6cece..27af64f73e3 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs index 3491e3fce18..36535bd1aab 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs index 762c127bdcf..34e54220b87 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 16ee998a5ab..84b00e8115b 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Count/CountRequestBuilder.cs index 472f03cc862..cb3438ef493 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 2dbc70cf699..081bc5c67f6 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 2d74440e6c0..42268bb9f97 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 4843fd65862..0faa0334ed4 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyPostRequestBody.cs index 49bbda16256..8aa469ffee8 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs index 348a9bc9f84..6a91b793c73 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs index 2ef02f7c47c..ef69b187ced 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static CreateForwardPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 01a42f74c87..8cf4394ed7b 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateForwardPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs index 9d0fcabb0f7..7d3cd3b29b0 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index cfe0172b2d0..8448a671852 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs index edd398b8bfb..99220cb8570 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index cf184035473..f09588eae9c 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyAllPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 6789d61387a..73559dc84a6 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 16d2098a2cb..df6c434dbc6 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6fd30abd9ee..e695d6f282a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardPostRequestBody.cs index a8d7cda6ae8..14b18ca850c 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs index 694055bb92d..e36330f961a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index c414b1ee910..9a7f0101d6a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete eventMessage. This API is available in the following national cloud deployments. - /// Find more info here + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,8 +129,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an eventMessage object. This API is available in the following national cloud deployments. - /// Find more info here + /// Update the properties of a message object. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete eventMessage. This API is available in the following national cloud deployments. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -172,6 +172,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -190,7 +191,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an eventMessage object. This API is available in the following national cloud deployments. + /// Update the properties of a message object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -218,14 +219,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Messa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MovePostRequestBody.cs index 361404e6e4e..c32b0b63558 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs index 2eed946eabb..75791e34501 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyPostRequestBody.cs index 1fabcc53fb1..b1c8b581c85 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs index 10abaa29bca..af1296c1925 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs index 9d779f4b2a4..22539f0f11e 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 6cc538b7bf7..057d83d0d4e 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyAllPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs index 7bbcf99cfe9..0478d844142 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index 702cb5165f5..cadb708f4fc 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 435967cc702..01a8972bdc5 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Count/CountRequestBuilder.cs index 73c51f1863b..3a0ae82030d 100644 --- a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs index ac1604833a2..0e33a46f8b3 100644 --- a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index abd57e4e7ca..1ec7b4323c3 100644 --- a/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Count/CountRequestBuilder.cs index 046e6533923..ac91ab1ee4d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index 899403cf7f6..2c9f674d4e2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -46,7 +46,7 @@ public static GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"webUrl", n => { WebUrl = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("webUrl", WebUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 66d28a099e2..7e1f74ddfad 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index c110c5eb814..0f975fd9cad 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index c7817cecdda..9076b7c6a79 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index 5ef64e4bcf7..573282c1871 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"notebookFolder", n => { NotebookFolder = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("notebookFolder", NotebookFolder); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index deb36f40c4d..f538511c3fe 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 3a0d178eeb9..37a9c4e6371 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index aed3017c241..520705be102 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 85fccfd2d49..83d3f8019c5 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 989422b3302..768f4223980 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index be792dab12e..58ce7deb0f9 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 217d4cd9fa0..e43fe4b1f42 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 3f5703182b5..b4f555bf708 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index ec2101e94dd..9cada4d6daa 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 5f590b775a5..feda17755e5 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 8721bd312a0..3e47ee75a3e 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 6bec5951566..9a6c42ef3a5 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index d93f103f95a..d79422d3612 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 44eb6baf976..92f11b7f61e 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index bdcdbb0f8a5..528f05fea17 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 9ed09a8e47d..10284e0cadf 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index fc6c3f3a5f2..44f39af8fec 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 846c1ed137d..e0bfd4249ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index aa100b912de..deb52d78bc8 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index bdac265ee4c..9e92fe1cf15 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 83d172123cb..ec58226f0e3 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 49afb108d88..a1d63d78a97 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index c76b569b7c1..ca733b2caed 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index a3cffc113e1..0dcc9d1b90c 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 1bb60731167..fb2265b8ec2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 7755c6f8f99..16b5b410a95 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index e0f4dc8e192..a1b297d109a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index d68389b7015..35cd8176bfc 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 32e130c89a6..48703b95b4b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 358909c972d..1aa11f16b36 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index dd06677223e..67be90f8064 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index a79afbeaf3e..cad5f9c463a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 7b9746b3e8e..c7630bf3b57 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 643a084c148..3e3b151b274 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 2bbdf787ccf..dde1b0b76fa 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 6b2d777ba8f..917d9c421df 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 5c7b97215c0..a71d796c5eb 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 6cf4fce71f2..11c6719059a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index a329adc3f99..8481a5eb1e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index efece764c3f..0fec838029c 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 35831f0116e..f5527163eff 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 4c2d7b78e8c..71ba6178dcd 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 214306c64ad..567083d5d21 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index f7dfb7078dd..1a592e2da10 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 6cca6d9286b..3867583fcee 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index bf2ad258ba4..d166117abc3 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 31e815aee5c..ab95319f206 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 792093baa2c..b06f90aad21 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 26caeb95847..c533af5b3a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index d9464a458f9..83b24d7a08d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs index 339700187c8..4c3cbc9995d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/OnenoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/OnenoteRequestBuilder.cs index 04aac8d0a22..ca5a2b0b7ba 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/OnenoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/OnenoteRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Oneno UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Count/CountRequestBuilder.cs index 626b30142fc..ec2597b0871 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index dba7bbdf55a..34caf673cfe 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs index 205d579113c..82cb9556dd2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Count/CountRequestBuilder.cs index b579a6c5b41..0c47a1039e0 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index 761c1c184e2..1b03edb46d5 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index e0667633592..90200eb7e25 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index ba227e737dd..c60dc05e56b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 36e05eefc44..8dd6fe0b6b6 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index a459bf4353c..50bc9264af0 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 648ea7820d7..ab4ae1928c2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 4494e2e7857..8749d42c6ea 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index b9c01a90bdb..fa734050019 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index 7b2ada4cab5..62c425e68a2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs index 1bfc7f068aa..9a36abf86fe 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Count/CountRequestBuilder.cs index 2db535352c1..209da88e38b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index 164e6dd430f..65e399338fd 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index 3ce9caa01b8..18610b41828 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs index 425e6c1155b..d2c8f901b2b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 2b72a3c6c64..7c9a42c09c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 3cb3f7964b4..b9834688616 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index cef3cc06e77..05accefc6d1 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 4202bcb8d60..60d367ed924 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 137b4b00eb8..286e71604a2 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 31fbb155507..ba4ef21f8ce 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index b0dd129008c..22d8b57cbf0 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index b88dc8855ec..48052fff9af 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 86f66b00906..d1c9d8b9d76 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 2c20d074507..a723ccb879d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 5f149051501..f061f940010 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 78df017c424..a0ac72693d3 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index d299cacd497..743ed067e53 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 4ac8f1206da..d9533d32f86 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 11c54532c9f..feeb2c061b8 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 59c604237ad..2ce6f15ec48 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 8016e6cdaa3..3996642686a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 5e6d2fee15a..d1d88e538fc 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index b3b06976b92..d6e7c84bfd5 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 55f7936f4c8..a0c08f0d039 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 60cd15b3420..ed177a66c14 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index ddae2047a7b..4ba84c1212d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index b05fce1c3ad..ef76539383d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index e23104d6b05..7a2bcffcbde 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index fdb00a3c78f..a58e0730a7b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 35ee5a050b3..08459631813 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 3712c3dc838..9e45f2c295f 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index 872e8d6fb1f..f0bc6dea79f 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Count/CountRequestBuilder.cs index 63603580d2c..c4c10c5295d 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index ffbc7e3eaef..be8cc1c6ccf 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 95c18faec90..eac937f6b1a 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 12d8db32ec2..664391f0e45 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index eb1a476cec8..d956cfbd6bf 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 2467494881a..c3962edee3f 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index 420422e96dd..39c82be95f9 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index a7b5a7c465e..b9faca3a439 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index d26c952de68..10c249cba4e 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 84ff561b9c7..d6f63c85bad 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index c5fab7310a3..569ef4e5ea3 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index ada7194540e..a65e65eb904 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index a7d4f38f817..454445a3013 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 023d94eb86c..a7fe40dd23b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 1cfa0e5e9f0..b683e047353 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 202cab9b0b9..e8a98b7363b 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index e0630f2c660..85cfd89df0f 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index a93a955a3b3..ce7d0982960 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 063026151ce..2d67edc459e 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs index 81d115eebee..e16963b067c 100644 --- a/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Onenote/Sections/SectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Count/CountRequestBuilder.cs index e9d5777dc58..b24a3817672 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs index dc19f9bdfbe..b0d332d0243 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs @@ -99,7 +99,7 @@ public static CreateOrGetPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"chatInfo", n => { ChatInfo = n.GetObjectValue(Microsoft.Graph.Models.ChatInfo.CreateFromDiscriminatorValue); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index b4fb93ce910..e5c2803f990 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateOrGetPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateOrGetRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index a4ba299f7d2..86775a90a26 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(MeetingAttendanceReport body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceReportsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs index 7a06304ba55..0c35c114148 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index b54cfff8da8..0282ea71521 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AttendanceRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs index 79e6f73db81..1eb5e45e109 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs index e05ed229fde..424377b1b88 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AttendanceRecord body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index 2627a443c6d..cf85d9f6bf2 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(MeetingAttendanceReport body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs index a322be8b026..944ba771b52 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs index 95030d9532d..cef19805ca0 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs @@ -46,7 +46,7 @@ public static GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index c2ccd1fd562..2d53a5cb722 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs index f3e43cea3ba..62b71584383 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(OnlineMeeting body, Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs index 261d96e0983..9f351fa304f 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs index c208fa95d31..18a726279c8 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(CallTranscript body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CallTranscriptItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs index 020801005e3..e2fbdc1a2c7 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs index 3ccddadaf76..f62b4a7115a 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs index e24b17b8e12..5d2f4614c56 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(CallTranscript body, Action diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index ccc20fef810..2cb7f039d3e 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(OnlineMeeting body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Count/CountRequestBuilder.cs index 2274254bfa0..f8fc02604c2 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index dc407988029..e17bb215ba0 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OutlookCategory body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OutlookCategoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs index ea5a219bda4..1a1cb151bac 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OutlookCategory body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MasterCategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs index cc0ef407afc..f42ab406316 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/OutlookRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs index 296b44548d5..0f18ad3c62d 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs index 5211159de03..0420fb1d0b9 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs index 7dce320f2af..8898b0eebd3 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs index 23bcb8193f6..52de39d0c7f 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs index c7bf160f9d3..3d8865153a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs index 88f3b19bcda..a9a723d1b8a 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Count/CountRequestBuilder.cs index 205f6c45595..16b9bfdb291 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index 5d46bf02111..19f8117f287 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index dd302bcee6f..c7a655e481b 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs index b67ced7c870..269e79a5dec 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs index e7efd43ac9b..42aa3983b07 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs index 627b54a84ce..2c0544ef458 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs index e9d2b7d276a..3745ae4cb00 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs index fb8b3416767..71cbfaab72f 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index a5155b10356..47bd0087f9d 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 210e4ef266d..62b932ef51a 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index bb673b87a3a..d881fa0f77e 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedDevices/OwnedDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedDevices/OwnedDevicesRequestBuilder.cs index 1a675f549ab..8c30e0bc4ee 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedDevices/OwnedDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedDevices/OwnedDevicesRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Count/CountRequestBuilder.cs index 05eedc53d6f..50a63222e9d 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs index e4eb5eda6cf..86c981b9cfd 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs index 017fe09a28a..b5ab1f95b06 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs index 4103176d052..df0dd77ec73 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs index 2d810bf608c..0ff4f3f0a6b 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs index 126db23aea0..c31bdf75f65 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index a60da43ad46..794c8d8fe48 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs index a3a656e1fbd..cc15b616b94 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs index 169de9a1db0..d335ae3358f 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs index abad4c31774..7556078a8d0 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index d13e2ae15a0..1c087c907dd 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/OwnedObjects/OwnedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OwnedObjects/OwnedObjectsRequestBuilder.cs index f2d424278ef..a1fc3a9b41e 100644 --- a/src/Microsoft.Graph/Generated/Me/OwnedObjects/OwnedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OwnedObjects/OwnedObjectsRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/People/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/People/Count/CountRequestBuilder.cs index cc013e9f119..f9b2c72992e 100644 --- a/src/Microsoft.Graph/Generated/Me/People/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/People/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/People/Item/PersonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/People/Item/PersonItemRequestBuilder.cs index d4f2705971e..eb41eb4bcea 100644 --- a/src/Microsoft.Graph/Generated/Me/People/Item/PersonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/People/Item/PersonItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs index 572823bd282..ae747a2f92d 100644 --- a/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/People/PeopleRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs index 574f5f87df1..6d58552bc3d 100644 --- a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,10 +115,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action @@ -195,7 +196,7 @@ public PhotoRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Me/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photo/Value/ContentRequestBuilder.cs index 3a741615407..765ca12c5ff 100644 --- a/src/Microsoft.Graph/Generated/Me/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photo/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Photos/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photos/Count/CountRequestBuilder.cs index 4326abd10a8..8d5bbe21295 100644 --- a/src/Microsoft.Graph/Generated/Me/Photos/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photos/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs index 5d444e68493..f74b5b0f22d 100644 --- a/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Photos/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photos/Item/Value/ContentRequestBuilder.cs index 8ebba665020..1965587b29e 100644 --- a/src/Microsoft.Graph/Generated/Me/Photos/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photos/Item/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Photos/PhotosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photos/PhotosRequestBuilder.cs index 22edc177823..d389fcbf944 100644 --- a/src/Microsoft.Graph/Generated/Me/Photos/PhotosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photos/PhotosRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/PlannerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/PlannerRequestBuilder.cs index cc470918444..3bad905e4bb 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/PlannerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/PlannerRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(PlannerUser body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Count/CountRequestBuilder.cs index 5adb284eed2..07129ee5997 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index ef8941650f8..4f4e1bdfd89 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerBucket body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs index bdf36211cb3..75f3cce6caf 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs index c099ef0326a..d074adc0f21 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action

diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs index e7be398ad4e..0412c7a67c0 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 5053f23ca17..a0514935b9d 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } ///

diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index ae9bc641abb..db0a7dc4ddc 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 6cd8e46d771..9e58a5ad776 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 1d8e4cf2cad..ebf331da7f0 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 11d110a7c8b..212ca67375d 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 320f8df10ce..e6e0a3c2713 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index ec7c4ac738e..620793c6e20 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlanDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs index 11bac437a82..fec29fc178e 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs index b10efe3dd93..b81eea4d6fa 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index b773c17ecdc..98ed0a690a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 7a374b555ce..fda4f802ac8 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 7a1a8ea81f3..5251d8f5556 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 89796f71df4..7afead096e2 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index f8f7f40a391..87bcaa0ad3f 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index af0956dd5a3..ad7c4786698 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs index cefa3d2ad90..58f10f8bb8a 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Plans/PlansRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Count/CountRequestBuilder.cs index 6f3bd764918..5a0c6fb325b 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 7b56ba5faf3..fff2d50fd68 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 9fb9ab9e42f..4407ee9a285 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs index 38eca1904a6..4bd6349e2a9 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 86151c54c75..8c6c3e86da6 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 1beab48cb5c..ba47e87b3df 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs index 8e9cdbac5c6..4137add772f 100644 --- a/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Planner/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresencePostRequestBody.cs index b4c58ea6bff..3b3a148cd07 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresencePostRequestBody.cs @@ -46,7 +46,7 @@ public static ClearPresencePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"sessionId", n => { SessionId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("sessionId", SessionId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs index 4b0bb1128f4..ff7d51aa8bd 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/ClearPresence/ClearPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClearPresencePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ClearPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index c36aefe0c28..6143f41da62 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs index 955f2612c17..4e3c743292b 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. This API is available in the following national cloud deployments. - /// Find more info here + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -135,10 +135,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. This API is available in the following national cloud deployments. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Prese UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PresenceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -215,7 +216,7 @@ public PresenceRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a user's presence information. This API is available in the following national cloud deployments. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresencePostRequestBody.cs index 28d128159b5..b505b632543 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresencePostRequestBody.cs @@ -79,7 +79,7 @@ public static SetPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs index 14c8d34b7e4..2728e7a6235 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetPresence/SetPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetPresencePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs index 37d932e4a4d..185046503bb 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs @@ -47,7 +47,7 @@ public static SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("statusMessage", StatusMessage); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs index 8a53808f3f7..5e699dffccd 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetStatusMessageRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs index e655fa2b341..5d6c2e51a37 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs @@ -65,7 +65,7 @@ public static SetUserPreferredPresencePostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index 90f656543e6..b463e028b50 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetUserPreferredPresencePostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetUserPreferredPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Count/CountRequestBuilder.cs index 5d40e872bd3..70bfb6f12c5 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index 0ed79843985..e187a292f44 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 560ff2b52c1..8c3238f289d 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs index 41b83586dd9..7a86f715929 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs index 58bb8aa5658..c1e264ae08c 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs index 7539439383a..55b4b1bf7e9 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs index 904341426e8..030a159565c 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs index db400d9e71e..649db7fdb9b 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 0dd5bcd0b8e..a00d65e8d4f 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs index b8405f60b2e..0dcedc67e85 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 6c1f9cd97f5..80a83627ad5 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs index c787d1b646c..c552808dca1 100644 --- a/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RegisteredDevices/RegisteredDevicesRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs index 7bbebac53a8..d99db06ce78 100644 --- a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 31d3397895e..711b10afcec 100644 --- a/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs index 0fa0e4d3a48..5b923785230 100644 --- a/src/Microsoft.Graph/Generated/Me/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs index 4c55218d73f..826907bc852 100644 --- a/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs @@ -29,7 +29,7 @@ public ReprocessLicenseAssignmentRequestBuilder(Dictionary pathP public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/reprocessLicenseAssignment", rawUrl) { } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is available in the following national cloud deployments. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter r return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is available in the following national cloud deployments. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs index 75296b6735b..5937cdbfc72 100644 --- a/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs index 8046da22f6c..7cb6a0fe2cc 100644 --- a/src/Microsoft.Graph/Generated/Me/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs index 081389b76bb..affe79842ef 100644 --- a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs @@ -37,7 +37,7 @@ public static RevokeSignInSessionsPostResponse CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs index d3d5973e3a5..d8be536df64 100644 --- a/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Count/CountRequestBuilder.cs index bbe81fe2349..c9a07c9b635 100644 --- a/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs index 371a87b205d..6acb1e92574 100644 --- a/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs index 34a31ea1f95..cea453d4902 100644 --- a/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMemberOfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailPostRequestBody.cs index dd4a04f4deb..56f6f09ad5d 100644 --- a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailPostRequestBody.cs @@ -52,7 +52,7 @@ public static SendMailPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, {"SaveToSentItems", n => { SaveToSentItems = n.GetBoolValue(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Message", Message); writer.WriteBoolValue("SaveToSentItems", SaveToSentItems); diff --git a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs index ca828237ea1..7620177051b 100644 --- a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendMailPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendMailRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 7b47b8060e5..7f7105da20d 100644 --- a/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index af2d8faa2c2..94f3b70d294 100644 --- a/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs index 0f22170ff54..a1eb9cf0f22 100644 --- a/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(UserSettings body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs index 194ac16c3cd..47c2a212d31 100644 --- a/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Shift UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ShiftPreferencesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs index cf1c98919e9..b52a100431e 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AssociatedTeamInfo body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociatedTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs index 4429c3b0613..45c224a7d27 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs index 8ff7966869c..b0f2f5ddf43 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AssociatedTeamInfo body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociatedTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs index eee8274b5a9..486c23bbf01 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Count/CountRequestBuilder.cs index 94b6946cde4..0e131c26548 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs index 04e9abdebdd..cf31d7702e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UserScopeTeamsAppInstallation UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs index f507af11b8a..923e106ebcc 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 6ae1cd63fb8..0c8f4fd697b 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 0d76d4d647f..6b3c063b981 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs index 3a863747d17..d85601262a8 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(UserScopeTeamsAppInstallatio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserScopeTeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 2117231f881..7d6afc6d9f1 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -94,7 +94,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -107,7 +107,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index cd01b288339..df21cb9c436 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/TeamworkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/TeamworkRequestBuilder.cs index 4a98abdcc4d..aad8d632933 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/TeamworkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/TeamworkRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(UserTeamwork body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Count/CountRequestBuilder.cs index 9be696e969e..75b148e6359 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs index 7fc8ab7fd98..26230871b12 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs index 258816d313e..3f0f83ccef0 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs index b9e03384ca2..6f17afb0c5b 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs index 40d6a51de94..a8b89a3e40f 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 3ca6d523a1d..0dc26ce348c 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs index ea97ec75ae2..b8a8acddb85 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs index a9527fb574f..c6e9f81fb10 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs index 3e750dddef1..4549c5d1ee9 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs index ee6cf3709e3..5a846eb8b0b 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs index 2cd3b9f9d51..3b7c43153ee 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs index 32e66e5a054..543001010ba 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AttachmentSession body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttachmentSessionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs index da5b2b9ce1b..13b962b9d1f 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs index 25b1d75b139..735019fb733 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(AttachmentBase body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs index c8515d13337..175f5554fe2 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index f2b65839b60..77bd4545ef5 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attachmentInfo", n => { AttachmentInfo = n.GetObjectValue(Microsoft.Graph.Models.AttachmentInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attachmentInfo", AttachmentInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 65a636bfd65..c4d626d3837 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs index e455aba29f1..f803dd06def 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs index ac218d7f12a..7b7447a1ded 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs index 77d528d657a..00c9446ba37 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ChecklistItem body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs index ab60241108e..205e9a0a7f0 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs index be5df82b6d4..ab0645fe95b 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ChecklistItem body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs index f7089f622a7..c8b7cee1b8f 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs index aa8edcde6e8..9494750742d 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 1dfee64a0ae..487fbfee3e4 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs index e6105591f52..97d43e578ef 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs index 6dff6c903f1..b450f9a3ee3 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(LinkedResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LinkedResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs index 44becdfc871..6b9890103a2 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(LinkedResource body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs index 430afa8041e..280df2fb9bc 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(TodoTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs index ae908ea633f..aa24b9e159c 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(TodoTask body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs index 86d1442acd6..6e589897864 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(TodoTaskList body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs index ad6d0c7da43..4a8c08a24ff 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/ListsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(TodoTaskList body, Action diff --git a/src/Microsoft.Graph/Generated/Me/Todo/TodoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/TodoRequestBuilder.cs index 1379f6ef450..0c9f8c1547b 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/TodoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/TodoRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Todo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TodoRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Count/CountRequestBuilder.cs index 1518d0057ad..1ded3643ffd 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index d7e50c50140..7f7f1ebfc76 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 486848246e9..298fb60ffb5 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs index 2f28f6f526b..c6eba4dac3a 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 1a93cbcf010..d4ea66148dd 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index 04385ba58b1..ba5c5537946 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index f22c071f964..d1fd7b09acd 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index a0868e3e93f..27d62421256 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 55313ee6abe..ba6381b38f3 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index be2b91d284f..64873fe4e38 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 967ed467c9a..ff20ce4b671 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index 41bab6d2f00..075f9a021ee 100644 --- a/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs index b29911b749c..7ee5290be78 100644 --- a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs @@ -57,7 +57,7 @@ public static TranslateExchangeIdsPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"InputIds", n => { InputIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"SourceIdType", n => { SourceIdType = n.GetEnumValue(); } }, @@ -68,7 +68,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("InputIds", InputIds); writer.WriteEnumValue("SourceIdType", SourceIdType); diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs index 96391a11f3b..1f9b06a497d 100644 --- a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs index f7eec77470a..c2793ca592b 100644 --- a/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(TranslateExchangeIdsPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TranslateExchangeIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs index 255a89ca249..9416cc87a39 100644 --- a/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs @@ -46,7 +46,7 @@ public static WipeManagedAppRegistrationsByDeviceTagPostRequestBody CreateFromDi /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceTag", n => { DeviceTag = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("deviceTag", DeviceTag); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs index 4b1d1208cb0..bf7c6e4c1cd 100644 --- a/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WipeManagedAppRegistrationsBy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WipeManagedAppRegistrationsByDeviceTagRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Models/AadUserConversationMember.cs b/src/Microsoft.Graph/Generated/Models/AadUserConversationMember.cs index 57973488a55..741fe2fac9a 100644 --- a/src/Microsoft.Graph/Generated/Models/AadUserConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/AadUserConversationMember.cs @@ -20,7 +20,7 @@ public string Email { set { BackingStore?.Set("email", value); } } #endif - /// TenantId which the Azure AD user belongs to. + /// TenantId which the Microsoft Entra user belongs to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -79,7 +79,7 @@ public AadUserConversationMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"email", n => { Email = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public AadUserConversationMember() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("email", Email); diff --git a/src/Microsoft.Graph/Generated/Models/AadUserConversationMemberResult.cs b/src/Microsoft.Graph/Generated/Models/AadUserConversationMemberResult.cs index 2d216f30a31..eb0b152c256 100644 --- a/src/Microsoft.Graph/Generated/Models/AadUserConversationMemberResult.cs +++ b/src/Microsoft.Graph/Generated/Models/AadUserConversationMemberResult.cs @@ -37,7 +37,7 @@ public AadUserConversationMemberResult() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userId", n => { UserId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AadUserConversationMemberResult() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userId", UserId); diff --git a/src/Microsoft.Graph/Generated/Models/AadUserNotificationRecipient.cs b/src/Microsoft.Graph/Generated/Models/AadUserNotificationRecipient.cs index 9df9beacb9b..d5c49470c2b 100644 --- a/src/Microsoft.Graph/Generated/Models/AadUserNotificationRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/AadUserNotificationRecipient.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class AadUserNotificationRecipient : TeamworkNotificationRecipient, IParsable { - /// Azure AD user identifier. Use the List users method to get this ID. + /// Microsoft Entra user identifier. Use the List users method to get this ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -37,7 +37,7 @@ public AadUserNotificationRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userId", n => { UserId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AadUserNotificationRecipient() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userId", UserId); diff --git a/src/Microsoft.Graph/Generated/Models/AccessAction.cs b/src/Microsoft.Graph/Generated/Models/AccessAction.cs index 9366ce118bb..be392009376 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessAction.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessAction.cs @@ -46,7 +46,7 @@ public static AccessAction CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackage.cs b/src/Microsoft.Graph/Generated/Models/AccessPackage.cs index 49dd1eb6c5d..05b62fcbaff 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackage.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackage.cs @@ -144,7 +144,7 @@ public List ResourceRoleScopes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackagesIncompatibleWith", n => { AccessPackagesIncompatibleWith = n.GetCollectionOfObjectValues(AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentPolicies", n => { AssignmentPolicies = n.GetCollectionOfObjectValues(AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -163,7 +163,7 @@ public List ResourceRoleScopes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("accessPackagesIncompatibleWith", AccessPackagesIncompatibleWith); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAnswer.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAnswer.cs index 17d57e6fee1..031682f1938 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAnswer.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAnswer.cs @@ -78,7 +78,7 @@ public static AccessPackageAnswer CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"answeredQuestion", n => { AnsweredQuestion = n.GetObjectValue(AccessPackageQuestion.CreateFromDiscriminatorValue); } }, {"displayValue", n => { DisplayValue = n.GetStringValue(); } }, @@ -89,7 +89,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("answeredQuestion", AnsweredQuestion); writer.WriteStringValue("displayValue", DisplayValue); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerChoice.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerChoice.cs index 1fde831ab04..a99c33297ad 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerChoice.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerChoice.cs @@ -88,7 +88,7 @@ public static AccessPackageAnswerChoice CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"actualValue", n => { ActualValue = n.GetStringValue(); } }, {"localizations", n => { Localizations = n.GetCollectionOfObjectValues(AccessPackageLocalizedText.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("actualValue", ActualValue); writer.WriteCollectionOfObjectValues("localizations", Localizations); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerString.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerString.cs index f2c789e77ef..fa35ed05702 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerString.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAnswerString.cs @@ -37,7 +37,7 @@ public AccessPackageAnswerString() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AccessPackageAnswerString() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageApprovalStage.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageApprovalStage.cs index 3afdb9d213c..1c51bf5cf73 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageApprovalStage.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageApprovalStage.cs @@ -122,7 +122,7 @@ public static AccessPackageApprovalStage CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"durationBeforeAutomaticDenial", n => { DurationBeforeAutomaticDenial = n.GetTimeSpanValue(); } }, {"durationBeforeEscalation", n => { DurationBeforeEscalation = n.GetTimeSpanValue(); } }, @@ -139,7 +139,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("durationBeforeAutomaticDenial", DurationBeforeAutomaticDenial); writer.WriteTimeSpanValue("durationBeforeEscalation", DurationBeforeEscalation); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs index 1609d9178c8..95d841f8c0d 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignment.cs @@ -111,7 +111,7 @@ public AccessPackageSubject Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackage", n => { AccessPackage = n.GetObjectValue(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue); } }, {"assignmentPolicy", n => { AssignmentPolicy = n.GetObjectValue(AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue); } }, @@ -127,7 +127,7 @@ public AccessPackageSubject Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("accessPackage", AccessPackage); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs index 3f47c8e5b3d..deee8f5f1a0 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentApprovalSettings.cs @@ -70,7 +70,7 @@ public static AccessPackageAssignmentApprovalSettings CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isApprovalRequiredForAdd", n => { IsApprovalRequiredForAdd = n.GetBoolValue(); } }, {"isApprovalRequiredForUpdate", n => { IsApprovalRequiredForUpdate = n.GetBoolValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isApprovalRequiredForAdd", IsApprovalRequiredForAdd); writer.WriteBoolValue("isApprovalRequiredForUpdate", IsApprovalRequiredForUpdate); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentCollectionResponse.cs index ac2487bba5b..7f313e2aab1 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs index e223d9e7e11..cf718ee914e 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs @@ -200,7 +200,7 @@ public List SpecificAllowedTargets { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackage", n => { AccessPackage = n.GetObjectValue(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue); } }, {"allowedTargetScope", n => { AllowedTargetScope = n.GetEnumValue(); } }, @@ -223,7 +223,7 @@ public List SpecificAllowedTargets { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("accessPackage", AccessPackage); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicyCollectionResponse.cs index bbf5060d2eb..82742387f8f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs index 81282ad32c8..946049ac7b9 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequest.cs @@ -135,7 +135,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackage", n => { AccessPackage = n.GetObjectValue(Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue); } }, {"answers", n => { Answers = n.GetCollectionOfObjectValues(AccessPackageAnswer.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -154,7 +154,7 @@ public string Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("accessPackage", AccessPackage); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs index 36142ab71f2..0d34eb3e60c 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCallbackData.cs @@ -70,7 +70,7 @@ public AccessPackageAssignmentRequestCallbackData() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"customExtensionStageInstanceDetail", n => { CustomExtensionStageInstanceDetail = n.GetStringValue(); } }, {"customExtensionStageInstanceId", n => { CustomExtensionStageInstanceId = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public AccessPackageAssignmentRequestCallbackData() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("customExtensionStageInstanceDetail", CustomExtensionStageInstanceDetail); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCollectionResponse.cs index 67438dadb6c..b9ae7b83659 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestRequirements.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestRequirements.cs index 83e80de7203..c63850253a9 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestRequirements.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestRequirements.cs @@ -131,7 +131,7 @@ public static AccessPackageAssignmentRequestRequirements CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowCustomAssignmentSchedule", n => { AllowCustomAssignmentSchedule = n.GetBoolValue(); } }, {"isApprovalRequiredForAdd", n => { IsApprovalRequiredForAdd = n.GetBoolValue(); } }, @@ -148,7 +148,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowCustomAssignmentSchedule", AllowCustomAssignmentSchedule); writer.WriteBoolValue("isApprovalRequiredForAdd", IsApprovalRequiredForAdd); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestWorkflowExtension.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestWorkflowExtension.cs index b3c16d9e1f3..895348c22d3 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestWorkflowExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestWorkflowExtension.cs @@ -75,7 +75,7 @@ public AccessPackageAssignmentRequestWorkflowExtension() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callbackConfiguration", n => { CallbackConfiguration = n.GetObjectValue(CustomExtensionCallbackConfiguration.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public AccessPackageAssignmentRequestWorkflowExtension() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("callbackConfiguration", CallbackConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs index 14429f16683..b65900f70ed 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentRequestorSettings.cs @@ -95,7 +95,7 @@ public static AccessPackageAssignmentRequestorSettings CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowCustomAssignmentSchedule", n => { AllowCustomAssignmentSchedule = n.GetBoolValue(); } }, {"enableOnBehalfRequestorsToAddAccess", n => { EnableOnBehalfRequestorsToAddAccess = n.GetBoolValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowCustomAssignmentSchedule", AllowCustomAssignmentSchedule); writer.WriteBoolValue("enableOnBehalfRequestorsToAddAccess", EnableOnBehalfRequestorsToAddAccess); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentReviewSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentReviewSettings.cs index 33b51ee22e3..5ed4105d532 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentReviewSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentReviewSettings.cs @@ -113,7 +113,7 @@ public static AccessPackageAssignmentReviewSettings CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expirationBehavior", n => { ExpirationBehavior = n.GetEnumValue(); } }, {"fallbackReviewers", n => { FallbackReviewers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("expirationBehavior", ExpirationBehavior); writer.WriteCollectionOfObjectValues("fallbackReviewers", FallbackReviewers); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentWorkflowExtension.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentWorkflowExtension.cs index 2254d65b528..057067caa87 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentWorkflowExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentWorkflowExtension.cs @@ -75,7 +75,7 @@ public AccessPackageAssignmentWorkflowExtension() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callbackConfiguration", n => { CallbackConfiguration = n.GetObjectValue(CustomExtensionCallbackConfiguration.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public AccessPackageAssignmentWorkflowExtension() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("callbackConfiguration", CallbackConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAutomaticRequestSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAutomaticRequestSettings.cs index 03c18c79c46..2cfe8a9eb10 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAutomaticRequestSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAutomaticRequestSettings.cs @@ -61,7 +61,7 @@ public static AccessPackageAutomaticRequestSettings CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"gracePeriodBeforeAccessRemoval", n => { GracePeriodBeforeAccessRemoval = n.GetTimeSpanValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("gracePeriodBeforeAccessRemoval", GracePeriodBeforeAccessRemoval); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs index cc2ff9dee3c..9eec079f8b9 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageCatalog.cs @@ -140,7 +140,7 @@ public AccessPackageCatalogState? State { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackages", n => { AccessPackages = n.GetCollectionOfObjectValues(AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, {"catalogType", n => { CatalogType = n.GetEnumValue(); } }, @@ -160,7 +160,7 @@ public AccessPackageCatalogState? State { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("accessPackages", AccessPackages); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageCatalogCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageCatalogCollectionResponse.cs index 9e56781f1cb..3c383f7e010 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageCatalogCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageCatalogCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageCatalog.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageCollectionResponse.cs index c88c250a2ef..2194937995d 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageLocalizedText.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageLocalizedText.cs index b7237932e98..ccb1ccda9c1 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageLocalizedText.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageLocalizedText.cs @@ -74,7 +74,7 @@ public static AccessPackageLocalizedText CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"languageCode", n => { LanguageCode = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("languageCode", LanguageCode); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageMultipleChoiceQuestion.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageMultipleChoiceQuestion.cs index d2caeaecc8c..cb7f06adb0f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageMultipleChoiceQuestion.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageMultipleChoiceQuestion.cs @@ -42,7 +42,7 @@ public AccessPackageMultipleChoiceQuestion() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"choices", n => { Choices = n.GetCollectionOfObjectValues(AccessPackageAnswerChoice.CreateFromDiscriminatorValue)?.ToList(); } }, {"isMultipleSelectionAllowed", n => { IsMultipleSelectionAllowed = n.GetBoolValue(); } }, @@ -52,7 +52,7 @@ public AccessPackageMultipleChoiceQuestion() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("choices", Choices); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageQuestion.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageQuestion.cs index 917a7af329b..a12b15a9e53 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageQuestion.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageQuestion.cs @@ -65,7 +65,7 @@ public string Text { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isAnswerEditable", n => { IsAnswerEditable = n.GetBoolValue(); } }, {"isRequired", n => { IsRequired = n.GetBoolValue(); } }, @@ -78,7 +78,7 @@ public string Text { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isAnswerEditable", IsAnswerEditable); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageQuestionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageQuestionCollectionResponse.cs index f9346476e78..9fc20fd7281 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageQuestionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageQuestionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageQuestion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs index 3916811056a..76f094c41a5 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs @@ -58,7 +58,7 @@ public DateTimeOffset? ModifiedDateTime { get { return BackingStore?.Get("modifiedDateTime"); } set { BackingStore?.Set("modifiedDateTime", value); } } - /// The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group. + /// The unique identifier of the resource in the origin system. In the case of a Microsoft Entra group, this is the identifier of the group. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OriginId { @@ -125,7 +125,7 @@ public List Scopes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public List Scopes { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceCollectionResponse.cs index 1db1f1c847b..a2ad26bedd6 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageResource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironment.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironment.cs index 53e864ef55f..0fb0aa69890 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironment.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironment.cs @@ -39,7 +39,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications. + /// Determines whether this is default environment or not. It is set to true for all static origin systems, such as Microsoft Entra groups and Microsoft Entra Applications. public bool? IsDefaultEnvironment { get { return BackingStore?.Get("isDefaultEnvironment"); } set { BackingStore?.Set("isDefaultEnvironment", value); } @@ -102,7 +102,7 @@ public List Resources { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public List Resources { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironmentCollectionResponse.cs index d013dc2db56..bf9eb8284b4 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceEnvironmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageResourceEnvironment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequest.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequest.cs index 9080e7a7962..ce6e9bb4a0f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequest.cs @@ -60,7 +60,7 @@ public AccessPackageRequestState? State { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"catalog", n => { Catalog = n.GetObjectValue(AccessPackageCatalog.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public AccessPackageRequestState? State { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("catalog", Catalog); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequestCollectionResponse.cs index 5a97bac7d89..9a110a1766e 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageResourceRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRole.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRole.cs index 70d313e8864..6e4f0dbfb2e 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRole.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRole.cs @@ -87,7 +87,7 @@ public AccessPackageResource Resource { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public AccessPackageResource Resource { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleCollectionResponse.cs index 8d1992f499f..a1dc2e78944 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageResourceRole.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScope.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScope.cs index a89da18e791..dad55797b75 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScope.cs @@ -50,7 +50,7 @@ public AccessPackageResourceScope Scope { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"role", n => { Role = n.GetObjectValue(AccessPackageResourceRole.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public AccessPackageResourceScope Scope { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScopeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScopeCollectionResponse.cs index 43f1e3152d5..6c05d45d32b 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScopeCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceRoleScopeCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageResourceRoleScope.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScope.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScope.cs index b97e8e10cfa..f64b4d4c8b1 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScope.cs @@ -92,7 +92,7 @@ public AccessPackageResource Resource { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public AccessPackageResource Resource { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScopeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScopeCollectionResponse.cs index c25268fca5f..c9820e5dd5c 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScopeCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceScopeCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageResourceScope.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageSubject.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageSubject.cs index ab782907474..9ba1f07e1e9 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageSubject.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageSubject.cs @@ -106,7 +106,7 @@ public AccessPackageSubjectType? SubjectType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"connectedOrganization", n => { ConnectedOrganization = n.GetObjectValue(Microsoft.Graph.Models.ConnectedOrganization.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public AccessPackageSubjectType? SubjectType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("connectedOrganization", ConnectedOrganization); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs index 0e6045f6c4b..35d343725ff 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageTextInputQuestion.cs @@ -42,7 +42,7 @@ public AccessPackageTextInputQuestion() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isSingleLineQuestion", n => { IsSingleLineQuestion = n.GetBoolValue(); } }, {"regexPattern", n => { RegexPattern = n.GetStringValue(); } }, @@ -52,7 +52,7 @@ public AccessPackageTextInputQuestion() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isSingleLineQuestion", IsSingleLineQuestion); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewApplyAction.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewApplyAction.cs index fb11051f39e..d04c7f2b36f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewApplyAction.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewApplyAction.cs @@ -51,7 +51,7 @@ public static AccessReviewApplyAction CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs index 3a68ca45edb..12d7af37584 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinition.cs @@ -121,7 +121,7 @@ public AccessReviewHistoryStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(UserIdentity.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -139,7 +139,7 @@ public AccessReviewHistoryStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinitionCollectionResponse.cs index ea65c5d4c1f..3e7bb6ba397 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewHistoryDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstance.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstance.cs index fe7e61f2d31..fbbf108b388 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstance.cs @@ -61,7 +61,7 @@ public AccessReviewHistoryStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"downloadUri", n => { DownloadUri = n.GetStringValue(); } }, {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, @@ -76,7 +76,7 @@ public AccessReviewHistoryStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("downloadUri", DownloadUri); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstanceCollectionResponse.cs index 1664fedfbac..dd54b28ec20 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryInstanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewHistoryInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs index aa233e7366e..eb39f7aa7cb 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewHistoryScheduleSettings.cs @@ -74,7 +74,7 @@ public static AccessReviewHistoryScheduleSettings CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"recurrence", n => { Recurrence = n.GetObjectValue(PatternedRecurrence.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("recurrence", Recurrence); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInactiveUsersQueryScope.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInactiveUsersQueryScope.cs index a137137ea13..981ecc86b9f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInactiveUsersQueryScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInactiveUsersQueryScope.cs @@ -28,7 +28,7 @@ public AccessReviewInactiveUsersQueryScope() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"inactiveDuration", n => { InactiveDuration = n.GetTimeSpanValue(); } }, }; @@ -37,7 +37,7 @@ public AccessReviewInactiveUsersQueryScope() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteTimeSpanValue("inactiveDuration", InactiveDuration); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs index 18450645a33..44ff834f403 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstance.cs @@ -125,7 +125,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contactedReviewers", n => { ContactedReviewers = n.GetCollectionOfObjectValues(AccessReviewReviewer.CreateFromDiscriminatorValue)?.ToList(); } }, {"decisions", n => { Decisions = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -142,7 +142,7 @@ public string Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("contactedReviewers", ContactedReviewers); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceCollectionResponse.cs index 745ebafdb7b..2a619f88d57 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs index b390daaa3d7..ab4013351ee 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItem.cs @@ -195,7 +195,7 @@ public DateTimeOffset? ReviewedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessReviewId", n => { AccessReviewId = n.GetStringValue(); } }, {"appliedBy", n => { AppliedBy = n.GetObjectValue(UserIdentity.CreateFromDiscriminatorValue); } }, @@ -217,7 +217,7 @@ public DateTimeOffset? ReviewedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("accessReviewId", AccessReviewId); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.cs index 052f19dffa7..e4f1b61cee4 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.cs @@ -51,7 +51,7 @@ public AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource() : /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackageDisplayName", n => { AccessPackageDisplayName = n.GetStringValue(); } }, {"accessPackageId", n => { AccessPackageId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource() : /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("accessPackageDisplayName", AccessPackageDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAzureRoleResource.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAzureRoleResource.cs index 36c93eba027..63e3ac9a321 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAzureRoleResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemAzureRoleResource.cs @@ -37,7 +37,7 @@ public AccessReviewInstanceDecisionItemAzureRoleResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"scope", n => { Scope = n.GetObjectValue(AccessReviewInstanceDecisionItemResource.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public AccessReviewInstanceDecisionItemAzureRoleResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("scope", Scope); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemCollectionResponse.cs index 03c6c9b6bdf..b12013e2ec6 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemResource.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemResource.cs index ad3d3581cd8..89431930b1b 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemResource.cs @@ -94,7 +94,7 @@ public static AccessReviewInstanceDecisionItemResource CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemServicePrincipalResource.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemServicePrincipalResource.cs index 9354ce36542..3f829c464a0 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemServicePrincipalResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewInstanceDecisionItemServicePrincipalResource.cs @@ -37,7 +37,7 @@ public AccessReviewInstanceDecisionItemServicePrincipalResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appId", n => { AppId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AccessReviewInstanceDecisionItemServicePrincipalResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appId", AppId); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientItem.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientItem.cs index 11fbb2746cd..ff3b4aac1dc 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientItem.cs @@ -74,7 +74,7 @@ public static AccessReviewNotificationRecipientItem CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"notificationRecipientScope", n => { NotificationRecipientScope = n.GetObjectValue(AccessReviewNotificationRecipientScope.CreateFromDiscriminatorValue); } }, {"notificationTemplateType", n => { NotificationTemplateType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("notificationRecipientScope", NotificationRecipientScope); writer.WriteStringValue("notificationTemplateType", NotificationTemplateType); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientQueryScope.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientQueryScope.cs index a254a87c497..05e7a0fbee0 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientQueryScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientQueryScope.cs @@ -65,7 +65,7 @@ public AccessReviewNotificationRecipientQueryScope() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"query", n => { Query = n.GetStringValue(); } }, {"queryRoot", n => { QueryRoot = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public AccessReviewNotificationRecipientQueryScope() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("query", Query); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientScope.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientScope.cs index 6eb9957aee8..bd283dfdb78 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewNotificationRecipientScope.cs @@ -50,7 +50,7 @@ public static AccessReviewNotificationRecipientScope CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewQueryScope.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewQueryScope.cs index 8f8954f3910..ee914f23d09 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewQueryScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewQueryScope.cs @@ -69,7 +69,7 @@ public AccessReviewQueryScope() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"query", n => { Query = n.GetStringValue(); } }, {"queryRoot", n => { QueryRoot = n.GetStringValue(); } }, @@ -80,7 +80,7 @@ public AccessReviewQueryScope() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("query", Query); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewRecommendationInsightSetting.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewRecommendationInsightSetting.cs index b682f2b3b07..d8871878821 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewRecommendationInsightSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewRecommendationInsightSetting.cs @@ -51,7 +51,7 @@ public static AccessReviewRecommendationInsightSetting CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewReviewer.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewReviewer.cs index 8398e17097b..47f5b7a3f81 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewReviewer.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewReviewer.cs @@ -50,7 +50,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerCollectionResponse.cs index 907524454be..6e12c8d9660 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewReviewer.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerScope.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerScope.cs index 531f502a3af..0d44288d2c3 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewReviewerScope.cs @@ -88,7 +88,7 @@ public static AccessReviewReviewerScope CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"query", n => { Query = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("query", Query); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs index 03ccb980350..4fbd08119c6 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinition.cs @@ -209,7 +209,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalNotificationRecipients", n => { AdditionalNotificationRecipients = n.GetCollectionOfObjectValues(AccessReviewNotificationRecipientItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(UserIdentity.CreateFromDiscriminatorValue); } }, @@ -232,7 +232,7 @@ public string Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("additionalNotificationRecipients", AdditionalNotificationRecipients); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinitionCollectionResponse.cs index e7ee3baaa20..f65f12365cb 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleSettings.cs index d63f663d275..ada896c0a1f 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewScheduleSettings.cs @@ -100,7 +100,7 @@ public List RecommendationInsightSetti set { BackingStore?.Set("recommendationInsightSettings", value); } } #endif - /// Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. + /// Optional field. Indicates the period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. NOTE: If the stageSettings of the accessReviewScheduleDefinition object is defined, its recommendationLookBackDuration setting will be used instead of the value of this property. public TimeSpan? RecommendationLookBackDuration { get { return BackingStore?.Get("recommendationLookBackDuration"); } set { BackingStore?.Set("recommendationLookBackDuration", value); } @@ -147,7 +147,7 @@ public static AccessReviewScheduleSettings CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applyActions", n => { ApplyActions = n.GetCollectionOfObjectValues(AccessReviewApplyAction.CreateFromDiscriminatorValue)?.ToList(); } }, {"autoApplyDecisionsEnabled", n => { AutoApplyDecisionsEnabled = n.GetBoolValue(); } }, @@ -169,7 +169,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("applyActions", ApplyActions); writer.WriteBoolValue("autoApplyDecisionsEnabled", AutoApplyDecisionsEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewScope.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewScope.cs index 7f79a579a52..ff79e0dab61 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewScope.cs @@ -52,7 +52,7 @@ public static AccessReviewScope CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewSet.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewSet.cs index 1a93eb5f309..727c160e705 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewSet.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewSet.cs @@ -45,7 +45,7 @@ public List HistoryDefinitions { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"definitions", n => { Definitions = n.GetCollectionOfObjectValues(AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"historyDefinitions", n => { HistoryDefinitions = n.GetCollectionOfObjectValues(AccessReviewHistoryDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public List HistoryDefinitions { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("definitions", Definitions); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs index b39a205f36c..34540e39012 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewStage.cs @@ -83,7 +83,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"decisions", n => { Decisions = n.GetCollectionOfObjectValues(AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -97,7 +97,7 @@ public string Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("decisions", Decisions); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewStageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewStageCollectionResponse.cs index e0da3e5b1a1..2797802a5c5 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewStageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewStageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AccessReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewStageSettings.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewStageSettings.cs index a12680de3de..aa7fa0e0ebc 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewStageSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewStageSettings.cs @@ -47,7 +47,7 @@ public int? DurationInDays { get { return BackingStore?.Get("durationInDays"); } set { BackingStore?.Set("durationInDays", value); } } - /// If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. + /// If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Microsoft Entra ID, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? FallbackReviewers { @@ -140,7 +140,7 @@ public static AccessReviewStageSettings CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decisionsThatWillMoveToNextStage", n => { DecisionsThatWillMoveToNextStage = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"dependsOn", n => { DependsOn = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("decisionsThatWillMoveToNextStage", DecisionsThatWillMoveToNextStage); writer.WriteCollectionOfPrimitiveValues("dependsOn", DependsOn); diff --git a/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs index c3770a47105..67801a9c33b 100644 --- a/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs +++ b/src/Microsoft.Graph/Generated/Models/AccountTargetContent.cs @@ -56,7 +56,7 @@ public static AccountTargetContent CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetEnumValue(); } }, @@ -66,7 +66,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("type", Type); diff --git a/src/Microsoft.Graph/Generated/Models/ActionResultPart.cs b/src/Microsoft.Graph/Generated/Models/ActionResultPart.cs index ee875e32284..5a6039a9fab 100644 --- a/src/Microsoft.Graph/Generated/Models/ActionResultPart.cs +++ b/src/Microsoft.Graph/Generated/Models/ActionResultPart.cs @@ -64,7 +64,7 @@ public static ActionResultPart CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"error", n => { Error = n.GetObjectValue(PublicError.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -74,7 +74,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("error", Error); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicy.cs b/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicy.cs index ee020c560fc..a057da26c35 100644 --- a/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicy.cs @@ -23,7 +23,7 @@ public ActivityBasedTimeoutPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ActivityBasedTimeoutPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicyCollectionResponse.cs index 83856f48133..8d87bd965ca 100644 --- a/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ActivityBasedTimeoutPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActivityBasedTimeoutPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs index b6603e6d3c0..74112fe9cb7 100644 --- a/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ActivityHistoryItem.cs @@ -80,7 +80,7 @@ public string UserTimezone { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeDurationSeconds", n => { ActiveDurationSeconds = n.GetIntValue(); } }, {"activity", n => { Activity = n.GetObjectValue(UserActivity.CreateFromDiscriminatorValue); } }, @@ -97,7 +97,7 @@ public string UserTimezone { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeDurationSeconds", ActiveDurationSeconds); diff --git a/src/Microsoft.Graph/Generated/Models/ActivityHistoryItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ActivityHistoryItemCollectionResponse.cs index 4c4f39faa6d..fbbfd074540 100644 --- a/src/Microsoft.Graph/Generated/Models/ActivityHistoryItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ActivityHistoryItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActivityHistoryItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AddIn.cs b/src/Microsoft.Graph/Generated/Models/AddIn.cs index 4b8acc65375..4731dc3e55c 100644 --- a/src/Microsoft.Graph/Generated/Models/AddIn.cs +++ b/src/Microsoft.Graph/Generated/Models/AddIn.cs @@ -79,7 +79,7 @@ public static AddIn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetGuidValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AddLargeGalleryViewOperation.cs b/src/Microsoft.Graph/Generated/Models/AddLargeGalleryViewOperation.cs index 8bbbc1ba8c5..ab19d362c4e 100644 --- a/src/Microsoft.Graph/Generated/Models/AddLargeGalleryViewOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/AddLargeGalleryViewOperation.cs @@ -17,7 +17,7 @@ public class AddLargeGalleryViewOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class AddLargeGalleryViewOperation : CommsOperation, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs index ccfe984ab96..e1063b88c5b 100644 --- a/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs +++ b/src/Microsoft.Graph/Generated/Models/AddressBookAccountTargetContent.cs @@ -37,7 +37,7 @@ public AddressBookAccountTargetContent() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountTargetEmails", n => { AccountTargetEmails = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public AddressBookAccountTargetContent() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("accountTargetEmails", AccountTargetEmails); diff --git a/src/Microsoft.Graph/Generated/Models/Admin.cs b/src/Microsoft.Graph/Generated/Models/Admin.cs index 03e220fcd06..c98bc453d40 100644 --- a/src/Microsoft.Graph/Generated/Models/Admin.cs +++ b/src/Microsoft.Graph/Generated/Models/Admin.cs @@ -102,7 +102,7 @@ public static Admin CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"edge", n => { Edge = n.GetObjectValue(Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("edge", Edge); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AdminConsentRequestPolicy.cs b/src/Microsoft.Graph/Generated/Models/AdminConsentRequestPolicy.cs index 6f608b6dc37..da171007b42 100644 --- a/src/Microsoft.Graph/Generated/Models/AdminConsentRequestPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AdminConsentRequestPolicy.cs @@ -56,7 +56,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"notifyReviewers", n => { NotifyReviewers = n.GetBoolValue(); } }, @@ -70,7 +70,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isEnabled", IsEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs index a39c23b60a3..40b136bda18 100644 --- a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs +++ b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs @@ -107,7 +107,7 @@ public AdministrativeUnit() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public AdministrativeUnit() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AdministrativeUnitCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AdministrativeUnitCollectionResponse.cs index d557c840c1c..c3d35202de8 100644 --- a/src/Microsoft.Graph/Generated/Models/AdministrativeUnitCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AdministrativeUnitCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AggregationOption.cs b/src/Microsoft.Graph/Generated/Models/AggregationOption.cs index c8aa9caf585..2efcc1b1e92 100644 --- a/src/Microsoft.Graph/Generated/Models/AggregationOption.cs +++ b/src/Microsoft.Graph/Generated/Models/AggregationOption.cs @@ -79,7 +79,7 @@ public static AggregationOption CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bucketDefinition", n => { BucketDefinition = n.GetObjectValue(BucketAggregationDefinition.CreateFromDiscriminatorValue); } }, {"field", n => { Field = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("bucketDefinition", BucketDefinition); writer.WriteStringValue("field", Field); diff --git a/src/Microsoft.Graph/Generated/Models/Agreement.cs b/src/Microsoft.Graph/Generated/Models/Agreement.cs index 26c05ddb54f..cd5d3e4e3b0 100644 --- a/src/Microsoft.Graph/Generated/Models/Agreement.cs +++ b/src/Microsoft.Graph/Generated/Models/Agreement.cs @@ -62,7 +62,7 @@ public List Files { set { BackingStore?.Set("files", value); } } #endif - /// Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven't already done so. Supports $filter (eq). + /// Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Microsoft Entra ID, if they haven't already done so. Supports $filter (eq). public bool? IsPerDeviceAcceptanceRequired { get { return BackingStore?.Get("isPerDeviceAcceptanceRequired"); } set { BackingStore?.Set("isPerDeviceAcceptanceRequired", value); } @@ -102,7 +102,7 @@ public TimeSpan? UserReacceptRequiredFrequency { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"acceptances", n => { Acceptances = n.GetCollectionOfObjectValues(AgreementAcceptance.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public TimeSpan? UserReacceptRequiredFrequency { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("acceptances", Acceptances); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs b/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs index 0ae7f011dd0..03b8710b917 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementAcceptance.cs @@ -172,7 +172,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"agreementFileId", n => { AgreementFileId = n.GetStringValue(); } }, {"agreementId", n => { AgreementId = n.GetStringValue(); } }, @@ -193,7 +193,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("agreementFileId", AgreementFileId); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs index e4c5134c1ac..e37683b9b11 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementAcceptanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AgreementAcceptance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs index 26fcd0c3da8..17934ed8425 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Agreement.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFile.cs b/src/Microsoft.Graph/Generated/Models/AgreementFile.cs index 2d10234d5ea..e9bba4c57ea 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFile.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFile.cs @@ -31,7 +31,7 @@ public List Localizations { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"localizations", n => { Localizations = n.GetCollectionOfObjectValues(AgreementFileLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Localizations { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("localizations", Localizations); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileData.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileData.cs index 6b0b7e58dd1..a89c75d3eb4 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileData.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileData.cs @@ -60,7 +60,7 @@ public static AgreementFileData CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"data", n => { Data = n.GetByteArrayValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("data", Data); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileLocalization.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileLocalization.cs index 80916d29f21..45eca00ea1c 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileLocalization.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileLocalization.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class AgreementFileLocalization : AgreementFileProperties, IParsable { - /// Read-only. Customized versions of the terms of use agreement in the Azure AD tenant. + /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Versions { @@ -31,7 +31,7 @@ public List Versions { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"versions", n => { Versions = n.GetCollectionOfObjectValues(AgreementFileVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Versions { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("versions", Versions); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileLocalizationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileLocalizationCollectionResponse.cs index 9fd6b34e7a4..17e28b0d28d 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileLocalizationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileLocalizationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AgreementFileLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs index 3cdcdf63e07..ac8f42b47db 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileProperties.cs @@ -94,7 +94,7 @@ public string Language { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -109,7 +109,7 @@ public string Language { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileVersion.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileVersion.cs index ab657ebae67..024a4e20b4c 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileVersion.cs @@ -17,7 +17,7 @@ public class AgreementFileVersion : AgreementFileProperties, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class AgreementFileVersion : AgreementFileProperties, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs index 96e84edb275..7e998287c39 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementFileVersionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AgreementFileVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Album.cs b/src/Microsoft.Graph/Generated/Models/Album.cs index f194fff03e8..0bf44cdb186 100644 --- a/src/Microsoft.Graph/Generated/Models/Album.cs +++ b/src/Microsoft.Graph/Generated/Models/Album.cs @@ -60,7 +60,7 @@ public static Album CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"coverImageItemId", n => { CoverImageItemId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("coverImageItemId", CoverImageItemId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Alert.cs b/src/Microsoft.Graph/Generated/Models/Alert.cs index c9982554f73..bf452c16f90 100644 --- a/src/Microsoft.Graph/Generated/Models/Alert.cs +++ b/src/Microsoft.Graph/Generated/Models/Alert.cs @@ -62,7 +62,7 @@ public string AzureSubscriptionId { set { BackingStore?.Set("azureSubscriptionId", value); } } #endif - /// Azure Active Directory tenant ID. Required. + /// Microsoft Entra tenant ID. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AzureTenantId { @@ -482,7 +482,7 @@ public List VulnerabilityStates { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activityGroupName", n => { ActivityGroupName = n.GetStringValue(); } }, {"alertDetections", n => { AlertDetections = n.GetCollectionOfObjectValues(AlertDetection.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -529,7 +529,7 @@ public List VulnerabilityStates { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("activityGroupName", ActivityGroupName); diff --git a/src/Microsoft.Graph/Generated/Models/AlertCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AlertCollectionResponse.cs index 9fec25b5645..785ab96579d 100644 --- a/src/Microsoft.Graph/Generated/Models/AlertCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AlertCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Alert.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AlertDetection.cs b/src/Microsoft.Graph/Generated/Models/AlertDetection.cs index 5f2517b66ce..af5c2b4aa60 100644 --- a/src/Microsoft.Graph/Generated/Models/AlertDetection.cs +++ b/src/Microsoft.Graph/Generated/Models/AlertDetection.cs @@ -88,7 +88,7 @@ public static AlertDetection CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"detectionType", n => { DetectionType = n.GetStringValue(); } }, {"method", n => { Method = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("detectionType", DetectionType); writer.WriteStringValue("method", Method); diff --git a/src/Microsoft.Graph/Generated/Models/AlertHistoryState.cs b/src/Microsoft.Graph/Generated/Models/AlertHistoryState.cs index 7692ef90615..d436d027d18 100644 --- a/src/Microsoft.Graph/Generated/Models/AlertHistoryState.cs +++ b/src/Microsoft.Graph/Generated/Models/AlertHistoryState.cs @@ -117,7 +117,7 @@ public static AlertHistoryState CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appId", n => { AppId = n.GetStringValue(); } }, {"assignedTo", n => { AssignedTo = n.GetStringValue(); } }, @@ -133,7 +133,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appId", AppId); writer.WriteStringValue("assignedTo", AssignedTo); diff --git a/src/Microsoft.Graph/Generated/Models/AlertTrigger.cs b/src/Microsoft.Graph/Generated/Models/AlertTrigger.cs index 8fa15ed1357..6366f16da76 100644 --- a/src/Microsoft.Graph/Generated/Models/AlertTrigger.cs +++ b/src/Microsoft.Graph/Generated/Models/AlertTrigger.cs @@ -88,7 +88,7 @@ public static AlertTrigger CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AllDevicesAssignmentTarget.cs b/src/Microsoft.Graph/Generated/Models/AllDevicesAssignmentTarget.cs index 548fa9b127f..28a554a98de 100644 --- a/src/Microsoft.Graph/Generated/Models/AllDevicesAssignmentTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/AllDevicesAssignmentTarget.cs @@ -26,7 +26,7 @@ public AllDevicesAssignmentTarget() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public AllDevicesAssignmentTarget() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AllLicensedUsersAssignmentTarget.cs b/src/Microsoft.Graph/Generated/Models/AllLicensedUsersAssignmentTarget.cs index d42bfaf1903..11ba1eefc9f 100644 --- a/src/Microsoft.Graph/Generated/Models/AllLicensedUsersAssignmentTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/AllLicensedUsersAssignmentTarget.cs @@ -26,7 +26,7 @@ public AllLicensedUsersAssignmentTarget() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public AllLicensedUsersAssignmentTarget() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AllowedValue.cs b/src/Microsoft.Graph/Generated/Models/AllowedValue.cs index 2be47628392..e9f08f61462 100644 --- a/src/Microsoft.Graph/Generated/Models/AllowedValue.cs +++ b/src/Microsoft.Graph/Generated/Models/AllowedValue.cs @@ -22,7 +22,7 @@ public bool? IsActive { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isActive", n => { IsActive = n.GetBoolValue(); } }, }; @@ -31,7 +31,7 @@ public bool? IsActive { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isActive", IsActive); diff --git a/src/Microsoft.Graph/Generated/Models/AllowedValueCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AllowedValueCollectionResponse.cs index 84af575cf0c..4e6333de590 100644 --- a/src/Microsoft.Graph/Generated/Models/AllowedValueCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AllowedValueCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AllowedValue.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AlterationResponse.cs b/src/Microsoft.Graph/Generated/Models/AlterationResponse.cs index edc5f774418..68e5453ccc6 100644 --- a/src/Microsoft.Graph/Generated/Models/AlterationResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AlterationResponse.cs @@ -79,7 +79,7 @@ public static AlterationResponse CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"originalQueryString", n => { OriginalQueryString = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("originalQueryString", OriginalQueryString); diff --git a/src/Microsoft.Graph/Generated/Models/AlteredQueryToken.cs b/src/Microsoft.Graph/Generated/Models/AlteredQueryToken.cs index 4cea1df5628..9d5f6477f98 100644 --- a/src/Microsoft.Graph/Generated/Models/AlteredQueryToken.cs +++ b/src/Microsoft.Graph/Generated/Models/AlteredQueryToken.cs @@ -70,7 +70,7 @@ public static AlteredQueryToken CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"length", n => { Length = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("length", Length); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AlternativeSecurityId.cs b/src/Microsoft.Graph/Generated/Models/AlternativeSecurityId.cs index 0460ab7a638..19f203ec1d4 100644 --- a/src/Microsoft.Graph/Generated/Models/AlternativeSecurityId.cs +++ b/src/Microsoft.Graph/Generated/Models/AlternativeSecurityId.cs @@ -79,7 +79,7 @@ public static AlternativeSecurityId CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"identityProvider", n => { IdentityProvider = n.GetStringValue(); } }, {"key", n => { Key = n.GetByteArrayValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("identityProvider", IdentityProvider); writer.WriteByteArrayValue("key", Key); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/AndroidCompliancePolicy.cs index edf32d3296d..0fb1cfc2542 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidCompliancePolicy.cs @@ -158,7 +158,7 @@ public AndroidCompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceThreatProtectionEnabled", n => { DeviceThreatProtectionEnabled = n.GetBoolValue(); } }, {"deviceThreatProtectionRequiredSecurityLevel", n => { DeviceThreatProtectionRequiredSecurityLevel = n.GetEnumValue(); } }, @@ -187,7 +187,7 @@ public AndroidCompliancePolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("deviceThreatProtectionEnabled", DeviceThreatProtectionEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidCustomConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AndroidCustomConfiguration.cs index d294a352b69..f48b66ad7f1 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidCustomConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidCustomConfiguration.cs @@ -40,7 +40,7 @@ public AndroidCustomConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"omaSettings", n => { OmaSettings = n.GetCollectionOfObjectValues(OmaSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -49,7 +49,7 @@ public AndroidCustomConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("omaSettings", OmaSettings); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs index a3880018761..da181ec78db 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidGeneralDeviceConfiguration.cs @@ -311,7 +311,7 @@ public AndroidGeneralDeviceConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appsBlockClipboardSharing", n => { AppsBlockClipboardSharing = n.GetBoolValue(); } }, {"appsBlockCopyPaste", n => { AppsBlockCopyPaste = n.GetBoolValue(); } }, @@ -367,7 +367,7 @@ public AndroidGeneralDeviceConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("appsBlockClipboardSharing", AppsBlockClipboardSharing); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs b/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs index 8ae38a69b16..85ca0db4fac 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs @@ -82,7 +82,7 @@ public AndroidLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(AndroidMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, {"packageId", n => { PackageId = n.GetStringValue(); } }, @@ -94,7 +94,7 @@ public AndroidLobApp() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("minimumSupportedOperatingSystem", MinimumSupportedOperatingSystem); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidLobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AndroidLobAppCollectionResponse.cs index 4fe8ca04e30..b8fc5d866bf 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidLobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidLobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AndroidLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtection.cs b/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtection.cs index 709b31be54b..58dac0e812f 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtection.cs @@ -130,7 +130,7 @@ public AndroidManagedAppProtection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, {"customBrowserDisplayName", n => { CustomBrowserDisplayName = n.GetStringValue(); } }, @@ -148,7 +148,7 @@ public AndroidManagedAppProtection() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("apps", Apps); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtectionCollectionResponse.cs index f2ffe7610d8..204d0924ef6 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidManagedAppProtectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AndroidManagedAppProtection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidManagedAppRegistration.cs b/src/Microsoft.Graph/Generated/Models/AndroidManagedAppRegistration.cs index 6914dd94c29..326abf2ffde 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidManagedAppRegistration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidManagedAppRegistration.cs @@ -26,7 +26,7 @@ public AndroidManagedAppRegistration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public AndroidManagedAppRegistration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs index e9c3d59ea11..7a3341a8f69 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidMinimumOperatingSystem.cs @@ -129,7 +129,7 @@ public static AndroidMinimumOperatingSystem CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"v10_0", n => { V100 = n.GetBoolValue(); } }, @@ -154,7 +154,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteBoolValue("v10_0", V100); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidMobileAppIdentifier.cs b/src/Microsoft.Graph/Generated/Models/AndroidMobileAppIdentifier.cs index 85cf909c156..592d617b5eb 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidMobileAppIdentifier.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidMobileAppIdentifier.cs @@ -40,7 +40,7 @@ public AndroidMobileAppIdentifier() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"packageId", n => { PackageId = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public AndroidMobileAppIdentifier() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("packageId", PackageId); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidStoreApp.cs b/src/Microsoft.Graph/Generated/Models/AndroidStoreApp.cs index 47fd6528038..8250d0510db 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidStoreApp.cs @@ -68,7 +68,7 @@ public AndroidStoreApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(AndroidMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, @@ -79,7 +79,7 @@ public AndroidStoreApp() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appStoreUrl", AppStoreUrl); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidStoreAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AndroidStoreAppCollectionResponse.cs index a45e6a483de..89719938c8b 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidStoreAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidStoreAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AndroidStoreApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCompliancePolicy.cs index b621dc416f4..c3be51bd689 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCompliancePolicy.cs @@ -158,7 +158,7 @@ public AndroidWorkProfileCompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceThreatProtectionEnabled", n => { DeviceThreatProtectionEnabled = n.GetBoolValue(); } }, {"deviceThreatProtectionRequiredSecurityLevel", n => { DeviceThreatProtectionRequiredSecurityLevel = n.GetEnumValue(); } }, @@ -187,7 +187,7 @@ public AndroidWorkProfileCompliancePolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("deviceThreatProtectionEnabled", DeviceThreatProtectionEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCustomConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCustomConfiguration.cs index 1481e9190cb..3ffab6423e0 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCustomConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileCustomConfiguration.cs @@ -40,7 +40,7 @@ public AndroidWorkProfileCustomConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"omaSettings", n => { OmaSettings = n.GetCollectionOfObjectValues(OmaSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -49,7 +49,7 @@ public AndroidWorkProfileCustomConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("omaSettings", OmaSettings); diff --git a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs index c7300fe51c3..f1a700ec806 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs @@ -196,7 +196,7 @@ public AndroidWorkProfileGeneralDeviceConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"passwordBlockFingerprintUnlock", n => { PasswordBlockFingerprintUnlock = n.GetBoolValue(); } }, {"passwordBlockTrustAgents", n => { PasswordBlockTrustAgents = n.GetBoolValue(); } }, @@ -238,7 +238,7 @@ public AndroidWorkProfileGeneralDeviceConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("passwordBlockFingerprintUnlock", PasswordBlockFingerprintUnlock); diff --git a/src/Microsoft.Graph/Generated/Models/AnonymousGuestConversationMember.cs b/src/Microsoft.Graph/Generated/Models/AnonymousGuestConversationMember.cs index 7fc3c0aaa3c..e521af1cb2f 100644 --- a/src/Microsoft.Graph/Generated/Models/AnonymousGuestConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/AnonymousGuestConversationMember.cs @@ -37,7 +37,7 @@ public AnonymousGuestConversationMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"anonymousGuestId", n => { AnonymousGuestId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AnonymousGuestConversationMember() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("anonymousGuestId", AnonymousGuestId); diff --git a/src/Microsoft.Graph/Generated/Models/ApiApplication.cs b/src/Microsoft.Graph/Generated/Models/ApiApplication.cs index f26bc2efb66..c7fa52fbd45 100644 --- a/src/Microsoft.Graph/Generated/Models/ApiApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/ApiApplication.cs @@ -19,7 +19,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Azure AD knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. + /// Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? KnownClientApplications { @@ -98,7 +98,7 @@ public static ApiApplication CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"acceptMappedClaims", n => { AcceptMappedClaims = n.GetBoolValue(); } }, {"knownClientApplications", n => { KnownClientApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("acceptMappedClaims", AcceptMappedClaims); writer.WriteCollectionOfPrimitiveValues("knownClientApplications", KnownClientApplications); diff --git a/src/Microsoft.Graph/Generated/Models/ApiAuthenticationConfigurationBase.cs b/src/Microsoft.Graph/Generated/Models/ApiAuthenticationConfigurationBase.cs index f72a82d57f8..b539f239f3b 100644 --- a/src/Microsoft.Graph/Generated/Models/ApiAuthenticationConfigurationBase.cs +++ b/src/Microsoft.Graph/Generated/Models/ApiAuthenticationConfigurationBase.cs @@ -52,7 +52,7 @@ public static ApiAuthenticationConfigurationBase CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AppCatalogs.cs b/src/Microsoft.Graph/Generated/Models/AppCatalogs.cs index 27f32636709..3424246e2c0 100644 --- a/src/Microsoft.Graph/Generated/Models/AppCatalogs.cs +++ b/src/Microsoft.Graph/Generated/Models/AppCatalogs.cs @@ -31,7 +31,7 @@ public List TeamsApps { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"teamsApps", n => { TeamsApps = n.GetCollectionOfObjectValues(TeamsApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List TeamsApps { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("teamsApps", TeamsApps); diff --git a/src/Microsoft.Graph/Generated/Models/AppConfigurationSettingItem.cs b/src/Microsoft.Graph/Generated/Models/AppConfigurationSettingItem.cs index 2bfb333efb3..719800fec59 100644 --- a/src/Microsoft.Graph/Generated/Models/AppConfigurationSettingItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AppConfigurationSettingItem.cs @@ -82,7 +82,7 @@ public static AppConfigurationSettingItem CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appConfigKey", n => { AppConfigKey = n.GetStringValue(); } }, {"appConfigKeyType", n => { AppConfigKeyType = n.GetEnumValue(); } }, @@ -94,7 +94,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appConfigKey", AppConfigKey); writer.WriteEnumValue("appConfigKeyType", AppConfigKeyType); diff --git a/src/Microsoft.Graph/Generated/Models/AppConsentApprovalRoute.cs b/src/Microsoft.Graph/Generated/Models/AppConsentApprovalRoute.cs index f1211f350a9..10e935a2836 100644 --- a/src/Microsoft.Graph/Generated/Models/AppConsentApprovalRoute.cs +++ b/src/Microsoft.Graph/Generated/Models/AppConsentApprovalRoute.cs @@ -31,7 +31,7 @@ public List AppConsentRequests { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appConsentRequests", n => { AppConsentRequests = n.GetCollectionOfObjectValues(AppConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List AppConsentRequests { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("appConsentRequests", AppConsentRequests); diff --git a/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs b/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs index 4e83c3ee3d6..c2c1725e6bc 100644 --- a/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/AppConsentRequest.cs @@ -73,7 +73,7 @@ public List UserConsentRequests { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public List UserConsentRequests { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appDisplayName", AppDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/AppConsentRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AppConsentRequestCollectionResponse.cs index 0cd11f4ea50..f02038c23af 100644 --- a/src/Microsoft.Graph/Generated/Models/AppConsentRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AppConsentRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AppConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AppConsentRequestScope.cs b/src/Microsoft.Graph/Generated/Models/AppConsentRequestScope.cs index b81fb70cb6e..e4da72cd056 100644 --- a/src/Microsoft.Graph/Generated/Models/AppConsentRequestScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AppConsentRequestScope.cs @@ -60,7 +60,7 @@ public static AppConsentRequestScope CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AppHostedMediaConfig.cs b/src/Microsoft.Graph/Generated/Models/AppHostedMediaConfig.cs index 04c45d00140..5596d14b99b 100644 --- a/src/Microsoft.Graph/Generated/Models/AppHostedMediaConfig.cs +++ b/src/Microsoft.Graph/Generated/Models/AppHostedMediaConfig.cs @@ -37,7 +37,7 @@ public AppHostedMediaConfig() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"blob", n => { Blob = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AppHostedMediaConfig() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("blob", Blob); diff --git a/src/Microsoft.Graph/Generated/Models/AppIdentity.cs b/src/Microsoft.Graph/Generated/Models/AppIdentity.cs index 30ec945669f..fce299e1e34 100644 --- a/src/Microsoft.Graph/Generated/Models/AppIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/AppIdentity.cs @@ -12,7 +12,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("AdditionalData"); } set { BackingStore?.Set("AdditionalData", value); } } - /// Refers to the Unique GUID representing Application Id in the Azure Active Directory. + /// Refers to the unique ID representing application in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AppId { @@ -56,7 +56,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Refers to the Unique GUID indicating Service Principal Id in Azure Active Directory for the corresponding App. + /// Refers to the unique ID for the service principal in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ServicePrincipalId { @@ -102,7 +102,7 @@ public static AppIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appId", n => { AppId = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appId", AppId); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/AppListItem.cs b/src/Microsoft.Graph/Generated/Models/AppListItem.cs index 22cdc566fdf..823490207c2 100644 --- a/src/Microsoft.Graph/Generated/Models/AppListItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AppListItem.cs @@ -105,7 +105,7 @@ public static AppListItem CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appId", n => { AppId = n.GetStringValue(); } }, {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appId", AppId); writer.WriteStringValue("appStoreUrl", AppStoreUrl); diff --git a/src/Microsoft.Graph/Generated/Models/AppLogCollectionDownloadDetails.cs b/src/Microsoft.Graph/Generated/Models/AppLogCollectionDownloadDetails.cs index 1b442544fcc..647c4020072 100644 --- a/src/Microsoft.Graph/Generated/Models/AppLogCollectionDownloadDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/AppLogCollectionDownloadDetails.cs @@ -79,7 +79,7 @@ public static AppLogCollectionDownloadDetails CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appLogDecryptionAlgorithm", n => { AppLogDecryptionAlgorithm = n.GetEnumValue(); } }, {"decryptionKey", n => { DecryptionKey = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("appLogDecryptionAlgorithm", AppLogDecryptionAlgorithm); writer.WriteStringValue("decryptionKey", DecryptionKey); diff --git a/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequest.cs b/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequest.cs index 4479a504c0b..6b84ce85db1 100644 --- a/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequest.cs @@ -58,7 +58,7 @@ public AppLogUploadState? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"customLogFolders", n => { CustomLogFolders = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public AppLogUploadState? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequestCollectionResponse.cs index 4f0bc7d6e7a..1f6da754c4a 100644 --- a/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AppLogCollectionRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AppLogCollectionRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AppManagementConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AppManagementConfiguration.cs index 8957245aa07..ff7509bce00 100644 --- a/src/Microsoft.Graph/Generated/Models/AppManagementConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AppManagementConfiguration.cs @@ -74,7 +74,7 @@ public static AppManagementConfiguration CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyCredentials", n => { KeyCredentials = n.GetCollectionOfObjectValues(KeyCredentialConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("keyCredentials", KeyCredentials); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs b/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs index 0ef0690fca2..dc5768c4d0d 100644 --- a/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs @@ -56,7 +56,7 @@ public AppManagementPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appliesTo", n => { AppliesTo = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public AppManagementPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("appliesTo", AppliesTo); diff --git a/src/Microsoft.Graph/Generated/Models/AppManagementPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AppManagementPolicyCollectionResponse.cs index 441994a563d..40ab0512eb6 100644 --- a/src/Microsoft.Graph/Generated/Models/AppManagementPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AppManagementPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AppManagementPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AppRole.cs b/src/Microsoft.Graph/Generated/Models/AppRole.cs index 56f167a125a..f59bc797acf 100644 --- a/src/Microsoft.Graph/Generated/Models/AppRole.cs +++ b/src/Microsoft.Graph/Generated/Models/AppRole.cs @@ -126,7 +126,7 @@ public static AppRole CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedMemberTypes", n => { AllowedMemberTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("allowedMemberTypes", AllowedMemberTypes); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs index b7bf5728184..4b1d9aec8a4 100644 --- a/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs @@ -85,7 +85,7 @@ public AppRoleAssignment() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appRoleId", n => { AppRoleId = n.GetGuidValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -100,7 +100,7 @@ public AppRoleAssignment() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteGuidValue("appRoleId", AppRoleId); diff --git a/src/Microsoft.Graph/Generated/Models/AppRoleAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AppRoleAssignmentCollectionResponse.cs index bc985696f6d..6e0aafd3b2c 100644 --- a/src/Microsoft.Graph/Generated/Models/AppRoleAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AppRoleAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AppRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AppScope.cs b/src/Microsoft.Graph/Generated/Models/AppScope.cs index df59a89abc8..d7f654e5c9e 100644 --- a/src/Microsoft.Graph/Generated/Models/AppScope.cs +++ b/src/Microsoft.Graph/Generated/Models/AppScope.cs @@ -45,7 +45,7 @@ public string Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string Type { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/AppleDeviceFeaturesConfigurationBase.cs b/src/Microsoft.Graph/Generated/Models/AppleDeviceFeaturesConfigurationBase.cs index 0b5b102c501..7a37039bed0 100644 --- a/src/Microsoft.Graph/Generated/Models/AppleDeviceFeaturesConfigurationBase.cs +++ b/src/Microsoft.Graph/Generated/Models/AppleDeviceFeaturesConfigurationBase.cs @@ -31,7 +31,7 @@ public AppleDeviceFeaturesConfigurationBase() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -39,7 +39,7 @@ public AppleDeviceFeaturesConfigurationBase() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AppleManagedIdentityProvider.cs b/src/Microsoft.Graph/Generated/Models/AppleManagedIdentityProvider.cs index 4f5a0e5d235..29e8ceb41d4 100644 --- a/src/Microsoft.Graph/Generated/Models/AppleManagedIdentityProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/AppleManagedIdentityProvider.cs @@ -79,7 +79,7 @@ public AppleManagedIdentityProvider() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"certificateData", n => { CertificateData = n.GetStringValue(); } }, {"developerId", n => { DeveloperId = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public AppleManagedIdentityProvider() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("certificateData", CertificateData); diff --git a/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs b/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs index 7e749203e30..64322395f10 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplePushNotificationCertificate.cs @@ -114,7 +114,7 @@ public string TopicIdentifier { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appleIdentifier", n => { AppleIdentifier = n.GetStringValue(); } }, {"certificate", n => { Certificate = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public string TopicIdentifier { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appleIdentifier", AppleIdentifier); diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index 130b888375f..df38b1d65ee 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -34,7 +34,7 @@ public ApiApplication Api { set { BackingStore?.Set("api", value); } } #endif - /// The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Alternate key. Supports $filter (eq). + /// The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AppId { @@ -207,7 +207,7 @@ public List FederatedIdentityCredentials { set { BackingStore?.Set("federatedIdentityCredentials", value); } } #endif - /// Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Azure AD roles), All (this gets all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of). + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? GroupMembershipClaims { @@ -235,7 +235,7 @@ public List HomeRealmDiscoveryPolicies { set { BackingStore?.Set("homeRealmDiscoveryPolicies", value); } } #endif - /// Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://<application-client-id>, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Azure AD application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). + /// Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://<application-client-id>, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? IdentifierUris { @@ -249,7 +249,7 @@ public List IdentifierUris { set { BackingStore?.Set("identifierUris", value); } } #endif - /// Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). + /// Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public InformationalUrl? Info { @@ -268,7 +268,7 @@ public bool? IsDeviceOnlyAuthSupported { get { return BackingStore?.Get("isDeviceOnlyAuthSupported"); } set { BackingStore?.Set("isDeviceOnlyAuthSupported", value); } } - /// Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Azure AD cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Azure AD interprets the application type based on the value of this property. + /// Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. public bool? IsFallbackPublicClient { get { return BackingStore?.Get("isFallbackPublicClient"); } set { BackingStore?.Set("isFallbackPublicClient", value); } @@ -320,7 +320,7 @@ public bool? Oauth2RequirePostResponse { get { return BackingStore?.Get("oauth2RequirePostResponse"); } set { BackingStore?.Set("oauth2RequirePostResponse", value); } } - /// Application developers can configure optional claims in their Azure AD applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. + /// Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.OptionalClaims? OptionalClaims { @@ -404,7 +404,7 @@ public string PublisherDomain { set { BackingStore?.Set("publisherDomain", value); } } #endif - /// Specifies whether this application requires Azure AD to verify the signed authentication requests. + /// Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.RequestSignatureVerification? RequestSignatureVerification { @@ -502,7 +502,7 @@ public SpaApplication Spa { set { BackingStore?.Set("spa", value); } } #endif - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.Synchronization? Synchronization { @@ -530,7 +530,7 @@ public List Tags { set { BackingStore?.Set("tags", value); } } #endif - /// Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. + /// Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. public Guid? TokenEncryptionKeyId { get { return BackingStore?.Get("tokenEncryptionKeyId"); } set { BackingStore?.Set("tokenEncryptionKeyId", value); } @@ -608,7 +608,7 @@ public Application() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addIns", n => { AddIns = n.GetCollectionOfObjectValues(AddIn.CreateFromDiscriminatorValue)?.ToList(); } }, {"api", n => { Api = n.GetObjectValue(ApiApplication.CreateFromDiscriminatorValue); } }, @@ -661,7 +661,7 @@ public Application() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("addIns", AddIns); diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ApplicationCollectionResponse.cs index 56d11a6c322..78c6801de27 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Application.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationEnforcedRestrictionsSessionControl.cs b/src/Microsoft.Graph/Generated/Models/ApplicationEnforcedRestrictionsSessionControl.cs index c4e08633c5f..c972582cd7d 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationEnforcedRestrictionsSessionControl.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationEnforcedRestrictionsSessionControl.cs @@ -23,7 +23,7 @@ public ApplicationEnforcedRestrictionsSessionControl() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ApplicationEnforcedRestrictionsSessionControl() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ApplicationServicePrincipal.cs index 7956ddf621f..ec4d963f8a1 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationServicePrincipal.cs @@ -74,7 +74,7 @@ public static ApplicationServicePrincipal CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"application", n => { Application = n.GetObjectValue(Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("application", Application); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationTemplate.cs b/src/Microsoft.Graph/Generated/Models/ApplicationTemplate.cs index 2381fab7da9..e1f3ec7e188 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationTemplate.cs @@ -129,7 +129,7 @@ public List SupportedSingleSignOnModes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public List SupportedSingleSignOnModes { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("categories", Categories); diff --git a/src/Microsoft.Graph/Generated/Models/ApplicationTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ApplicationTemplateCollectionResponse.cs index 0b9f17a42a4..2eb00755456 100644 --- a/src/Microsoft.Graph/Generated/Models/ApplicationTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ApplicationTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ApplicationTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs index 05854a3e9ae..2d57dbc7699 100644 --- a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs @@ -107,7 +107,7 @@ public static AppliedConditionalAccessPolicy CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"enforcedGrantControls", n => { EnforcedGrantControls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteCollectionOfPrimitiveValues("enforcedGrantControls", EnforcedGrantControls); diff --git a/src/Microsoft.Graph/Generated/Models/Approval.cs b/src/Microsoft.Graph/Generated/Models/Approval.cs index 564155569a6..2de3cf839d4 100644 --- a/src/Microsoft.Graph/Generated/Models/Approval.cs +++ b/src/Microsoft.Graph/Generated/Models/Approval.cs @@ -31,7 +31,7 @@ public List Stages { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"stages", n => { Stages = n.GetCollectionOfObjectValues(ApprovalStage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Stages { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("stages", Stages); diff --git a/src/Microsoft.Graph/Generated/Models/ApprovalCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ApprovalCollectionResponse.cs index 523a47a4d13..2dbf8097bbb 100644 --- a/src/Microsoft.Graph/Generated/Models/ApprovalCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ApprovalCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Approval.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ApprovalSettings.cs b/src/Microsoft.Graph/Generated/Models/ApprovalSettings.cs index a88c0d98aaa..0a9cfe5755c 100644 --- a/src/Microsoft.Graph/Generated/Models/ApprovalSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/ApprovalSettings.cs @@ -89,7 +89,7 @@ public static ApprovalSettings CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"approvalMode", n => { ApprovalMode = n.GetStringValue(); } }, {"approvalStages", n => { ApprovalStages = n.GetCollectionOfObjectValues(UnifiedApprovalStage.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("approvalMode", ApprovalMode); writer.WriteCollectionOfObjectValues("approvalStages", ApprovalStages); diff --git a/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs b/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs index 99df7071eaa..0fc04bd5237 100644 --- a/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs +++ b/src/Microsoft.Graph/Generated/Models/ApprovalStage.cs @@ -97,7 +97,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedToMe", n => { AssignedToMe = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public string Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("assignedToMe", AssignedToMe); diff --git a/src/Microsoft.Graph/Generated/Models/ApprovalStageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ApprovalStageCollectionResponse.cs index c7fd6d477ff..2222956898b 100644 --- a/src/Microsoft.Graph/Generated/Models/ApprovalStageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ApprovalStageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ApprovalStage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ArchivedPrintJob.cs b/src/Microsoft.Graph/Generated/Models/ArchivedPrintJob.cs index 0177a221f78..575fffe39f1 100644 --- a/src/Microsoft.Graph/Generated/Models/ArchivedPrintJob.cs +++ b/src/Microsoft.Graph/Generated/Models/ArchivedPrintJob.cs @@ -132,7 +132,7 @@ public static ArchivedPrintJob CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"acquiredByPrinter", n => { AcquiredByPrinter = n.GetBoolValue(); } }, {"acquiredDateTime", n => { AcquiredDateTime = n.GetDateTimeOffsetValue(); } }, @@ -151,7 +151,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("acquiredByPrinter", AcquiredByPrinter); writer.WriteDateTimeOffsetValue("acquiredDateTime", AcquiredDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AssignedLabel.cs b/src/Microsoft.Graph/Generated/Models/AssignedLabel.cs index d0131c4f1ba..1f304d7125a 100644 --- a/src/Microsoft.Graph/Generated/Models/AssignedLabel.cs +++ b/src/Microsoft.Graph/Generated/Models/AssignedLabel.cs @@ -74,7 +74,7 @@ public static AssignedLabel CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"labelId", n => { LabelId = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("labelId", LabelId); diff --git a/src/Microsoft.Graph/Generated/Models/AssignedLicense.cs b/src/Microsoft.Graph/Generated/Models/AssignedLicense.cs index e5697a2977c..8d4721dbedb 100644 --- a/src/Microsoft.Graph/Generated/Models/AssignedLicense.cs +++ b/src/Microsoft.Graph/Generated/Models/AssignedLicense.cs @@ -65,7 +65,7 @@ public static AssignedLicense CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"disabledPlans", n => { DisabledPlans = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("disabledPlans", DisabledPlans); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AssignedPlan.cs b/src/Microsoft.Graph/Generated/Models/AssignedPlan.cs index cc5dc894c3e..80994cbfeac 100644 --- a/src/Microsoft.Graph/Generated/Models/AssignedPlan.cs +++ b/src/Microsoft.Graph/Generated/Models/AssignedPlan.cs @@ -84,7 +84,7 @@ public static AssignedPlan CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"capabilityStatus", n => { CapabilityStatus = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("assignedDateTime", AssignedDateTime); writer.WriteStringValue("capabilityStatus", CapabilityStatus); diff --git a/src/Microsoft.Graph/Generated/Models/AssignedTrainingInfo.cs b/src/Microsoft.Graph/Generated/Models/AssignedTrainingInfo.cs index 0c4431d39e9..27117da3f04 100644 --- a/src/Microsoft.Graph/Generated/Models/AssignedTrainingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/AssignedTrainingInfo.cs @@ -70,7 +70,7 @@ public static AssignedTrainingInfo CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedUserCount", n => { AssignedUserCount = n.GetIntValue(); } }, {"completedUserCount", n => { CompletedUserCount = n.GetIntValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("assignedUserCount", AssignedUserCount); writer.WriteIntValue("completedUserCount", CompletedUserCount); diff --git a/src/Microsoft.Graph/Generated/Models/AssignmentOrder.cs b/src/Microsoft.Graph/Generated/Models/AssignmentOrder.cs index fe7ce2ea4e0..101f570708d 100644 --- a/src/Microsoft.Graph/Generated/Models/AssignmentOrder.cs +++ b/src/Microsoft.Graph/Generated/Models/AssignmentOrder.cs @@ -60,7 +60,7 @@ public static AssignmentOrder CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"order", n => { Order = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfPrimitiveValues("order", Order); diff --git a/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfo.cs b/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfo.cs index cefb6f7ac05..231eccc2e4d 100644 --- a/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfo.cs @@ -17,7 +17,7 @@ public class AssociatedTeamInfo : TeamInfo, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class AssociatedTeamInfo : TeamInfo, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfoCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfoCollectionResponse.cs index e71d451ca50..4adcd064a12 100644 --- a/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfoCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AssociatedTeamInfoCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AssociatedTeamInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Attachment.cs b/src/Microsoft.Graph/Generated/Models/Attachment.cs index 1a62f350e55..6be2ec40d19 100644 --- a/src/Microsoft.Graph/Generated/Models/Attachment.cs +++ b/src/Microsoft.Graph/Generated/Models/Attachment.cs @@ -66,7 +66,7 @@ public int? Size { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentType", n => { ContentType = n.GetStringValue(); } }, {"isInline", n => { IsInline = n.GetBoolValue(); } }, @@ -79,7 +79,7 @@ public int? Size { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs b/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs index 839e1916df7..efa03ab810e 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentBase.cs @@ -59,7 +59,7 @@ public int? Size { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentType", n => { ContentType = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -71,7 +71,7 @@ public int? Size { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentBaseCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttachmentBaseCollectionResponse.cs index b4a8673efc5..6c827582425 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentBaseCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentBaseCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttachmentBase.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttachmentCollectionResponse.cs index 69e88bb0473..6e1e971ff55 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs b/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs index 0e85fb784dd..9b029c3227b 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentInfo.cs @@ -84,7 +84,7 @@ public static AttachmentInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attachmentType", n => { AttachmentType = n.GetEnumValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("attachmentType", AttachmentType); writer.WriteStringValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs b/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs index 01825e64782..b5a48ad412d 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentItem.cs @@ -103,7 +103,7 @@ public static AttachmentItem CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attachmentType", n => { AttachmentType = n.GetEnumValue(); } }, {"contentId", n => { ContentId = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("attachmentType", AttachmentType); writer.WriteStringValue("contentId", ContentId); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs b/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs index b3797b0da4c..950d8628de2 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentSession.cs @@ -50,7 +50,7 @@ public List NextExpectedRanges { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, @@ -61,7 +61,7 @@ public List NextExpectedRanges { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/AttachmentSessionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttachmentSessionCollectionResponse.cs index e4423ea1bd8..8275540dda0 100644 --- a/src/Microsoft.Graph/Generated/Models/AttachmentSessionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttachmentSessionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttachmentSession.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs index 8570ac9d5e4..6c8e3c1819d 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperation.cs @@ -41,7 +41,7 @@ public AttackSimulationOperationType? Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"percentageCompleted", n => { PercentageCompleted = n.GetIntValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, @@ -52,7 +52,7 @@ public AttackSimulationOperationType? Type { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("percentageCompleted", PercentageCompleted); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs index 23afab7ab1b..d03a5815cbd 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationRepeatOffender.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationRepeatOffender.cs index 7b440f3a53f..75d3950c4b2 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationRepeatOffender.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationRepeatOffender.cs @@ -65,7 +65,7 @@ public static AttackSimulationRepeatOffender CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(Microsoft.Graph.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attackSimulationUser", AttackSimulationUser); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs index 2d6868dccf6..21e8c7df3bd 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationRoot.cs @@ -129,7 +129,7 @@ public List Trainings { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endUserNotifications", n => { EndUserNotifications = n.GetCollectionOfObjectValues(EndUserNotification.CreateFromDiscriminatorValue)?.ToList(); } }, {"landingPages", n => { LandingPages = n.GetCollectionOfObjectValues(LandingPage.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -145,7 +145,7 @@ public List Trainings { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("endUserNotifications", EndUserNotifications); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationSimulationUserCoverage.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationSimulationUserCoverage.cs index 984f1728b20..a6e16122141 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationSimulationUserCoverage.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationSimulationUserCoverage.cs @@ -80,7 +80,7 @@ public static AttackSimulationSimulationUserCoverage CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(Microsoft.Graph.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"clickCount", n => { ClickCount = n.GetIntValue(); } }, @@ -94,7 +94,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attackSimulationUser", AttackSimulationUser); writer.WriteIntValue("clickCount", ClickCount); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationTrainingUserCoverage.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationTrainingUserCoverage.cs index d2c73747c79..caca746c4f3 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationTrainingUserCoverage.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationTrainingUserCoverage.cs @@ -74,7 +74,7 @@ public static AttackSimulationTrainingUserCoverage CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(Microsoft.Graph.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attackSimulationUser", AttackSimulationUser); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AttackSimulationUser.cs b/src/Microsoft.Graph/Generated/Models/AttackSimulationUser.cs index fc93140ac17..7973b857895 100644 --- a/src/Microsoft.Graph/Generated/Models/AttackSimulationUser.cs +++ b/src/Microsoft.Graph/Generated/Models/AttackSimulationUser.cs @@ -56,7 +56,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// This is the id property value of the user resource that represents the user in the Azure Active Directory tenant. + /// This is the id property value of the user resource that represents the user in the Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -88,7 +88,7 @@ public static AttackSimulationUser CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("email", Email); diff --git a/src/Microsoft.Graph/Generated/Models/AttendanceInterval.cs b/src/Microsoft.Graph/Generated/Models/AttendanceInterval.cs index 672bb87ab34..9aa5d75a3dd 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendanceInterval.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendanceInterval.cs @@ -61,7 +61,7 @@ public static AttendanceInterval CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"durationInSeconds", n => { DurationInSeconds = n.GetIntValue(); } }, {"joinDateTime", n => { JoinDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("durationInSeconds", DurationInSeconds); writer.WriteDateTimeOffsetValue("joinDateTime", JoinDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs b/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs index eecdf0d008d..1649707a914 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendanceRecord.cs @@ -78,7 +78,7 @@ public int? TotalAttendanceInSeconds { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attendanceIntervals", n => { AttendanceIntervals = n.GetCollectionOfObjectValues(AttendanceInterval.CreateFromDiscriminatorValue)?.ToList(); } }, {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public int? TotalAttendanceInSeconds { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("attendanceIntervals", AttendanceIntervals); diff --git a/src/Microsoft.Graph/Generated/Models/AttendanceRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttendanceRecordCollectionResponse.cs index 7ab851120a3..bc10924510e 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendanceRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendanceRecordCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttendanceRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Attendee.cs b/src/Microsoft.Graph/Generated/Models/Attendee.cs index ba0d6c45f1b..af34bc66b63 100644 --- a/src/Microsoft.Graph/Generated/Models/Attendee.cs +++ b/src/Microsoft.Graph/Generated/Models/Attendee.cs @@ -51,7 +51,7 @@ public Attendee() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"proposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, {"status", n => { Status = n.GetObjectValue(ResponseStatus.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public Attendee() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("proposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Models/AttendeeAvailability.cs b/src/Microsoft.Graph/Generated/Models/AttendeeAvailability.cs index 66fe437e923..5e859a9b64d 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendeeAvailability.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendeeAvailability.cs @@ -65,7 +65,7 @@ public static AttendeeAvailability CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attendee", n => { Attendee = n.GetObjectValue(AttendeeBase.CreateFromDiscriminatorValue); } }, {"availability", n => { Availability = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attendee", Attendee); writer.WriteEnumValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Models/AttendeeBase.cs b/src/Microsoft.Graph/Generated/Models/AttendeeBase.cs index 963af499d9a..aeb811312eb 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendeeBase.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendeeBase.cs @@ -32,7 +32,7 @@ public AttendeeBase() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"type", n => { Type = n.GetEnumValue(); } }, }; @@ -41,7 +41,7 @@ public AttendeeBase() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("type", Type); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeDefinition.cs b/src/Microsoft.Graph/Generated/Models/AttributeDefinition.cs index 3128946a44b..7c63bf7a826 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeDefinition.cs @@ -151,7 +151,7 @@ public static AttributeDefinition CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"anchor", n => { Anchor = n.GetBoolValue(); } }, {"apiExpressions", n => { ApiExpressions = n.GetCollectionOfObjectValues(StringKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -172,7 +172,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("anchor", Anchor); writer.WriteCollectionOfObjectValues("apiExpressions", ApiExpressions); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeDefinitionMetadataEntry.cs b/src/Microsoft.Graph/Generated/Models/AttributeDefinitionMetadataEntry.cs index e171bfc947d..674ffd794d2 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeDefinitionMetadataEntry.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeDefinitionMetadataEntry.cs @@ -65,7 +65,7 @@ public static AttributeDefinitionMetadataEntry CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeMapping.cs b/src/Microsoft.Graph/Generated/Models/AttributeMapping.cs index 9440c29823b..9f612ecb439 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeMapping.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeMapping.cs @@ -108,7 +108,7 @@ public static AttributeMapping CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"defaultValue", n => { DefaultValue = n.GetStringValue(); } }, {"exportMissingReferences", n => { ExportMissingReferences = n.GetBoolValue(); } }, @@ -124,7 +124,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("defaultValue", DefaultValue); writer.WriteBoolValue("exportMissingReferences", ExportMissingReferences); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchema.cs b/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchema.cs index ea0e84a30ea..1fe9f747650 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchema.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchema.cs @@ -31,7 +31,7 @@ public List Parameters { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"parameters", n => { Parameters = n.GetCollectionOfObjectValues(AttributeMappingParameterSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Parameters { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("parameters", Parameters); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchemaCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchemaCollectionResponse.cs index 2bacc1b3bd3..8215d7028f6 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchemaCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeMappingFunctionSchemaCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeMappingParameterSchema.cs b/src/Microsoft.Graph/Generated/Models/AttributeMappingParameterSchema.cs index 8d6e8729950..688dd789882 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeMappingParameterSchema.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeMappingParameterSchema.cs @@ -75,7 +75,7 @@ public static AttributeMappingParameterSchema CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowMultipleOccurrences", n => { AllowMultipleOccurrences = n.GetBoolValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowMultipleOccurrences", AllowMultipleOccurrences); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeMappingSource.cs b/src/Microsoft.Graph/Generated/Models/AttributeMappingSource.cs index 1f769ddd8d3..a2f67c33125 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeMappingSource.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeMappingSource.cs @@ -93,7 +93,7 @@ public static AttributeMappingSource CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expression", n => { Expression = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeRuleMembers.cs b/src/Microsoft.Graph/Generated/Models/AttributeRuleMembers.cs index 7dac0c08e7c..7825150c771 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeRuleMembers.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeRuleMembers.cs @@ -51,7 +51,7 @@ public AttributeRuleMembers() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"membershipRule", n => { MembershipRule = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public AttributeRuleMembers() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeSet.cs b/src/Microsoft.Graph/Generated/Models/AttributeSet.cs index 2690ad13cc1..86210d67648 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeSet.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeSet.cs @@ -36,7 +36,7 @@ public int? MaxAttributesPerSet { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"maxAttributesPerSet", n => { MaxAttributesPerSet = n.GetIntValue(); } }, @@ -46,7 +46,7 @@ public int? MaxAttributesPerSet { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AttributeSetCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AttributeSetCollectionResponse.cs index fd1527a0e55..5bd482f0dd0 100644 --- a/src/Microsoft.Graph/Generated/Models/AttributeSetCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AttributeSetCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeSet.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Audio.cs b/src/Microsoft.Graph/Generated/Models/Audio.cs index dc71da8223b..f4a5cbd8b0a 100644 --- a/src/Microsoft.Graph/Generated/Models/Audio.cs +++ b/src/Microsoft.Graph/Generated/Models/Audio.cs @@ -189,7 +189,7 @@ public static Audio CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"album", n => { Album = n.GetStringValue(); } }, {"albumArtist", n => { AlbumArtist = n.GetStringValue(); } }, @@ -214,7 +214,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("album", Album); writer.WriteStringValue("albumArtist", AlbumArtist); diff --git a/src/Microsoft.Graph/Generated/Models/AudioConferencing.cs b/src/Microsoft.Graph/Generated/Models/AudioConferencing.cs index 0a96dac6a78..397ebd21e2d 100644 --- a/src/Microsoft.Graph/Generated/Models/AudioConferencing.cs +++ b/src/Microsoft.Graph/Generated/Models/AudioConferencing.cs @@ -130,7 +130,7 @@ public static AudioConferencing CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"conferenceId", n => { ConferenceId = n.GetStringValue(); } }, {"dialinUrl", n => { DialinUrl = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("conferenceId", ConferenceId); writer.WriteStringValue("dialinUrl", DialinUrl); diff --git a/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs b/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs index 920d35c9af8..c092a5c8798 100644 --- a/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/AudioRoutingGroup.cs @@ -50,7 +50,7 @@ public List Sources { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"receivers", n => { Receivers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"routingMode", n => { RoutingMode = n.GetEnumValue(); } }, @@ -61,7 +61,7 @@ public List Sources { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("receivers", Receivers); diff --git a/src/Microsoft.Graph/Generated/Models/AudioRoutingGroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AudioRoutingGroupCollectionResponse.cs index 66d9a00685d..9f0efa2ec39 100644 --- a/src/Microsoft.Graph/Generated/Models/AudioRoutingGroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AudioRoutingGroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AudioRoutingGroup.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuditActivityInitiator.cs b/src/Microsoft.Graph/Generated/Models/AuditActivityInitiator.cs index 0e7deb9ff73..b817d733fae 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditActivityInitiator.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditActivityInitiator.cs @@ -74,7 +74,7 @@ public static AuditActivityInitiator CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"app", n => { App = n.GetObjectValue(AppIdentity.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("app", App); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AuditActor.cs b/src/Microsoft.Graph/Generated/Models/AuditActor.cs index c6b0bd31320..0904c6ef9a7 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditActor.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditActor.cs @@ -161,7 +161,7 @@ public static AuditActor CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationDisplayName", n => { ApplicationDisplayName = n.GetStringValue(); } }, {"applicationId", n => { ApplicationId = n.GetStringValue(); } }, @@ -178,7 +178,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationDisplayName", ApplicationDisplayName); writer.WriteStringValue("applicationId", ApplicationId); diff --git a/src/Microsoft.Graph/Generated/Models/AuditEvent.cs b/src/Microsoft.Graph/Generated/Models/AuditEvent.cs index 85eac11d04e..9da4106371e 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditEvent.cs @@ -156,7 +156,7 @@ public List Resources { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetStringValue(); } }, {"activityDateTime", n => { ActivityDateTime = n.GetDateTimeOffsetValue(); } }, @@ -175,7 +175,7 @@ public List Resources { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("activity", Activity); diff --git a/src/Microsoft.Graph/Generated/Models/AuditEventCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuditEventCollectionResponse.cs index 946a3052bec..903c904d50a 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditEventCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditEventCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuditEvent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuditLogRoot.cs b/src/Microsoft.Graph/Generated/Models/AuditLogRoot.cs index c1d478c5923..f2af7663ad3 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditLogRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditLogRoot.cs @@ -59,7 +59,7 @@ public List SignIns { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"directoryAudits", n => { DirectoryAudits = n.GetCollectionOfObjectValues(DirectoryAudit.CreateFromDiscriminatorValue)?.ToList(); } }, {"provisioning", n => { Provisioning = n.GetCollectionOfObjectValues(ProvisioningObjectSummary.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public List SignIns { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("directoryAudits", DirectoryAudits); diff --git a/src/Microsoft.Graph/Generated/Models/AuditProperty.cs b/src/Microsoft.Graph/Generated/Models/AuditProperty.cs index 0c958aa7690..57e14c1fb0c 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditProperty.cs @@ -91,7 +91,7 @@ public static AuditProperty CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"newValue", n => { NewValue = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("newValue", NewValue); diff --git a/src/Microsoft.Graph/Generated/Models/AuditResource.cs b/src/Microsoft.Graph/Generated/Models/AuditResource.cs index e8566c25dc8..125393d3b5f 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditResource.cs @@ -105,7 +105,7 @@ public static AuditResource CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"auditResourceType", n => { AuditResourceType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("auditResourceType", AuditResourceType); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Authentication.cs b/src/Microsoft.Graph/Generated/Models/Authentication.cs index 694ff9a691b..1b11916a651 100644 --- a/src/Microsoft.Graph/Generated/Models/Authentication.cs +++ b/src/Microsoft.Graph/Generated/Models/Authentication.cs @@ -157,7 +157,7 @@ public List WindowsHelloForBusiness /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"emailMethods", n => { EmailMethods = n.GetCollectionOfObjectValues(EmailAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, {"fido2Methods", n => { Fido2Methods = n.GetCollectionOfObjectValues(Fido2AuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -175,7 +175,7 @@ public List WindowsHelloForBusiness /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("emailMethods", EmailMethods); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs index 9c96ab15e8a..1413ccee4e1 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs @@ -35,7 +35,7 @@ public List AppliesToCombinations { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appliesToCombinations", n => { AppliesToCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -44,7 +44,7 @@ public List AppliesToCombinations { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("appliesToCombinations", AppliesToCombinations); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs index e00e3637fa6..b85da10795f 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs index 47b171155da..04179a7c5f4 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReference.cs @@ -50,7 +50,7 @@ public bool? IsAvailable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public bool? IsAvailable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReferenceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReferenceCollectionResponse.cs index 91c2841fd08..d8474f78c0d 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReferenceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationContextClassReferenceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationContextClassReference.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationFlowsPolicy.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationFlowsPolicy.cs index 1c90c711e25..790c9d234e3 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationFlowsPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationFlowsPolicy.cs @@ -59,7 +59,7 @@ public SelfServiceSignUpAuthenticationFlowConfiguration SelfServiceSignUp { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public SelfServiceSignUpAuthenticationFlowConfiguration SelfServiceSignUp { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs index d7fa8c5aa00..b8069c65e99 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs @@ -28,7 +28,7 @@ public class AuthenticationMethod : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -36,7 +36,7 @@ public class AuthenticationMethod : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodCollectionResponse.cs index 83d53569f8e..97fb3ef260d 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfiguration.cs index 56d65b11f8f..075a3a7a3e8 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfiguration.cs @@ -47,7 +47,7 @@ public AuthenticationMethodState? State { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"excludeTargets", n => { ExcludeTargets = n.GetCollectionOfObjectValues(ExcludeTarget.CreateFromDiscriminatorValue)?.ToList(); } }, {"state", n => { State = n.GetEnumValue(); } }, @@ -57,7 +57,7 @@ public AuthenticationMethodState? State { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("excludeTargets", ExcludeTargets); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs index 7dd55bfcd7b..038ac3d4640 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationMethodConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodFeatureConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodFeatureConfiguration.cs index 46b898ea0b5..7ff8346faae 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodFeatureConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodFeatureConfiguration.cs @@ -56,7 +56,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Azure AD for the setting. The default value is disabled. + /// Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Microsoft Entra ID for the setting. The default value is disabled. public AdvancedConfigState? State { get { return BackingStore?.Get("state"); } set { BackingStore?.Set("state", value); } @@ -79,7 +79,7 @@ public static AuthenticationMethodFeatureConfiguration CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludeTarget", n => { ExcludeTarget = n.GetObjectValue(FeatureTarget.CreateFromDiscriminatorValue); } }, {"includeTarget", n => { IncludeTarget = n.GetObjectValue(FeatureTarget.CreateFromDiscriminatorValue); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("excludeTarget", ExcludeTarget); writer.WriteObjectValue("includeTarget", IncludeTarget); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs index 9b164691098..ed1fa9bf8ed 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs @@ -36,7 +36,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationMethod", n => { AuthenticationMethod = n.GetEnumValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -46,7 +46,7 @@ public string DisplayName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("authenticationMethod", AuthenticationMethod); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs index 2e74449dffb..ddbaa7059a6 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationMethodModeDetail.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodTarget.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodTarget.cs index 1f294369849..c361d3a631c 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodTarget.cs @@ -32,7 +32,7 @@ public AuthenticationMethodTargetType? TargetType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isRegistrationRequired", n => { IsRegistrationRequired = n.GetBoolValue(); } }, {"targetType", n => { TargetType = n.GetEnumValue(); } }, @@ -42,7 +42,7 @@ public AuthenticationMethodTargetType? TargetType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isRegistrationRequired", IsRegistrationRequired); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsPolicy.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsPolicy.cs index 2b016f5b9d0..5c003bcf5c6 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsPolicy.cs @@ -102,7 +102,7 @@ public Microsoft.Graph.Models.RegistrationEnforcement RegistrationEnforcement { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationMethodConfigurations", n => { AuthenticationMethodConfigurations = n.GetCollectionOfObjectValues(AuthenticationMethodConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public Microsoft.Graph.Models.RegistrationEnforcement RegistrationEnforcement { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("authenticationMethodConfigurations", AuthenticationMethodConfigurations); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaign.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaign.cs index ef75800ec4d..e94461d07c9 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaign.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaign.cs @@ -84,7 +84,7 @@ public static AuthenticationMethodsRegistrationCampaign CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludeTargets", n => { ExcludeTargets = n.GetCollectionOfObjectValues(ExcludeTarget.CreateFromDiscriminatorValue)?.ToList(); } }, {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(AuthenticationMethodsRegistrationCampaignIncludeTarget.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("excludeTargets", ExcludeTargets); writer.WriteCollectionOfObjectValues("includeTargets", IncludeTargets); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs index 6745a0f6224..2ef30d6bb56 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The object identifier of an Azure Active Directory user or group. + /// The object identifier of a Microsoft Entra user or group. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Id { @@ -79,7 +79,7 @@ public static AuthenticationMethodsRegistrationCampaignIncludeTarget CreateFromD /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRoot.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRoot.cs index be0659199c3..4e63b3b4a53 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodsRoot.cs @@ -31,7 +31,7 @@ public List UserRegistrationDeta /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userRegistrationDetails", n => { UserRegistrationDetails = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.UserRegistrationDetails.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List UserRegistrationDeta /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("userRegistrationDetails", UserRegistrationDetails); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs index e4b90a7475e..8a60193039b 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs @@ -93,7 +93,7 @@ public AuthenticationStrengthRequirements? RequirementsSatisfied { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedCombinations", n => { AllowedCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, {"combinationConfigurations", n => { CombinationConfigurations = n.GetCollectionOfObjectValues(AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -109,7 +109,7 @@ public AuthenticationStrengthRequirements? RequirementsSatisfied { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("allowedCombinations", AllowedCombinations); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs index cca96e777c9..fe0cc19cbe0 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs index cdbc3660e1b..75167c0c316 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs @@ -59,7 +59,7 @@ public List Policies { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationMethodModes", n => { AuthenticationMethodModes = n.GetCollectionOfObjectValues(AuthenticationMethodModeDetail.CreateFromDiscriminatorValue)?.ToList(); } }, {"combinations", n => { Combinations = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public List Policies { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("authenticationMethodModes", AuthenticationMethodModes); diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs index f2750e8b8e8..572261ccf6f 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs @@ -74,7 +74,7 @@ public static AuthenticationStrengthUsage CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mfa", n => { Mfa = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"none", n => { None = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("mfa", Mfa); writer.WriteCollectionOfObjectValues("none", None); diff --git a/src/Microsoft.Graph/Generated/Models/AuthoredNote.cs b/src/Microsoft.Graph/Generated/Models/AuthoredNote.cs index 1f075296bc4..7344e7f5067 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthoredNote.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthoredNote.cs @@ -50,7 +50,7 @@ public DateTimeOffset? CreatedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"author", n => { Author = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"content", n => { Content = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public DateTimeOffset? CreatedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("author", Author); diff --git a/src/Microsoft.Graph/Generated/Models/AuthoredNoteCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthoredNoteCollectionResponse.cs index 061398790f6..6059fc1351c 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthoredNoteCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthoredNoteCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AuthoredNote.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/AuthorizationInfo.cs b/src/Microsoft.Graph/Generated/Models/AuthorizationInfo.cs index 3ab85126de8..2b337a39c21 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthorizationInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthorizationInfo.cs @@ -60,7 +60,7 @@ public static AuthorizationInfo CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificateUserIds", n => { CertificateUserIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("certificateUserIds", CertificateUserIds); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs b/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs index cff8ad508f4..7b97f52d9ac 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthorizationPolicy.cs @@ -31,7 +31,7 @@ public bool? AllowUserConsentForRiskyApps { get { return BackingStore?.Get("allowUserConsentForRiskyApps"); } set { BackingStore?.Set("allowUserConsentForRiskyApps", value); } } - /// To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Azure Active Directory Connect or Microsoft Graph. + /// To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Microsoft Entra Connect or Microsoft Graph. public bool? BlockMsolPowerShell { get { return BackingStore?.Get("blockMsolPowerShell"); } set { BackingStore?.Set("blockMsolPowerShell", value); } @@ -72,7 +72,7 @@ public AuthorizationPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowEmailVerifiedUsersToJoinOrganization", n => { AllowEmailVerifiedUsersToJoinOrganization = n.GetBoolValue(); } }, {"allowInvitesFrom", n => { AllowInvitesFrom = n.GetEnumValue(); } }, @@ -88,7 +88,7 @@ public AuthorizationPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowedToSignUpEmailBasedSubscriptions", AllowedToSignUpEmailBasedSubscriptions); diff --git a/src/Microsoft.Graph/Generated/Models/AutomaticRepliesMailTips.cs b/src/Microsoft.Graph/Generated/Models/AutomaticRepliesMailTips.cs index e5b712e5f6f..827453cdabc 100644 --- a/src/Microsoft.Graph/Generated/Models/AutomaticRepliesMailTips.cs +++ b/src/Microsoft.Graph/Generated/Models/AutomaticRepliesMailTips.cs @@ -102,7 +102,7 @@ public static AutomaticRepliesMailTips CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"message", n => { Message = n.GetStringValue(); } }, {"messageLanguage", n => { MessageLanguage = n.GetObjectValue(LocaleInfo.CreateFromDiscriminatorValue); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("message", Message); writer.WriteObjectValue("messageLanguage", MessageLanguage); diff --git a/src/Microsoft.Graph/Generated/Models/AutomaticRepliesSetting.cs b/src/Microsoft.Graph/Generated/Models/AutomaticRepliesSetting.cs index 1b2fb4162bb..cad4bab019d 100644 --- a/src/Microsoft.Graph/Generated/Models/AutomaticRepliesSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/AutomaticRepliesSetting.cs @@ -112,7 +112,7 @@ public static AutomaticRepliesSetting CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"externalAudience", n => { ExternalAudience = n.GetEnumValue(); } }, {"externalReplyMessage", n => { ExternalReplyMessage = n.GetStringValue(); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("externalAudience", ExternalAudience); writer.WriteStringValue("externalReplyMessage", ExternalReplyMessage); diff --git a/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs b/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs index c7249ae8afd..1cdec7e8a3a 100644 --- a/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs +++ b/src/Microsoft.Graph/Generated/Models/AvailabilityItem.cs @@ -93,7 +93,7 @@ public static AvailabilityItem CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endDateTime", EndDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/AverageComparativeScore.cs b/src/Microsoft.Graph/Generated/Models/AverageComparativeScore.cs index 715ee787d1e..6cde7d4fccc 100644 --- a/src/Microsoft.Graph/Generated/Models/AverageComparativeScore.cs +++ b/src/Microsoft.Graph/Generated/Models/AverageComparativeScore.cs @@ -65,7 +65,7 @@ public static AverageComparativeScore CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"averageScore", n => { AverageScore = n.GetDoubleValue(); } }, {"basis", n => { Basis = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("averageScore", AverageScore); writer.WriteStringValue("basis", Basis); diff --git a/src/Microsoft.Graph/Generated/Models/AzureActiveDirectoryTenant.cs b/src/Microsoft.Graph/Generated/Models/AzureActiveDirectoryTenant.cs index f358ca1b1a3..53ec90d016d 100644 --- a/src/Microsoft.Graph/Generated/Models/AzureActiveDirectoryTenant.cs +++ b/src/Microsoft.Graph/Generated/Models/AzureActiveDirectoryTenant.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class AzureActiveDirectoryTenant : IdentitySource, IParsable { - /// The name of the Azure Active Directory tenant. Read only. + /// The name of the Microsoft Entra tenant. Read only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -20,7 +20,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The ID of the Azure Active Directory tenant. Read only. + /// The ID of the Microsoft Entra tenant. Read only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -51,7 +51,7 @@ public AzureActiveDirectoryTenant() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public AzureActiveDirectoryTenant() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/AzureAdPopTokenAuthentication.cs b/src/Microsoft.Graph/Generated/Models/AzureAdPopTokenAuthentication.cs index 5afc0f60b54..49ba46b8f16 100644 --- a/src/Microsoft.Graph/Generated/Models/AzureAdPopTokenAuthentication.cs +++ b/src/Microsoft.Graph/Generated/Models/AzureAdPopTokenAuthentication.cs @@ -23,7 +23,7 @@ public AzureAdPopTokenAuthentication() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public AzureAdPopTokenAuthentication() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs b/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs index 7f96891e0f8..6d2d305ceb2 100644 --- a/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs @@ -37,7 +37,7 @@ public AzureCommunicationServicesUserConversationMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"azureCommunicationServicesId", n => { AzureCommunicationServicesId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public AzureCommunicationServicesUserConversationMember() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("azureCommunicationServicesId", AzureCommunicationServicesId); diff --git a/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserIdentity.cs b/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserIdentity.cs new file mode 100644 index 00000000000..2902f1c2353 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserIdentity.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AzureCommunicationServicesUserIdentity : Identity, IParsable { + /// The azureCommunicationServicesResourceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AzureCommunicationServicesResourceId { + get { return BackingStore?.Get("azureCommunicationServicesResourceId"); } + set { BackingStore?.Set("azureCommunicationServicesResourceId", value); } + } +#nullable restore +#else + public string AzureCommunicationServicesResourceId { + get { return BackingStore?.Get("azureCommunicationServicesResourceId"); } + set { BackingStore?.Set("azureCommunicationServicesResourceId", value); } + } +#endif + /// + /// Instantiates a new azureCommunicationServicesUserIdentity and sets the default values. + /// + public AzureCommunicationServicesUserIdentity() : base() { + OdataType = "#microsoft.graph.azureCommunicationServicesUserIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AzureCommunicationServicesUserIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AzureCommunicationServicesUserIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"azureCommunicationServicesResourceId", n => { AzureCommunicationServicesResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("azureCommunicationServicesResourceId", AzureCommunicationServicesResourceId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlow.cs b/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlow.cs index aa0c703d3aa..c1cb235f2f9 100644 --- a/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlow.cs +++ b/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlow.cs @@ -87,7 +87,7 @@ public List UserFlowIdentityProviders { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"apiConnectorConfiguration", n => { ApiConnectorConfiguration = n.GetObjectValue(UserFlowApiConnectorConfiguration.CreateFromDiscriminatorValue); } }, {"identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(IdentityProvider.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public List UserFlowIdentityProviders { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("apiConnectorConfiguration", ApiConnectorConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlowCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlowCollectionResponse.cs index b503cd806d9..4cef05242ad 100644 --- a/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlowCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/B2xIdentityUserFlowCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(B2xIdentityUserFlow.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BaseCollectionPaginationCountResponse.cs b/src/Microsoft.Graph/Generated/Models/BaseCollectionPaginationCountResponse.cs index 806e0d0cfbd..9b404e76600 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseCollectionPaginationCountResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseCollectionPaginationCountResponse.cs @@ -51,7 +51,7 @@ public static BaseCollectionPaginationCountResponse CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.count", n => { OdataCount = n.GetLongValue(); } }, {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("@odata.count", OdataCount); writer.WriteStringValue("@odata.nextLink", OdataNextLink); diff --git a/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs b/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs index 19a4cbc09ef..9bba0c2e71a 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseDeltaFunctionResponse.cs @@ -60,7 +60,7 @@ public static BaseDeltaFunctionResponse CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.deltaLink", n => { OdataDeltaLink = n.GetStringValue(); } }, {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.deltaLink", OdataDeltaLink); writer.WriteStringValue("@odata.nextLink", OdataNextLink); diff --git a/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs b/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs index f6c78c9d281..d8edc9d463e 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseEndUserNotification.cs @@ -80,7 +80,7 @@ public static BaseEndUserNotification CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"defaultLanguage", n => { DefaultLanguage = n.GetStringValue(); } }, {"endUserNotification", n => { EndUserNotification = n.GetObjectValue(Microsoft.Graph.Models.EndUserNotification.CreateFromDiscriminatorValue); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("defaultLanguage", DefaultLanguage); writer.WriteObjectValue("endUserNotification", EndUserNotification); diff --git a/src/Microsoft.Graph/Generated/Models/BaseItem.cs b/src/Microsoft.Graph/Generated/Models/BaseItem.cs index da0c7abe4b6..e35bbb66360 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseItem.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseItem.cs @@ -162,7 +162,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdByUser", n => { CreatedByUser = n.GetObjectValue(User.CreateFromDiscriminatorValue); } }, @@ -181,7 +181,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/BaseItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BaseItemCollectionResponse.cs index 674f9146ccd..0a7e5e472a5 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BaseItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs b/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs index 3cffe90b7c2..152d4432e11 100644 --- a/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/BaseItemVersion.cs @@ -56,7 +56,7 @@ public PublicationFacet Publication { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -67,7 +67,7 @@ public PublicationFacet Publication { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); diff --git a/src/Microsoft.Graph/Generated/Models/BasicAuthentication.cs b/src/Microsoft.Graph/Generated/Models/BasicAuthentication.cs index 09632f731cc..241a500cf25 100644 --- a/src/Microsoft.Graph/Generated/Models/BasicAuthentication.cs +++ b/src/Microsoft.Graph/Generated/Models/BasicAuthentication.cs @@ -51,7 +51,7 @@ public BasicAuthentication() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"password", n => { Password = n.GetStringValue(); } }, {"username", n => { Username = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public BasicAuthentication() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("password", Password); diff --git a/src/Microsoft.Graph/Generated/Models/BitLockerRemovableDrivePolicy.cs b/src/Microsoft.Graph/Generated/Models/BitLockerRemovableDrivePolicy.cs index ac477b8f599..65fe306240b 100644 --- a/src/Microsoft.Graph/Generated/Models/BitLockerRemovableDrivePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/BitLockerRemovableDrivePolicy.cs @@ -64,7 +64,7 @@ public static BitLockerRemovableDrivePolicy CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"blockCrossOrganizationWriteAccess", n => { BlockCrossOrganizationWriteAccess = n.GetBoolValue(); } }, {"encryptionMethod", n => { EncryptionMethod = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("blockCrossOrganizationWriteAccess", BlockCrossOrganizationWriteAccess); writer.WriteEnumValue("encryptionMethod", EncryptionMethod); diff --git a/src/Microsoft.Graph/Generated/Models/Bitlocker.cs b/src/Microsoft.Graph/Generated/Models/Bitlocker.cs index b260a4f2280..8c539bf722e 100644 --- a/src/Microsoft.Graph/Generated/Models/Bitlocker.cs +++ b/src/Microsoft.Graph/Generated/Models/Bitlocker.cs @@ -31,7 +31,7 @@ public List RecoveryKeys { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"recoveryKeys", n => { RecoveryKeys = n.GetCollectionOfObjectValues(BitlockerRecoveryKey.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List RecoveryKeys { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("recoveryKeys", RecoveryKeys); diff --git a/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs b/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs index e8bc941e63a..f2c4d17f847 100644 --- a/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs +++ b/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKey.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class BitlockerRecoveryKey : Entity, IParsable { - /// The date and time when the key was originally backed up to Azure Active Directory. Not nullable. + /// The date and time when the key was originally backed up to Microsoft Entra ID. Not nullable. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } @@ -55,7 +55,7 @@ public Microsoft.Graph.Models.VolumeType? VolumeType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"deviceId", n => { DeviceId = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public Microsoft.Graph.Models.VolumeType? VolumeType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKeyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKeyCollectionResponse.cs index 5fad7b793dc..85733548126 100644 --- a/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKeyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BitlockerRecoveryKeyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BitlockerRecoveryKey.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index b82b4853d87..ec057876e99 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -266,7 +266,7 @@ public DateTimeTimeZone StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, {"anonymousJoinWebUrl", n => { AnonymousJoinWebUrl = n.GetStringValue(); } }, @@ -298,7 +298,7 @@ public DateTimeTimeZone StartDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("additionalInformation", AdditionalInformation); diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointmentCollectionResponse.cs index 6169888a131..d2eeabca044 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingAppointment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs b/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs index 4f90f973e6d..65d09c5d781 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingBusiness.cs @@ -263,7 +263,7 @@ public string WebSiteUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"address", n => { Address = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"appointments", n => { Appointments = n.GetCollectionOfObjectValues(BookingAppointment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -289,7 +289,7 @@ public string WebSiteUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("address", Address); diff --git a/src/Microsoft.Graph/Generated/Models/BookingBusinessCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingBusinessCollectionResponse.cs index b034a8b0b5b..e1c1f914564 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingBusinessCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingBusinessCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingBusiness.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCurrency.cs b/src/Microsoft.Graph/Generated/Models/BookingCurrency.cs index 22820b45917..53c9c350b33 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCurrency.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCurrency.cs @@ -31,7 +31,7 @@ public string Symbol { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"symbol", n => { Symbol = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Symbol { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("symbol", Symbol); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCurrencyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingCurrencyCollectionResponse.cs index ed2f4688ff6..4adac8a43eb 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCurrencyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCurrencyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingCurrency.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs index c7144813819..c765a4468ab 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomQuestion.cs @@ -53,7 +53,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"answerInputType", n => { AnswerInputType = n.GetEnumValue(); } }, {"answerOptions", n => { AnswerOptions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -64,7 +64,7 @@ public string DisplayName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("answerInputType", AnswerInputType); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomQuestionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomQuestionCollectionResponse.cs index 1f9731e022a..b30d3d2ab59 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomQuestionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomQuestionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingCustomQuestion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomer.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomer.cs index 9ecd8f18348..68cf50e155e 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomer.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomer.cs @@ -82,7 +82,7 @@ public BookingCustomer() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addresses", n => { Addresses = n.GetCollectionOfObjectValues(PhysicalAddress.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -94,7 +94,7 @@ public BookingCustomer() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("addresses", Addresses); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomerBase.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomerBase.cs index d27be2bd344..df9f71a7467 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomerBase.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomerBase.cs @@ -24,7 +24,7 @@ public class BookingCustomerBase : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -32,7 +32,7 @@ public class BookingCustomerBase : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomerBaseCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomerBaseCollectionResponse.cs index 41c9d2cccab..7e9241711a8 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomerBaseCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomerBaseCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingCustomerBase.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs index dffff9ce522..951bf78126f 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomerInformation.cs @@ -135,7 +135,7 @@ public BookingCustomerInformation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"customQuestionAnswers", n => { CustomQuestionAnswers = n.GetCollectionOfObjectValues(BookingQuestionAnswer.CreateFromDiscriminatorValue)?.ToList(); } }, {"customerId", n => { CustomerId = n.GetStringValue(); } }, @@ -151,7 +151,7 @@ public BookingCustomerInformation() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("customerId", CustomerId); diff --git a/src/Microsoft.Graph/Generated/Models/BookingCustomerInformationBase.cs b/src/Microsoft.Graph/Generated/Models/BookingCustomerInformationBase.cs index 61370671e38..699406382ca 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingCustomerInformationBase.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingCustomerInformationBase.cs @@ -50,7 +50,7 @@ public static BookingCustomerInformationBase CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/BookingQuestionAnswer.cs b/src/Microsoft.Graph/Generated/Models/BookingQuestionAnswer.cs index 5277012cd42..aa1da625c50 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingQuestionAnswer.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingQuestionAnswer.cs @@ -126,7 +126,7 @@ public static BookingQuestionAnswer CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"answer", n => { Answer = n.GetStringValue(); } }, {"answerInputType", n => { AnswerInputType = n.GetEnumValue(); } }, @@ -142,7 +142,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("answer", Answer); writer.WriteEnumValue("answerInputType", AnswerInputType); diff --git a/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs b/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs index 03a77eeeeb9..f1c8893f8b8 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingQuestionAssignment.cs @@ -65,7 +65,7 @@ public static BookingQuestionAssignment CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isRequired", n => { IsRequired = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isRequired", IsRequired); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/BookingReminder.cs b/src/Microsoft.Graph/Generated/Models/BookingReminder.cs index e576c7d7340..8dd4124eb33 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingReminder.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingReminder.cs @@ -73,7 +73,7 @@ public static BookingReminder CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"message", n => { Message = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("message", Message); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs b/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs index ed5a07fb592..dada953c35d 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs @@ -74,7 +74,7 @@ public static BookingSchedulingPolicy CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowStaffSelection", n => { AllowStaffSelection = n.GetBoolValue(); } }, {"maximumAdvance", n => { MaximumAdvance = n.GetTimeSpanValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowStaffSelection", AllowStaffSelection); writer.WriteTimeSpanValue("maximumAdvance", MaximumAdvance); diff --git a/src/Microsoft.Graph/Generated/Models/BookingService.cs b/src/Microsoft.Graph/Generated/Models/BookingService.cs index 1fd126065d5..ec18a7ced5e 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingService.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingService.cs @@ -224,7 +224,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, {"customQuestions", n => { CustomQuestions = n.GetCollectionOfObjectValues(BookingQuestionAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -253,7 +253,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("additionalInformation", AdditionalInformation); diff --git a/src/Microsoft.Graph/Generated/Models/BookingServiceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingServiceCollectionResponse.cs index 6e2cd03ad40..c8f346fffc8 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingServiceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingServiceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingService.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs index dd4c95393ab..5e2412c4ea3 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs @@ -102,7 +102,7 @@ public BookingStaffMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"availabilityIsAffectedByPersonalCalendar", n => { AvailabilityIsAffectedByPersonalCalendar = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public BookingStaffMember() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("availabilityIsAffectedByPersonalCalendar", AvailabilityIsAffectedByPersonalCalendar); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBase.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBase.cs index 201b6b605d0..ed1d468c785 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBase.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBase.cs @@ -24,7 +24,7 @@ public class BookingStaffMemberBase : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -32,7 +32,7 @@ public class BookingStaffMemberBase : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBaseCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBaseCollectionResponse.cs index 07569fb5a2a..dd9e9314945 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBaseCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMemberBaseCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BookingStaffMemberBase.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BookingWorkHours.cs b/src/Microsoft.Graph/Generated/Models/BookingWorkHours.cs index 952caa5c8f7..9a8b7d95f67 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingWorkHours.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingWorkHours.cs @@ -68,7 +68,7 @@ public static BookingWorkHours CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"day", n => { Day = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("day", Day); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/BookingWorkTimeSlot.cs b/src/Microsoft.Graph/Generated/Models/BookingWorkTimeSlot.cs index 59600d29d6e..fbdbf22205f 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingWorkTimeSlot.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingWorkTimeSlot.cs @@ -57,7 +57,7 @@ public static BookingWorkTimeSlot CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endTime", n => { EndTime = n.GetTimeValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -68,7 +68,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeValue("endTime", EndTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/BooleanColumn.cs b/src/Microsoft.Graph/Generated/Models/BooleanColumn.cs index 375ca7101ed..63fd969abe4 100644 --- a/src/Microsoft.Graph/Generated/Models/BooleanColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/BooleanColumn.cs @@ -46,7 +46,7 @@ public static BooleanColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/BroadcastMeetingCaptionSettings.cs b/src/Microsoft.Graph/Generated/Models/BroadcastMeetingCaptionSettings.cs index 1a67aa61f22..cc95c84876a 100644 --- a/src/Microsoft.Graph/Generated/Models/BroadcastMeetingCaptionSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/BroadcastMeetingCaptionSettings.cs @@ -79,7 +79,7 @@ public static BroadcastMeetingCaptionSettings CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isCaptionEnabled", n => { IsCaptionEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isCaptionEnabled", IsCaptionEnabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/BroadcastMeetingSettings.cs b/src/Microsoft.Graph/Generated/Models/BroadcastMeetingSettings.cs index fa2db26eb19..498687717a3 100644 --- a/src/Microsoft.Graph/Generated/Models/BroadcastMeetingSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/BroadcastMeetingSettings.cs @@ -85,7 +85,7 @@ public static BroadcastMeetingSettings CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedAudience", n => { AllowedAudience = n.GetEnumValue(); } }, {"captions", n => { Captions = n.GetObjectValue(BroadcastMeetingCaptionSettings.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("allowedAudience", AllowedAudience); writer.WriteObjectValue("captions", Captions); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSharedCookie.cs b/src/Microsoft.Graph/Generated/Models/BrowserSharedCookie.cs index 88dc02a40da..1cca477b949 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSharedCookie.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSharedCookie.cs @@ -131,7 +131,7 @@ public BrowserSharedCookieStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"comment", n => { Comment = n.GetStringValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -151,7 +151,7 @@ public BrowserSharedCookieStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("comment", Comment); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieCollectionResponse.cs index cf7423cbd6b..4cf0a85611a 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieHistory.cs b/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieHistory.cs index ad2ee8261fd..4944676ecee 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSharedCookieHistory.cs @@ -131,7 +131,7 @@ public static BrowserSharedCookieHistory CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"comment", n => { Comment = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -148,7 +148,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSite.cs b/src/Microsoft.Graph/Generated/Models/BrowserSite.cs index c43120ed297..b6dce853b47 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSite.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSite.cs @@ -116,7 +116,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowRedirect", n => { AllowRedirect = n.GetBoolValue(); } }, {"comment", n => { Comment = n.GetStringValue(); } }, @@ -136,7 +136,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowRedirect", AllowRedirect); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSiteCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BrowserSiteCollectionResponse.cs index 3a792b01bcc..907af2e4bb5 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSiteCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSiteCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BrowserSite.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSiteHistory.cs b/src/Microsoft.Graph/Generated/Models/BrowserSiteHistory.cs index 91ed40983a2..e84eb687dfa 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSiteHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSiteHistory.cs @@ -102,7 +102,7 @@ public static BrowserSiteHistory CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowRedirect", n => { AllowRedirect = n.GetBoolValue(); } }, {"comment", n => { Comment = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowRedirect", AllowRedirect); writer.WriteStringValue("comment", Comment); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSiteList.cs b/src/Microsoft.Graph/Generated/Models/BrowserSiteList.cs index 7ac359843a3..76ce1c4a08c 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSiteList.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSiteList.cs @@ -133,7 +133,7 @@ public BrowserSiteListStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -151,7 +151,7 @@ public BrowserSiteListStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/BrowserSiteListCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/BrowserSiteListCollectionResponse.cs index 8b2f4ca27b1..ceec9c9d4d6 100644 --- a/src/Microsoft.Graph/Generated/Models/BrowserSiteListCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/BrowserSiteListCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(BrowserSiteList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/BucketAggregationDefinition.cs b/src/Microsoft.Graph/Generated/Models/BucketAggregationDefinition.cs index 73ef9b98e53..884a99db7e6 100644 --- a/src/Microsoft.Graph/Generated/Models/BucketAggregationDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/BucketAggregationDefinition.cs @@ -89,7 +89,7 @@ public static BucketAggregationDefinition CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isDescending", n => { IsDescending = n.GetBoolValue(); } }, {"minimumCount", n => { MinimumCount = n.GetIntValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isDescending", IsDescending); writer.WriteIntValue("minimumCount", MinimumCount); diff --git a/src/Microsoft.Graph/Generated/Models/BucketAggregationRange.cs b/src/Microsoft.Graph/Generated/Models/BucketAggregationRange.cs index 4a6dd4fcf5d..4b71f44a9ff 100644 --- a/src/Microsoft.Graph/Generated/Models/BucketAggregationRange.cs +++ b/src/Microsoft.Graph/Generated/Models/BucketAggregationRange.cs @@ -74,7 +74,7 @@ public static BucketAggregationRange CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"from", n => { From = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("from", From); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/BuiltInIdentityProvider.cs b/src/Microsoft.Graph/Generated/Models/BuiltInIdentityProvider.cs index 910998b0c70..1e47be12a70 100644 --- a/src/Microsoft.Graph/Generated/Models/BuiltInIdentityProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/BuiltInIdentityProvider.cs @@ -37,7 +37,7 @@ public BuiltInIdentityProvider() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"identityProviderType", n => { IdentityProviderType = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public BuiltInIdentityProvider() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("identityProviderType", IdentityProviderType); diff --git a/src/Microsoft.Graph/Generated/Models/Bundle.cs b/src/Microsoft.Graph/Generated/Models/Bundle.cs index 17170d4e9c3..a708f46c216 100644 --- a/src/Microsoft.Graph/Generated/Models/Bundle.cs +++ b/src/Microsoft.Graph/Generated/Models/Bundle.cs @@ -65,7 +65,7 @@ public static Bundle CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"album", n => { Album = n.GetObjectValue(Microsoft.Graph.Models.Album.CreateFromDiscriminatorValue); } }, {"childCount", n => { ChildCount = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("album", Album); writer.WriteIntValue("childCount", ChildCount); diff --git a/src/Microsoft.Graph/Generated/Models/CalculatedColumn.cs b/src/Microsoft.Graph/Generated/Models/CalculatedColumn.cs index 75428e36f96..776401bcfac 100644 --- a/src/Microsoft.Graph/Generated/Models/CalculatedColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/CalculatedColumn.cs @@ -88,7 +88,7 @@ public static CalculatedColumn CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"format", n => { Format = n.GetStringValue(); } }, {"formula", n => { Formula = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("format", Format); writer.WriteStringValue("formula", Formula); diff --git a/src/Microsoft.Graph/Generated/Models/Calendar.cs b/src/Microsoft.Graph/Generated/Models/Calendar.cs index 11fc2ed9c36..bcbf735223e 100644 --- a/src/Microsoft.Graph/Generated/Models/Calendar.cs +++ b/src/Microsoft.Graph/Generated/Models/Calendar.cs @@ -197,7 +197,7 @@ public List SingleValueExtendedProperties { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedOnlineMeetingProviders", n => { AllowedOnlineMeetingProviders = n.GetCollectionOfEnumValues()?.ToList(); } }, {"calendarPermissions", n => { CalendarPermissions = n.GetCollectionOfObjectValues(CalendarPermission.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -223,7 +223,7 @@ public List SingleValueExtendedProperties { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("allowedOnlineMeetingProviders", AllowedOnlineMeetingProviders); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CalendarCollectionResponse.cs index ba559b24ded..5a0438bf689 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Calendar.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs b/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs index 2b4f2d57b0b..4b8f3d15308 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarGroup.cs @@ -64,7 +64,7 @@ public string Name { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"calendars", n => { Calendars = n.GetCollectionOfObjectValues(Calendar.CreateFromDiscriminatorValue)?.ToList(); } }, {"changeKey", n => { ChangeKey = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public string Name { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("calendars", Calendars); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarGroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CalendarGroupCollectionResponse.cs index 66a03eda5bb..54cc347c5ab 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarGroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarGroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CalendarGroup.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs b/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs index a3b9038d8fb..d4dc1a205b1 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarPermission.cs @@ -60,7 +60,7 @@ public CalendarRoleType? Role { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedRoles", n => { AllowedRoles = n.GetCollectionOfEnumValues()?.ToList(); } }, {"emailAddress", n => { EmailAddress = n.GetObjectValue(Microsoft.Graph.Models.EmailAddress.CreateFromDiscriminatorValue); } }, @@ -73,7 +73,7 @@ public CalendarRoleType? Role { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("allowedRoles", AllowedRoles); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarPermissionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CalendarPermissionCollectionResponse.cs index f42e62b8417..7d011ad79b0 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarPermissionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarPermissionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CalendarPermission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarSharingMessage.cs b/src/Microsoft.Graph/Generated/Models/CalendarSharingMessage.cs index c3a2597bcda..0541be8e20f 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarSharingMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarSharingMessage.cs @@ -70,7 +70,7 @@ public CalendarSharingMessage() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"canAccept", n => { CanAccept = n.GetBoolValue(); } }, {"sharingMessageAction", n => { SharingMessageAction = n.GetObjectValue(CalendarSharingMessageAction.CreateFromDiscriminatorValue); } }, @@ -82,7 +82,7 @@ public CalendarSharingMessage() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("canAccept", CanAccept); diff --git a/src/Microsoft.Graph/Generated/Models/CalendarSharingMessageAction.cs b/src/Microsoft.Graph/Generated/Models/CalendarSharingMessageAction.cs index 95eac3e3aad..c130e2b53f4 100644 --- a/src/Microsoft.Graph/Generated/Models/CalendarSharingMessageAction.cs +++ b/src/Microsoft.Graph/Generated/Models/CalendarSharingMessageAction.cs @@ -61,7 +61,7 @@ public static CalendarSharingMessageAction CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"action", n => { Action = n.GetEnumValue(); } }, {"actionType", n => { ActionType = n.GetEnumValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("action", Action); writer.WriteEnumValue("actionType", ActionType); diff --git a/src/Microsoft.Graph/Generated/Models/Call.cs b/src/Microsoft.Graph/Generated/Models/Call.cs index 6d6733bb287..22dd25ba199 100644 --- a/src/Microsoft.Graph/Generated/Models/Call.cs +++ b/src/Microsoft.Graph/Generated/Models/Call.cs @@ -335,7 +335,7 @@ public CallTranscriptionInfo Transcription { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"audioRoutingGroups", n => { AudioRoutingGroups = n.GetCollectionOfObjectValues(AudioRoutingGroup.CreateFromDiscriminatorValue)?.ToList(); } }, {"callChainId", n => { CallChainId = n.GetStringValue(); } }, @@ -367,7 +367,7 @@ public CallTranscriptionInfo Transcription { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("audioRoutingGroups", AudioRoutingGroups); diff --git a/src/Microsoft.Graph/Generated/Models/CallCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallCollectionResponse.cs index 42ce2484266..31ed1b57f50 100644 --- a/src/Microsoft.Graph/Generated/Models/CallCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CallCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Call.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CallEndedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/CallEndedEventMessageDetail.cs index ae761d54277..e3ce41b0d8e 100644 --- a/src/Microsoft.Graph/Generated/Models/CallEndedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/CallEndedEventMessageDetail.cs @@ -75,7 +75,7 @@ public CallEndedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callDuration", n => { CallDuration = n.GetTimeSpanValue(); } }, {"callEventType", n => { CallEventType = n.GetEnumValue(); } }, @@ -88,7 +88,7 @@ public CallEndedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteTimeSpanValue("callDuration", CallDuration); diff --git a/src/Microsoft.Graph/Generated/Models/CallMediaState.cs b/src/Microsoft.Graph/Generated/Models/CallMediaState.cs index d9b6b5b9817..ac23f292db9 100644 --- a/src/Microsoft.Graph/Generated/Models/CallMediaState.cs +++ b/src/Microsoft.Graph/Generated/Models/CallMediaState.cs @@ -51,7 +51,7 @@ public static CallMediaState CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"audio", n => { Audio = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("audio", Audio); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CallOptions.cs b/src/Microsoft.Graph/Generated/Models/CallOptions.cs index be99c6b8768..22d004204f5 100644 --- a/src/Microsoft.Graph/Generated/Models/CallOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/CallOptions.cs @@ -61,7 +61,7 @@ public static CallOptions CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hideBotAfterEscalation", n => { HideBotAfterEscalation = n.GetBoolValue(); } }, {"isContentSharingNotificationEnabled", n => { IsContentSharingNotificationEnabled = n.GetBoolValue(); } }, @@ -72,7 +72,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("hideBotAfterEscalation", HideBotAfterEscalation); writer.WriteBoolValue("isContentSharingNotificationEnabled", IsContentSharingNotificationEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/CallParticipantInfo.cs b/src/Microsoft.Graph/Generated/Models/CallParticipantInfo.cs index dc875f06afd..05918e2ab11 100644 --- a/src/Microsoft.Graph/Generated/Models/CallParticipantInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/CallParticipantInfo.cs @@ -60,7 +60,7 @@ public static CallParticipantInfo CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"participant", n => { Participant = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("participant", Participant); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecordingEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/CallRecordingEventMessageDetail.cs index a861d133a29..f19973b590a 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecordingEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecordingEventMessageDetail.cs @@ -103,7 +103,7 @@ public CallRecordingEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callId", n => { CallId = n.GetStringValue(); } }, {"callRecordingDisplayName", n => { CallRecordingDisplayName = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public CallRecordingEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("callId", CallId); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs index 3d8ef4c59d7..445ec4642e9 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecord.cs @@ -112,7 +112,7 @@ public long? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"joinWebUrl", n => { JoinWebUrl = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public long? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs index 1ddeafd3bc0..26ad5b5f3ab 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/CallRecordCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CallRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/ClientUserAgent.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/ClientUserAgent.cs index 3a5c769237d..deb6f8b1466 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/ClientUserAgent.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/ClientUserAgent.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models.CallRecords { public class ClientUserAgent : UserAgent, IParsable { - /// The unique identifier of the Azure AD application used by this endpoint. + /// The unique identifier of the Microsoft Entra application used by this endpoint. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AzureADAppId { @@ -61,7 +61,7 @@ public ClientUserAgent() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"azureADAppId", n => { AzureADAppId = n.GetStringValue(); } }, {"communicationServiceId", n => { CommunicationServiceId = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public ClientUserAgent() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("azureADAppId", AzureADAppId); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/DeviceInfo.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/DeviceInfo.cs index bf85dc1a34c..f492cafecbe 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/DeviceInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/DeviceInfo.cs @@ -187,7 +187,7 @@ public static DeviceInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"captureDeviceDriver", n => { CaptureDeviceDriver = n.GetStringValue(); } }, {"captureDeviceName", n => { CaptureDeviceName = n.GetStringValue(); } }, @@ -217,7 +217,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("captureDeviceDriver", CaptureDeviceDriver); writer.WriteStringValue("captureDeviceName", CaptureDeviceName); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs index e0eb7885e71..302f063b359 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/DirectRoutingLogRow.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Number of the user or bot who received the call. E.164 format, but may include other data. + /// Number of the user or bot who received the call. E.164 format, but might include other data. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CalleeNumber { @@ -28,12 +28,12 @@ public string CalleeNumber { set { BackingStore?.Set("calleeNumber", value); } } #endif - /// In addition to the SIP codes, Microsoft has own subcodes that indicate the specific issue. + /// In addition to the SIP codes, Microsoft has subcodes that indicate the specific issue. public int? CallEndSubReason { get { return BackingStore?.Get("callEndSubReason"); } set { BackingStore?.Set("callEndSubReason", value); } } - /// Number of the user or bot who made the call. E.164 format, but may include other data. + /// Number of the user or bot who made the call. E.164 format, but might include other data. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CallerNumber { @@ -90,7 +90,7 @@ public DateTimeOffset? FailureDateTime { get { return BackingStore?.Get("failureDateTime"); } set { BackingStore?.Set("failureDateTime", value); } } - /// The code with which the call ended, see RFC 3261. + /// The code with which the call ended. For more information, see RFC 3261. public int? FinalSipCode { get { return BackingStore?.Get("finalSipCode"); } set { BackingStore?.Set("finalSipCode", value); } @@ -128,12 +128,12 @@ public DateTimeOffset? InviteDateTime { get { return BackingStore?.Get("inviteDateTime"); } set { BackingStore?.Set("inviteDateTime", value); } } - /// Indicates if the trunk was enabled for media bypass or not. + /// Indicates whether the trunk was enabled for media bypass. public bool? MediaBypassEnabled { get { return BackingStore?.Get("mediaBypassEnabled"); } set { BackingStore?.Set("mediaBypassEnabled", value); } } - /// The datacenter used for media path in nonbypass call. + /// The datacenter used for media path in a nonbypass call. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? MediaPathLocation { @@ -175,7 +175,7 @@ public string SignalingLocation { set { BackingStore?.Set("signalingLocation", value); } } #endif - /// Call start time.For failed and unanswered calls, this can be equal to invite or failure time. + /// Call start time.For failed and unanswered calls, this can be equal to the invite or failure time. public DateTimeOffset? StartDateTime { get { return BackingStore?.Get("startDateTime"); } set { BackingStore?.Set("startDateTime", value); } @@ -213,7 +213,7 @@ public string UserDisplayName { set { BackingStore?.Set("userDisplayName", value); } } #endif - /// Calling user's ID in Graph. This and other user info will be null/empty for bot call types. GUID. + /// Calling user's ID in Microsoft Graph. This and other user information is null/empty for bot call types. GUID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -227,7 +227,7 @@ public string UserId { set { BackingStore?.Set("userId", value); } } #endif - /// UserPrincipalName (sign-in name) in Azure Active Directory. This is usually the same as user's SIP Address, and can be same as user's e-mail address. + /// UserPrincipalName (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP Address, and can be the same as the user's email address. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserPrincipalName { @@ -259,7 +259,7 @@ public static DirectRoutingLogRow CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callEndSubReason", n => { CallEndSubReason = n.GetIntValue(); } }, {"callType", n => { CallType = n.GetStringValue(); } }, @@ -289,7 +289,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("calleeNumber", CalleeNumber); writer.WriteIntValue("callEndSubReason", CallEndSubReason); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/Endpoint.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/Endpoint.cs index 1a20268be1f..79eb61647e5 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/Endpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/Endpoint.cs @@ -65,7 +65,7 @@ public static Endpoint CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"userAgent", n => { UserAgent = n.GetObjectValue(Microsoft.Graph.Models.CallRecords.UserAgent.CreateFromDiscriminatorValue); } }, @@ -75,7 +75,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("userAgent", UserAgent); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/FailureInfo.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/FailureInfo.cs index 80687879cfd..e067470c445 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/FailureInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/FailureInfo.cs @@ -65,7 +65,7 @@ public static FailureInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"reason", n => { Reason = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("reason", Reason); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/FeedbackTokenSet.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/FeedbackTokenSet.cs index 8abacb12c79..3f7c7725331 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/FeedbackTokenSet.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/FeedbackTokenSet.cs @@ -46,7 +46,7 @@ public static FeedbackTokenSet CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/Media.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/Media.cs index aabcdecc48a..b84bed2850b 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/Media.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/Media.cs @@ -130,7 +130,7 @@ public static Media CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"calleeDevice", n => { CalleeDevice = n.GetObjectValue(DeviceInfo.CreateFromDiscriminatorValue); } }, {"calleeNetwork", n => { CalleeNetwork = n.GetObjectValue(NetworkInfo.CreateFromDiscriminatorValue); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("calleeDevice", CalleeDevice); writer.WriteObjectValue("calleeNetwork", CalleeNetwork); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/MediaStream.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/MediaStream.cs index 54dea46859f..d6cf04f1485 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/MediaStream.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/MediaStream.cs @@ -205,7 +205,7 @@ public static MediaStream CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"audioCodec", n => { AudioCodec = n.GetEnumValue(); } }, {"averageAudioDegradation", n => { AverageAudioDegradation = n.GetFloatValue(); } }, @@ -244,7 +244,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("audioCodec", AudioCodec); writer.WriteFloatValue("averageAudioDegradation", AverageAudioDegradation); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/NetworkInfo.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/NetworkInfo.cs index 6e26f2a2402..d5ee0dee847 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/NetworkInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/NetworkInfo.cs @@ -284,7 +284,7 @@ public static NetworkInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bandwidthLowEventRatio", n => { BandwidthLowEventRatio = n.GetFloatValue(); } }, {"basicServiceSetIdentifier", n => { BasicServiceSetIdentifier = n.GetStringValue(); } }, @@ -319,7 +319,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteFloatValue("bandwidthLowEventRatio", BandwidthLowEventRatio); writer.WriteStringValue("basicServiceSetIdentifier", BasicServiceSetIdentifier); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/ParticipantEndpoint.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/ParticipantEndpoint.cs index ac9e3a13da5..205f159d451 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/ParticipantEndpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/ParticipantEndpoint.cs @@ -89,7 +89,7 @@ public ParticipantEndpoint() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cpuCoresCount", n => { CpuCoresCount = n.GetIntValue(); } }, {"cpuName", n => { CpuName = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public ParticipantEndpoint() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("cpuCoresCount", CpuCoresCount); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs index eafa677cea2..85fc1f46b2f 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/PstnCallLogRow.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. + /// The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator can provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. public PstnCallDurationSource? CallDurationSource { get { return BackingStore?.Get("callDurationSource"); } set { BackingStore?.Set("callDurationSource", value); } @@ -61,7 +61,7 @@ public string CallId { set { BackingStore?.Set("callId", value); } } #endif - /// Whether the call was a PSTN outbound or inbound call and the type of call such as a call placed by a user or an audio conference. + /// Indicates whether the call was a PSTN outbound or inbound call and the type of call, such as a call placed by a user or an audio conference. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CallType { @@ -113,7 +113,7 @@ public string Currency { set { BackingStore?.Set("currency", value); } } #endif - /// Whether the call was domestic (within a country or region) or international (outside a country or region) based on the user's location. + /// Whether the call was domestic (within a country or region) or international (outside a country or region), based on the user's location. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DestinationContext { @@ -207,7 +207,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The telecommunications operator which provided PSTN services for this call. This may be Microsoft, or it may be a third-party operator via the Operator Connect Program. + /// The telecommunications operator which provided PSTN services for this call. This might be Microsoft, or it might be a third-party operator via the Operator Connect Program. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Operator { @@ -268,7 +268,7 @@ public string UserDisplayName { set { BackingStore?.Set("userDisplayName", value); } } #endif - /// Calling user's ID in Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). + /// Calling user's ID in Microsoft Graph. GUID. This and other user info will be null/empty for bot call types (ucapin, ucapout). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -282,7 +282,7 @@ public string UserId { set { BackingStore?.Set("userId", value); } } #endif - /// The user principal name (sign-in name) in Azure Active Directory. This is usually the same as the user's SIP address, and can be same as the user's e-mail address. + /// The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be the same as the user's email address. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserPrincipalName { @@ -314,7 +314,7 @@ public static PstnCallLogRow CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callDurationSource", n => { CallDurationSource = n.GetEnumValue(); } }, {"callId", n => { CallId = n.GetStringValue(); } }, @@ -346,7 +346,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("callDurationSource", CallDurationSource); writer.WriteStringValue("calleeNumber", CalleeNumber); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/Segment.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/Segment.cs index d902de05166..afec2a776f4 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/Segment.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/Segment.cs @@ -83,7 +83,7 @@ public DateTimeOffset? StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callee", n => { Callee = n.GetObjectValue(Endpoint.CreateFromDiscriminatorValue); } }, {"caller", n => { Caller = n.GetObjectValue(Endpoint.CreateFromDiscriminatorValue); } }, @@ -97,7 +97,7 @@ public DateTimeOffset? StartDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("callee", Callee); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/SegmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/SegmentCollectionResponse.cs index 2065f45e882..ec3e733a381 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/SegmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/SegmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Segment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceEndpoint.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceEndpoint.cs index cc889f1a7d1..5c1f3a528be 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceEndpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceEndpoint.cs @@ -23,7 +23,7 @@ public ServiceEndpoint() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ServiceEndpoint() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceUserAgent.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceUserAgent.cs index e2f7a37f8b4..14fc9ef376e 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceUserAgent.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/ServiceUserAgent.cs @@ -28,7 +28,7 @@ public ServiceUserAgent() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"role", n => { Role = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public ServiceUserAgent() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("role", Role); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs index 6ebb95c7b48..829318dbc0d 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/Session.cs @@ -102,7 +102,7 @@ public DateTimeOffset? StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callee", n => { Callee = n.GetObjectValue(Endpoint.CreateFromDiscriminatorValue); } }, {"caller", n => { Caller = n.GetObjectValue(Endpoint.CreateFromDiscriminatorValue); } }, @@ -118,7 +118,7 @@ public DateTimeOffset? StartDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("callee", Callee); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/SessionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/SessionCollectionResponse.cs index a0a0741efc8..d02df5e8823 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/SessionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/SessionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Session.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/TraceRouteHop.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/TraceRouteHop.cs index 26cd7862129..545fbcf8b90 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/TraceRouteHop.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/TraceRouteHop.cs @@ -70,7 +70,7 @@ public static TraceRouteHop CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hopCount", n => { HopCount = n.GetIntValue(); } }, {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("hopCount", HopCount); writer.WriteStringValue("ipAddress", IpAddress); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/UserAgent.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/UserAgent.cs index d7bde3a05da..49968a88027 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/UserAgent.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/UserAgent.cs @@ -79,7 +79,7 @@ public static UserAgent CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationVersion", n => { ApplicationVersion = n.GetStringValue(); } }, {"headerValue", n => { HeaderValue = n.GetStringValue(); } }, @@ -90,7 +90,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationVersion", ApplicationVersion); writer.WriteStringValue("headerValue", HeaderValue); diff --git a/src/Microsoft.Graph/Generated/Models/CallRecords/UserFeedback.cs b/src/Microsoft.Graph/Generated/Models/CallRecords/UserFeedback.cs index f63bd03d7b4..30523267872 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRecords/UserFeedback.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRecords/UserFeedback.cs @@ -79,7 +79,7 @@ public static UserFeedback CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"rating", n => { Rating = n.GetEnumValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("rating", Rating); diff --git a/src/Microsoft.Graph/Generated/Models/CallRoute.cs b/src/Microsoft.Graph/Generated/Models/CallRoute.cs index c69bd4a52f8..9a0fe92d0db 100644 --- a/src/Microsoft.Graph/Generated/Models/CallRoute.cs +++ b/src/Microsoft.Graph/Generated/Models/CallRoute.cs @@ -79,7 +79,7 @@ public static CallRoute CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"final", n => { Final = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("final", Final); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CallStartedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/CallStartedEventMessageDetail.cs index 53d73add447..8028ff43d7e 100644 --- a/src/Microsoft.Graph/Generated/Models/CallStartedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/CallStartedEventMessageDetail.cs @@ -56,7 +56,7 @@ public CallStartedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callEventType", n => { CallEventType = n.GetEnumValue(); } }, {"callId", n => { CallId = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public CallStartedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("callEventType", CallEventType); diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscript.cs b/src/Microsoft.Graph/Generated/Models/CallTranscript.cs index aa714d958c8..049252d138f 100644 --- a/src/Microsoft.Graph/Generated/Models/CallTranscript.cs +++ b/src/Microsoft.Graph/Generated/Models/CallTranscript.cs @@ -92,7 +92,7 @@ public string TranscriptContentUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -106,7 +106,7 @@ public string TranscriptContentUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs index bd42b86dedf..3408d28ebb4 100644 --- a/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CallTranscriptCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CallTranscript.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscriptEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/CallTranscriptEventMessageDetail.cs index 33c7208adc3..67b999afcef 100644 --- a/src/Microsoft.Graph/Generated/Models/CallTranscriptEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/CallTranscriptEventMessageDetail.cs @@ -65,7 +65,7 @@ public CallTranscriptEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callId", n => { CallId = n.GetStringValue(); } }, {"callTranscriptICalUid", n => { CallTranscriptICalUid = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public CallTranscriptEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("callId", CallId); diff --git a/src/Microsoft.Graph/Generated/Models/CallTranscriptionInfo.cs b/src/Microsoft.Graph/Generated/Models/CallTranscriptionInfo.cs index 17cf29890e1..ea5ee42df09 100644 --- a/src/Microsoft.Graph/Generated/Models/CallTranscriptionInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/CallTranscriptionInfo.cs @@ -56,7 +56,7 @@ public static CallTranscriptionInfo CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CancelMediaProcessingOperation.cs b/src/Microsoft.Graph/Generated/Models/CancelMediaProcessingOperation.cs index f146edfdd26..96736c756bc 100644 --- a/src/Microsoft.Graph/Generated/Models/CancelMediaProcessingOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/CancelMediaProcessingOperation.cs @@ -17,7 +17,7 @@ public class CancelMediaProcessingOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class CancelMediaProcessingOperation : CommsOperation, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/CertificateAuthority.cs b/src/Microsoft.Graph/Generated/Models/CertificateAuthority.cs index ddfffe70905..3205fb4c3bc 100644 --- a/src/Microsoft.Graph/Generated/Models/CertificateAuthority.cs +++ b/src/Microsoft.Graph/Generated/Models/CertificateAuthority.cs @@ -121,7 +121,7 @@ public static CertificateAuthority CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificate", n => { Certificate = n.GetByteArrayValue(); } }, {"certificateRevocationListUrl", n => { CertificateRevocationListUrl = n.GetStringValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("certificate", Certificate); writer.WriteStringValue("certificateRevocationListUrl", CertificateRevocationListUrl); diff --git a/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs index 97589d975e6..44ddaed359f 100644 --- a/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfiguration.cs @@ -31,7 +31,7 @@ public List CertificateAuthorities { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"certificateAuthorities", n => { CertificateAuthorities = n.GetCollectionOfObjectValues(CertificateAuthority.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List CertificateAuthorities { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("certificateAuthorities", CertificateAuthorities); diff --git a/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfigurationCollectionResponse.cs index 2c120dd7fc8..4578c7b91cc 100644 --- a/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CertificateBasedAuthConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Certification.cs b/src/Microsoft.Graph/Generated/Models/Certification.cs index e60049b8025..d8cdecc4aba 100644 --- a/src/Microsoft.Graph/Generated/Models/Certification.cs +++ b/src/Microsoft.Graph/Generated/Models/Certification.cs @@ -80,7 +80,7 @@ public static Certification CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificationDetailsUrl", n => { CertificationDetailsUrl = n.GetStringValue(); } }, {"certificationExpirationDateTime", n => { CertificationExpirationDateTime = n.GetDateTimeOffsetValue(); } }, @@ -94,7 +94,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("certificationExpirationDateTime", CertificationExpirationDateTime); writer.WriteBoolValue("isPublisherAttested", IsPublisherAttested); diff --git a/src/Microsoft.Graph/Generated/Models/CertificationControl.cs b/src/Microsoft.Graph/Generated/Models/CertificationControl.cs index 44fc55d2a3b..ffea4b2ef86 100644 --- a/src/Microsoft.Graph/Generated/Models/CertificationControl.cs +++ b/src/Microsoft.Graph/Generated/Models/CertificationControl.cs @@ -74,7 +74,7 @@ public static CertificationControl CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs b/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs index 1ce252d39db..fd6ecef7d12 100644 --- a/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs +++ b/src/Microsoft.Graph/Generated/Models/ChangeTrackedEntity.cs @@ -56,7 +56,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -67,7 +67,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Channel.cs b/src/Microsoft.Graph/Generated/Models/Channel.cs index 55973b5c5b0..67a32fb5808 100644 --- a/src/Microsoft.Graph/Generated/Models/Channel.cs +++ b/src/Microsoft.Graph/Generated/Models/Channel.cs @@ -133,7 +133,7 @@ public List Tabs { set { BackingStore?.Set("tabs", value); } } #endif - /// The ID of the Azure Active Directory tenant. + /// The ID of the Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -172,7 +172,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -193,7 +193,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelAddedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChannelAddedEventMessageDetail.cs index edf79f92d99..c848b1e794c 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelAddedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelAddedEventMessageDetail.cs @@ -65,7 +65,7 @@ public ChannelAddedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelDisplayName", n => { ChannelDisplayName = n.GetStringValue(); } }, {"channelId", n => { ChannelId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ChannelAddedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelDisplayName", ChannelDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChannelCollectionResponse.cs index 0f0c123805b..8f72be449e8 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Channel.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelDeletedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChannelDeletedEventMessageDetail.cs index eaf718a3bc4..18f93cdd0f1 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelDeletedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelDeletedEventMessageDetail.cs @@ -65,7 +65,7 @@ public ChannelDeletedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelDisplayName", n => { ChannelDisplayName = n.GetStringValue(); } }, {"channelId", n => { ChannelId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ChannelDeletedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelDisplayName", ChannelDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelDescriptionUpdatedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChannelDescriptionUpdatedEventMessageDetail.cs index 8dfe59c2fd2..d4a347a1dce 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelDescriptionUpdatedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelDescriptionUpdatedEventMessageDetail.cs @@ -65,7 +65,7 @@ public ChannelDescriptionUpdatedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelDescription", n => { ChannelDescription = n.GetStringValue(); } }, {"channelId", n => { ChannelId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ChannelDescriptionUpdatedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelDescription", ChannelDescription); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelIdentity.cs b/src/Microsoft.Graph/Generated/Models/ChannelIdentity.cs index 4d75967d661..5e18b1fcd0e 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelIdentity.cs @@ -74,7 +74,7 @@ public static ChannelIdentity CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"channelId", n => { ChannelId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("channelId", ChannelId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelMembersNotificationRecipient.cs b/src/Microsoft.Graph/Generated/Models/ChannelMembersNotificationRecipient.cs index 84add0b64a0..f053a8d4ced 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelMembersNotificationRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelMembersNotificationRecipient.cs @@ -51,7 +51,7 @@ public ChannelMembersNotificationRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelId", n => { ChannelId = n.GetStringValue(); } }, {"teamId", n => { TeamId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public ChannelMembersNotificationRecipient() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelId", ChannelId); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelRenamedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChannelRenamedEventMessageDetail.cs index 425c4a922f2..1ed7da69d6d 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelRenamedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelRenamedEventMessageDetail.cs @@ -65,7 +65,7 @@ public ChannelRenamedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelDisplayName", n => { ChannelDisplayName = n.GetStringValue(); } }, {"channelId", n => { ChannelId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ChannelRenamedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelDisplayName", ChannelDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelSetAsFavoriteByDefaultEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChannelSetAsFavoriteByDefaultEventMessageDetail.cs index 0b15faacc0c..1eff17f6b7e 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelSetAsFavoriteByDefaultEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelSetAsFavoriteByDefaultEventMessageDetail.cs @@ -51,7 +51,7 @@ public ChannelSetAsFavoriteByDefaultEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelId", n => { ChannelId = n.GetStringValue(); } }, {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public ChannelSetAsFavoriteByDefaultEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelId", ChannelId); diff --git a/src/Microsoft.Graph/Generated/Models/ChannelUnsetAsFavoriteByDefaultEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChannelUnsetAsFavoriteByDefaultEventMessageDetail.cs index ab7a9a92ca3..3b8642dde41 100644 --- a/src/Microsoft.Graph/Generated/Models/ChannelUnsetAsFavoriteByDefaultEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChannelUnsetAsFavoriteByDefaultEventMessageDetail.cs @@ -51,7 +51,7 @@ public ChannelUnsetAsFavoriteByDefaultEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channelId", n => { ChannelId = n.GetStringValue(); } }, {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public ChannelUnsetAsFavoriteByDefaultEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("channelId", ChannelId); diff --git a/src/Microsoft.Graph/Generated/Models/Chat.cs b/src/Microsoft.Graph/Generated/Models/Chat.cs index 03bce119851..126543ef983 100644 --- a/src/Microsoft.Graph/Generated/Models/Chat.cs +++ b/src/Microsoft.Graph/Generated/Models/Chat.cs @@ -200,7 +200,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"chatType", n => { ChatType = n.GetEnumValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -223,7 +223,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("chatType", ChatType); diff --git a/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs index 5afa1f61dad..d743f04aeab 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Chat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ChatInfo.cs b/src/Microsoft.Graph/Generated/Models/ChatInfo.cs index 6acc3ce2615..432688c85c7 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatInfo.cs @@ -88,7 +88,7 @@ public static ChatInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"messageId", n => { MessageId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("messageId", MessageId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMembersNotificationRecipient.cs b/src/Microsoft.Graph/Generated/Models/ChatMembersNotificationRecipient.cs index 0e86c4500aa..4a2673ff3ee 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMembersNotificationRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMembersNotificationRecipient.cs @@ -37,7 +37,7 @@ public ChatMembersNotificationRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"chatId", n => { ChatId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public ChatMembersNotificationRecipient() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("chatId", ChatId); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessage.cs b/src/Microsoft.Graph/Generated/Models/ChatMessage.cs index 9a484da9d27..19cd0c54aa0 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessage.cs @@ -299,7 +299,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(ChatMessageAttachment.CreateFromDiscriminatorValue)?.ToList(); } }, {"body", n => { Body = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, @@ -331,7 +331,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("attachments", Attachments); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageAttachment.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageAttachment.cs index 7b50a9e8402..5109128dce2 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageAttachment.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageAttachment.cs @@ -144,7 +144,7 @@ public static ChatMessageAttachment CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -160,7 +160,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); writer.WriteStringValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageCollectionResponse.cs index fa1abcfcbdc..de1fef47def 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageFromIdentitySet.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageFromIdentitySet.cs index 45251a23760..fd74971f96f 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageFromIdentitySet.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageFromIdentitySet.cs @@ -23,7 +23,7 @@ public ChatMessageFromIdentitySet() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ChatMessageFromIdentitySet() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs index a4a9d91cb14..0b83664bc4d 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs @@ -70,7 +70,7 @@ public static ChatMessageHistoryItem CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"actions", n => { Actions = n.GetEnumValue(); } }, {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("actions", Actions); writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContent.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContent.cs index b9e83060fd2..807999c200f 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContent.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContent.cs @@ -17,7 +17,7 @@ public class ChatMessageHostedContent : TeamworkHostedContent, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class ChatMessageHostedContent : TeamworkHostedContent, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContentCollectionResponse.cs index 4ea9006e1dc..48078ab8514 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageHostedContentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessageHostedContent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageInfo.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageInfo.cs index f3676314653..519dfcf8503 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageInfo.cs @@ -74,7 +74,7 @@ public ChatMessageType? MessageType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"body", n => { Body = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -88,7 +88,7 @@ public ChatMessageType? MessageType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("body", Body); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs index b31dd5eac72..665dcff03c9 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageMention.cs @@ -79,7 +79,7 @@ public static ChatMessageMention CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetIntValue(); } }, {"mentionText", n => { MentionText = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("id", Id); writer.WriteObjectValue("mentioned", Mentioned); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageMentionedIdentitySet.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageMentionedIdentitySet.cs index 8cf10503676..45d54f8063f 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageMentionedIdentitySet.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageMentionedIdentitySet.cs @@ -37,7 +37,7 @@ public ChatMessageMentionedIdentitySet() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"conversation", n => { Conversation = n.GetObjectValue(TeamworkConversationIdentity.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public ChatMessageMentionedIdentitySet() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("conversation", Conversation); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolation.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolation.cs index d88c79f3153..87b13e2d9d1 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolation.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolation.cs @@ -89,7 +89,7 @@ public static ChatMessagePolicyViolation CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dlpAction", n => { DlpAction = n.GetEnumValue(); } }, {"justificationText", n => { JustificationText = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("dlpAction", DlpAction); writer.WriteStringValue("justificationText", JustificationText); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationPolicyTip.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationPolicyTip.cs index 0a3e231be34..5982eb5d1f7 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationPolicyTip.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationPolicyTip.cs @@ -88,7 +88,7 @@ public static ChatMessagePolicyViolationPolicyTip CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"complianceUrl", n => { ComplianceUrl = n.GetStringValue(); } }, {"generalText", n => { GeneralText = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("complianceUrl", ComplianceUrl); writer.WriteStringValue("generalText", GeneralText); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageReaction.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageReaction.cs index 7fdc9f8b263..449fa844df5 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageReaction.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageReaction.cs @@ -79,7 +79,7 @@ public static ChatMessageReaction CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageReactionIdentitySet.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageReactionIdentitySet.cs index e02b0c114ef..42455d8cc07 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageReactionIdentitySet.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageReactionIdentitySet.cs @@ -23,7 +23,7 @@ public ChatMessageReactionIdentitySet() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ChatMessageReactionIdentitySet() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ChatRenamedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ChatRenamedEventMessageDetail.cs index c9b774b52eb..501cfe9c735 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatRenamedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatRenamedEventMessageDetail.cs @@ -65,7 +65,7 @@ public ChatRenamedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"chatDisplayName", n => { ChatDisplayName = n.GetStringValue(); } }, {"chatId", n => { ChatId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ChatRenamedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("chatDisplayName", ChatDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ChatViewpoint.cs b/src/Microsoft.Graph/Generated/Models/ChatViewpoint.cs index 16ef8c605d7..6de095f530b 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatViewpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatViewpoint.cs @@ -56,7 +56,7 @@ public static ChatViewpoint CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isHidden", n => { IsHidden = n.GetBoolValue(); } }, {"lastMessageReadDateTime", n => { LastMessageReadDateTime = n.GetDateTimeOffsetValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isHidden", IsHidden); writer.WriteDateTimeOffsetValue("lastMessageReadDateTime", LastMessageReadDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs b/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs index 5ae398e3340..646415fedb2 100644 --- a/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ChecklistItem.cs @@ -46,7 +46,7 @@ public bool? IsChecked { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"checkedDateTime", n => { CheckedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -58,7 +58,7 @@ public bool? IsChecked { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("checkedDateTime", CheckedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ChecklistItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChecklistItemCollectionResponse.cs index 85c4383ac9a..1eb71df4e8c 100644 --- a/src/Microsoft.Graph/Generated/Models/ChecklistItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ChecklistItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChecklistItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ChoiceColumn.cs b/src/Microsoft.Graph/Generated/Models/ChoiceColumn.cs index 06d241b649c..4d701cec4b4 100644 --- a/src/Microsoft.Graph/Generated/Models/ChoiceColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/ChoiceColumn.cs @@ -79,7 +79,7 @@ public static ChoiceColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowTextEntry", n => { AllowTextEntry = n.GetBoolValue(); } }, {"choices", n => { Choices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowTextEntry", AllowTextEntry); writer.WriteCollectionOfPrimitiveValues("choices", Choices); diff --git a/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicy.cs b/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicy.cs index 29a0681e932..8adb09512c7 100644 --- a/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicy.cs @@ -23,7 +23,7 @@ public ClaimsMappingPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ClaimsMappingPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicyCollectionResponse.cs index ebe36f79563..1c5d6d17f58 100644 --- a/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ClaimsMappingPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ClaimsMappingPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ClientCertificateAuthentication.cs b/src/Microsoft.Graph/Generated/Models/ClientCertificateAuthentication.cs index 325152c7922..d9622bfdb32 100644 --- a/src/Microsoft.Graph/Generated/Models/ClientCertificateAuthentication.cs +++ b/src/Microsoft.Graph/Generated/Models/ClientCertificateAuthentication.cs @@ -37,7 +37,7 @@ public ClientCertificateAuthentication() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"certificateList", n => { CertificateList = n.GetCollectionOfObjectValues(Pkcs12CertificateInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public ClientCertificateAuthentication() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("certificateList", CertificateList); diff --git a/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControl.cs b/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControl.cs index c6f936d2e51..09aac519aff 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControl.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudAppSecuritySessionControl.cs @@ -28,7 +28,7 @@ public CloudAppSecuritySessionControl() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cloudAppSecurityType", n => { CloudAppSecurityType = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public CloudAppSecuritySessionControl() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("cloudAppSecurityType", CloudAppSecurityType); diff --git a/src/Microsoft.Graph/Generated/Models/CloudAppSecurityState.cs b/src/Microsoft.Graph/Generated/Models/CloudAppSecurityState.cs index fda625ab731..9f01753ceba 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudAppSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudAppSecurityState.cs @@ -88,7 +88,7 @@ public static CloudAppSecurityState CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationServiceIp", n => { DestinationServiceIp = n.GetStringValue(); } }, {"destinationServiceName", n => { DestinationServiceName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationServiceIp", DestinationServiceIp); writer.WriteStringValue("destinationServiceName", DestinationServiceName); diff --git a/src/Microsoft.Graph/Generated/Models/CloudCommunications.cs b/src/Microsoft.Graph/Generated/Models/CloudCommunications.cs index 7c2b2e60309..0a06131e88d 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudCommunications.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudCommunications.cs @@ -103,7 +103,7 @@ public static CloudCommunications CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callRecords", n => { CallRecords = n.GetCollectionOfObjectValues(CallRecord.CreateFromDiscriminatorValue)?.ToList(); } }, {"calls", n => { Calls = n.GetCollectionOfObjectValues(Call.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("callRecords", CallRecords); writer.WriteCollectionOfObjectValues("calls", Calls); diff --git a/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs b/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs index e2b48ee02c9..91d4d17af11 100644 --- a/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/CoachmarkLocation.cs @@ -61,7 +61,7 @@ public static CoachmarkLocation CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"length", n => { Length = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("length", Length); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CollapseProperty.cs b/src/Microsoft.Graph/Generated/Models/CollapseProperty.cs index 6b1fa82e24c..f9e3acecd76 100644 --- a/src/Microsoft.Graph/Generated/Models/CollapseProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/CollapseProperty.cs @@ -65,7 +65,7 @@ public static CollapseProperty CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fields", n => { Fields = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"limit", n => { Limit = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("fields", Fields); writer.WriteIntValue("limit", Limit); diff --git a/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs b/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs index 0eb66fddb6d..56368a3dca2 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnDefinition.cs @@ -375,7 +375,7 @@ public ColumnValidation Validation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"boolean", n => { Boolean = n.GetObjectValue(BooleanColumn.CreateFromDiscriminatorValue); } }, {"calculated", n => { Calculated = n.GetObjectValue(CalculatedColumn.CreateFromDiscriminatorValue); } }, @@ -415,7 +415,7 @@ public ColumnValidation Validation { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("boolean", Boolean); diff --git a/src/Microsoft.Graph/Generated/Models/ColumnDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ColumnDefinitionCollectionResponse.cs index 0cb136cd450..38cf3f3cc82 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ColumnDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ColumnLink.cs b/src/Microsoft.Graph/Generated/Models/ColumnLink.cs index 93f2d5d8ffa..f081a2fda90 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnLink.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnLink.cs @@ -31,7 +31,7 @@ public string Name { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Name { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/ColumnLinkCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ColumnLinkCollectionResponse.cs index 271abc3cf17..b0bc213c081 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnLinkCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnLinkCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ColumnLink.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ColumnValidation.cs b/src/Microsoft.Graph/Generated/Models/ColumnValidation.cs index 4c8709c9809..da418303492 100644 --- a/src/Microsoft.Graph/Generated/Models/ColumnValidation.cs +++ b/src/Microsoft.Graph/Generated/Models/ColumnValidation.cs @@ -88,7 +88,7 @@ public static ColumnValidation CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"defaultLanguage", n => { DefaultLanguage = n.GetStringValue(); } }, {"descriptions", n => { Descriptions = n.GetCollectionOfObjectValues(DisplayNameLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("defaultLanguage", DefaultLanguage); writer.WriteCollectionOfObjectValues("descriptions", Descriptions); diff --git a/src/Microsoft.Graph/Generated/Models/CommsOperation.cs b/src/Microsoft.Graph/Generated/Models/CommsOperation.cs index 834aaa863cc..db097d993b5 100644 --- a/src/Microsoft.Graph/Generated/Models/CommsOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/CommsOperation.cs @@ -64,7 +64,7 @@ public OperationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clientContext", n => { ClientContext = n.GetStringValue(); } }, {"resultInfo", n => { ResultInfo = n.GetObjectValue(Microsoft.Graph.Models.ResultInfo.CreateFromDiscriminatorValue); } }, @@ -75,7 +75,7 @@ public OperationStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("clientContext", ClientContext); diff --git a/src/Microsoft.Graph/Generated/Models/CommsOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CommsOperationCollectionResponse.cs index d160e7dd5d4..aece8dd1eab 100644 --- a/src/Microsoft.Graph/Generated/Models/CommsOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CommsOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CommsOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsApplicationIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsApplicationIdentity.cs new file mode 100644 index 00000000000..4bc2d2d5398 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsApplicationIdentity.cs @@ -0,0 +1,62 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsApplicationIdentity : Identity, IParsable { + /// The applicationType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplicationType { + get { return BackingStore?.Get("applicationType"); } + set { BackingStore?.Set("applicationType", value); } + } +#nullable restore +#else + public string ApplicationType { + get { return BackingStore?.Get("applicationType"); } + set { BackingStore?.Set("applicationType", value); } + } +#endif + /// The hidden property + public bool? Hidden { + get { return BackingStore?.Get("hidden"); } + set { BackingStore?.Set("hidden", value); } + } + /// + /// Instantiates a new communicationsApplicationIdentity and sets the default values. + /// + public CommunicationsApplicationIdentity() : base() { + OdataType = "#microsoft.graph.communicationsApplicationIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsApplicationIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsApplicationIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"applicationType", n => { ApplicationType = n.GetStringValue(); } }, + {"hidden", n => { Hidden = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("applicationType", ApplicationType); + writer.WriteBoolValue("hidden", Hidden); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsApplicationInstanceIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsApplicationInstanceIdentity.cs new file mode 100644 index 00000000000..d0813df0898 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsApplicationInstanceIdentity.cs @@ -0,0 +1,62 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsApplicationInstanceIdentity : Identity, IParsable { + /// The hidden property + public bool? Hidden { + get { return BackingStore?.Get("hidden"); } + set { BackingStore?.Set("hidden", value); } + } + /// The tenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#nullable restore +#else + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#endif + /// + /// Instantiates a new communicationsApplicationInstanceIdentity and sets the default values. + /// + public CommunicationsApplicationInstanceIdentity() : base() { + OdataType = "#microsoft.graph.communicationsApplicationInstanceIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsApplicationInstanceIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsApplicationInstanceIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"hidden", n => { Hidden = n.GetBoolValue(); } }, + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteBoolValue("hidden", Hidden); + writer.WriteStringValue("tenantId", TenantId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsEncryptedIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsEncryptedIdentity.cs new file mode 100644 index 00000000000..4f9f0da3ce0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsEncryptedIdentity.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsEncryptedIdentity : Identity, IParsable { + /// + /// Instantiates a new communicationsEncryptedIdentity and sets the default values. + /// + public CommunicationsEncryptedIdentity() : base() { + OdataType = "#microsoft.graph.communicationsEncryptedIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsEncryptedIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsEncryptedIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs new file mode 100644 index 00000000000..ec4c3471c53 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsGuestIdentity : Identity, IParsable { + /// + /// Instantiates a new communicationsGuestIdentity and sets the default values. + /// + public CommunicationsGuestIdentity() : base() { + OdataType = "#microsoft.graph.communicationsGuestIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsGuestIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsGuestIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsIdentitySet.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsIdentitySet.cs new file mode 100644 index 00000000000..25f054dec44 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsIdentitySet.cs @@ -0,0 +1,158 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsIdentitySet : IdentitySet, IParsable { + /// The applicationInstance property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? ApplicationInstance { + get { return BackingStore?.Get("applicationInstance"); } + set { BackingStore?.Set("applicationInstance", value); } + } +#nullable restore +#else + public Identity ApplicationInstance { + get { return BackingStore?.Get("applicationInstance"); } + set { BackingStore?.Set("applicationInstance", value); } + } +#endif + /// The assertedIdentity property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? AssertedIdentity { + get { return BackingStore?.Get("assertedIdentity"); } + set { BackingStore?.Set("assertedIdentity", value); } + } +#nullable restore +#else + public Identity AssertedIdentity { + get { return BackingStore?.Get("assertedIdentity"); } + set { BackingStore?.Set("assertedIdentity", value); } + } +#endif + /// The azureCommunicationServicesUser property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? AzureCommunicationServicesUser { + get { return BackingStore?.Get("azureCommunicationServicesUser"); } + set { BackingStore?.Set("azureCommunicationServicesUser", value); } + } +#nullable restore +#else + public Identity AzureCommunicationServicesUser { + get { return BackingStore?.Get("azureCommunicationServicesUser"); } + set { BackingStore?.Set("azureCommunicationServicesUser", value); } + } +#endif + /// The encrypted property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? Encrypted { + get { return BackingStore?.Get("encrypted"); } + set { BackingStore?.Set("encrypted", value); } + } +#nullable restore +#else + public Identity Encrypted { + get { return BackingStore?.Get("encrypted"); } + set { BackingStore?.Set("encrypted", value); } + } +#endif + /// The endpointType property + public Microsoft.Graph.Models.EndpointType? EndpointType { + get { return BackingStore?.Get("endpointType"); } + set { BackingStore?.Set("endpointType", value); } + } + /// The guest property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? Guest { + get { return BackingStore?.Get("guest"); } + set { BackingStore?.Set("guest", value); } + } +#nullable restore +#else + public Identity Guest { + get { return BackingStore?.Get("guest"); } + set { BackingStore?.Set("guest", value); } + } +#endif + /// The onPremises property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? OnPremises { + get { return BackingStore?.Get("onPremises"); } + set { BackingStore?.Set("onPremises", value); } + } +#nullable restore +#else + public Identity OnPremises { + get { return BackingStore?.Get("onPremises"); } + set { BackingStore?.Set("onPremises", value); } + } +#endif + /// The phone property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Identity? Phone { + get { return BackingStore?.Get("phone"); } + set { BackingStore?.Set("phone", value); } + } +#nullable restore +#else + public Identity Phone { + get { return BackingStore?.Get("phone"); } + set { BackingStore?.Set("phone", value); } + } +#endif + /// + /// Instantiates a new communicationsIdentitySet and sets the default values. + /// + public CommunicationsIdentitySet() : base() { + OdataType = "#microsoft.graph.communicationsIdentitySet"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsIdentitySet CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsIdentitySet(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"applicationInstance", n => { ApplicationInstance = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + {"assertedIdentity", n => { AssertedIdentity = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + {"azureCommunicationServicesUser", n => { AzureCommunicationServicesUser = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + {"encrypted", n => { Encrypted = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + {"endpointType", n => { EndpointType = n.GetEnumValue(); } }, + {"guest", n => { Guest = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + {"onPremises", n => { OnPremises = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + {"phone", n => { Phone = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("applicationInstance", ApplicationInstance); + writer.WriteObjectValue("assertedIdentity", AssertedIdentity); + writer.WriteObjectValue("azureCommunicationServicesUser", AzureCommunicationServicesUser); + writer.WriteObjectValue("encrypted", Encrypted); + writer.WriteEnumValue("endpointType", EndpointType); + writer.WriteObjectValue("guest", Guest); + writer.WriteObjectValue("onPremises", OnPremises); + writer.WriteObjectValue("phone", Phone); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsPhoneIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsPhoneIdentity.cs new file mode 100644 index 00000000000..e62047cf36b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsPhoneIdentity.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsPhoneIdentity : Identity, IParsable { + /// + /// Instantiates a new communicationsPhoneIdentity and sets the default values. + /// + public CommunicationsPhoneIdentity() : base() { + OdataType = "#microsoft.graph.communicationsPhoneIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsPhoneIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsPhoneIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsUserIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsUserIdentity.cs new file mode 100644 index 00000000000..8efb45b7d9b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsUserIdentity.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class CommunicationsUserIdentity : Identity, IParsable { + /// The tenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#nullable restore +#else + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#endif + /// + /// Instantiates a new communicationsUserIdentity and sets the default values. + /// + public CommunicationsUserIdentity() : base() { + OdataType = "#microsoft.graph.communicationsUserIdentity"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new CommunicationsUserIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CommunicationsUserIdentity(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("tenantId", TenantId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Compliance.cs b/src/Microsoft.Graph/Generated/Models/Compliance.cs index 10e12c8e48e..61a8ac0100f 100644 --- a/src/Microsoft.Graph/Generated/Models/Compliance.cs +++ b/src/Microsoft.Graph/Generated/Models/Compliance.cs @@ -46,7 +46,7 @@ public static Compliance CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs b/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs index 18d90c82f03..2d6108b3060 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs @@ -74,7 +74,7 @@ public static ComplianceInformation CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificationControls", n => { CertificationControls = n.GetCollectionOfObjectValues(CertificationControl.CreateFromDiscriminatorValue)?.ToList(); } }, {"certificationName", n => { CertificationName = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("certificationControls", CertificationControls); writer.WriteStringValue("certificationName", CertificationName); diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartner.cs b/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartner.cs index 5bb8190d9cb..8659a7be7dc 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartner.cs @@ -101,7 +101,7 @@ public DeviceManagementPartnerTenantState? PartnerState { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"androidEnrollmentAssignments", n => { AndroidEnrollmentAssignments = n.GetCollectionOfObjectValues(ComplianceManagementPartnerAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"androidOnboarded", n => { AndroidOnboarded = n.GetBoolValue(); } }, @@ -118,7 +118,7 @@ public DeviceManagementPartnerTenantState? PartnerState { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("androidEnrollmentAssignments", AndroidEnrollmentAssignments); diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerAssignment.cs b/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerAssignment.cs index 43d614a3ecf..8c5757f409b 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerAssignment.cs @@ -63,7 +63,7 @@ public static ComplianceManagementPartnerAssignment CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerCollectionResponse.cs index d10c4d6fcb8..e29732253bc 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceManagementPartnerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ComplianceManagementPartner.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessAllExternalTenants.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessAllExternalTenants.cs index 5bc3a1e8357..a2d5b27a49e 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessAllExternalTenants.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessAllExternalTenants.cs @@ -23,7 +23,7 @@ public ConditionalAccessAllExternalTenants() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ConditionalAccessAllExternalTenants() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs index b5c65719cca..8c47f93cbdb 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs @@ -116,7 +116,7 @@ public static ConditionalAccessApplications CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationFilter", n => { ApplicationFilter = n.GetObjectValue(ConditionalAccessFilter.CreateFromDiscriminatorValue); } }, {"excludeApplications", n => { ExcludeApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("applicationFilter", ApplicationFilter); writer.WriteCollectionOfPrimitiveValues("excludeApplications", ExcludeApplications); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApplications.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApplications.cs index 3b0780a38bd..0e6085d6a46 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApplications.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessClientApplications.cs @@ -88,7 +88,7 @@ public static ConditionalAccessClientApplications CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludeServicePrincipals", n => { ExcludeServicePrincipals = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeServicePrincipals", n => { IncludeServicePrincipals = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("excludeServicePrincipals", ExcludeServicePrincipals); writer.WriteCollectionOfPrimitiveValues("includeServicePrincipals", IncludeServicePrincipals); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs index 1af497ae233..fd0a5446ec4 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs @@ -186,7 +186,7 @@ public static ConditionalAccessConditionSet CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applications", n => { Applications = n.GetObjectValue(ConditionalAccessApplications.CreateFromDiscriminatorValue); } }, {"clientAppTypes", n => { ClientAppTypes = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -205,7 +205,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("applications", Applications); writer.WriteObjectValue("clientApplications", ClientApplications); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevices.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevices.cs index 392a9502dc0..f76480a0725 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevices.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessDevices.cs @@ -60,7 +60,7 @@ public static ConditionalAccessDevices CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceFilter", n => { DeviceFilter = n.GetObjectValue(ConditionalAccessFilter.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("deviceFilter", DeviceFilter); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessEnumeratedExternalTenants.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessEnumeratedExternalTenants.cs index 481d5c7ceef..ad993bd40a2 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessEnumeratedExternalTenants.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessEnumeratedExternalTenants.cs @@ -37,7 +37,7 @@ public ConditionalAccessEnumeratedExternalTenants() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"members", n => { Members = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public ConditionalAccessEnumeratedExternalTenants() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("members", Members); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessExternalTenants.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessExternalTenants.cs index 2132aea78ad..03dd3e67c1d 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessExternalTenants.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessExternalTenants.cs @@ -56,7 +56,7 @@ public static ConditionalAccessExternalTenants CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"membershipKind", n => { MembershipKind = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -66,7 +66,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("membershipKind", MembershipKind); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessFilter.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessFilter.cs index 34c6a747491..055428e3456 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessFilter.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessFilter.cs @@ -33,7 +33,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Rule syntax is similar to that used for membership rules for groups in Azure Active Directory (Azure AD). For details, see rules with multiple expressions + /// Rule syntax is similar to that used for membership rules for groups in Microsoft Entra ID. For details, see rules with multiple expressions #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Rule { @@ -65,7 +65,7 @@ public static ConditionalAccessFilter CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mode", n => { Mode = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("mode", Mode); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs index ecf59968225..ee01883792e 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs @@ -116,7 +116,7 @@ public static ConditionalAccessGrantControls CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authenticationStrength", n => { AuthenticationStrength = n.GetObjectValue(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue); } }, {"builtInControls", n => { BuiltInControls = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("authenticationStrength", AuthenticationStrength); writer.WriteCollectionOfEnumValues("builtInControls", BuiltInControls); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestsOrExternalUsers.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestsOrExternalUsers.cs index 95f17be2359..ff9740862e2 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestsOrExternalUsers.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestsOrExternalUsers.cs @@ -65,7 +65,7 @@ public static ConditionalAccessGuestsOrExternalUsers CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"externalTenants", n => { ExternalTenants = n.GetObjectValue(ConditionalAccessExternalTenants.CreateFromDiscriminatorValue); } }, {"guestOrExternalUserTypes", n => { GuestOrExternalUserTypes = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("externalTenants", ExternalTenants); writer.WriteEnumValue("guestOrExternalUserTypes", GuestOrExternalUserTypes); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessLocations.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessLocations.cs index 9dc3f7627c0..fa4f68a6a57 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessLocations.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessLocations.cs @@ -74,7 +74,7 @@ public static ConditionalAccessLocations CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludeLocations", n => { ExcludeLocations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeLocations", n => { IncludeLocations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("excludeLocations", ExcludeLocations); writer.WriteCollectionOfPrimitiveValues("includeLocations", IncludeLocations); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPlatforms.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPlatforms.cs index 54757e899d5..e15a4a18f7a 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPlatforms.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPlatforms.cs @@ -74,7 +74,7 @@ public static ConditionalAccessPlatforms CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludePlatforms", n => { ExcludePlatforms = n.GetCollectionOfEnumValues()?.ToList(); } }, {"includePlatforms", n => { IncludePlatforms = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfEnumValues("excludePlatforms", ExcludePlatforms); writer.WriteCollectionOfEnumValues("includePlatforms", IncludePlatforms); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs index 29699ee139d..75894f88714 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicy.cs @@ -116,7 +116,7 @@ public string TemplateId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"conditions", n => { Conditions = n.GetObjectValue(ConditionalAccessConditionSet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -133,7 +133,7 @@ public string TemplateId { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("conditions", Conditions); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyCollectionResponse.cs index 46099952289..e3c890b1349 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyDetail.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyDetail.cs index 5215da2e825..85402ec7138 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessPolicyDetail.cs @@ -88,7 +88,7 @@ public static ConditionalAccessPolicyDetail CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"conditions", n => { Conditions = n.GetObjectValue(ConditionalAccessConditionSet.CreateFromDiscriminatorValue); } }, {"grantControls", n => { GrantControls = n.GetObjectValue(ConditionalAccessGrantControls.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("conditions", Conditions); writer.WriteObjectValue("grantControls", GrantControls); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs index 7f1b5b1f2b0..482b8072a2e 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs @@ -87,7 +87,7 @@ public List Templates { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationContextClassReferences", n => { AuthenticationContextClassReferences = n.GetCollectionOfObjectValues(AuthenticationContextClassReference.CreateFromDiscriminatorValue)?.ToList(); } }, {"authenticationStrength", n => { AuthenticationStrength = n.GetObjectValue(AuthenticationStrengthRoot.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public List Templates { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("authenticationContextClassReferences", AuthenticationContextClassReferences); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControl.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControl.cs index 2c2dfbc5db5..0bca2e7ca8e 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControl.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControl.cs @@ -58,7 +58,7 @@ public static ConditionalAccessSessionControl CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -68,7 +68,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isEnabled", IsEnabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControls.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControls.cs index 1d251325fca..6c8a9480cda 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControls.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessSessionControls.cs @@ -42,7 +42,7 @@ public CloudAppSecuritySessionControl CloudAppSecurity { set { BackingStore?.Set("cloudAppSecurity", value); } } #endif - /// Session control that determines whether it is acceptable for Azure AD to extend existing sessions based on information collected prior to an outage or not. + /// Session control that determines whether it is acceptable for Microsoft Entra ID to extend existing sessions based on information collected prior to an outage or not. public bool? DisableResilienceDefaults { get { return BackingStore?.Get("disableResilienceDefaults"); } set { BackingStore?.Set("disableResilienceDefaults", value); } @@ -107,7 +107,7 @@ public static ConditionalAccessSessionControls CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationEnforcedRestrictions", n => { ApplicationEnforcedRestrictions = n.GetObjectValue(ApplicationEnforcedRestrictionsSessionControl.CreateFromDiscriminatorValue); } }, {"cloudAppSecurity", n => { CloudAppSecurity = n.GetObjectValue(CloudAppSecuritySessionControl.CreateFromDiscriminatorValue); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("applicationEnforcedRestrictions", ApplicationEnforcedRestrictions); writer.WriteObjectValue("cloudAppSecurity", CloudAppSecurity); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplate.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplate.cs index 7c955559c5e..3db3bf01929 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplate.cs @@ -64,7 +64,7 @@ public TemplateScenarios? Scenarios { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"details", n => { Details = n.GetObjectValue(ConditionalAccessPolicyDetail.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public TemplateScenarios? Scenarios { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplateCollectionResponse.cs index a20dd25a43c..6001ce34ff4 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConditionalAccessTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessUsers.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessUsers.cs index 0d94fe82975..77e657d5187 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessUsers.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessUsers.cs @@ -158,7 +158,7 @@ public static ConditionalAccessUsers CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludeGroups", n => { ExcludeGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"excludeGuestsOrExternalUsers", n => { ExcludeGuestsOrExternalUsers = n.GetObjectValue(ConditionalAccessGuestsOrExternalUsers.CreateFromDiscriminatorValue); } }, @@ -175,7 +175,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("excludeGroups", ExcludeGroups); writer.WriteObjectValue("excludeGuestsOrExternalUsers", ExcludeGuestsOrExternalUsers); diff --git a/src/Microsoft.Graph/Generated/Models/ConfigurationManagerClientEnabledFeatures.cs b/src/Microsoft.Graph/Generated/Models/ConfigurationManagerClientEnabledFeatures.cs index 13e4ad3ff90..6955e57ee70 100644 --- a/src/Microsoft.Graph/Generated/Models/ConfigurationManagerClientEnabledFeatures.cs +++ b/src/Microsoft.Graph/Generated/Models/ConfigurationManagerClientEnabledFeatures.cs @@ -79,7 +79,7 @@ public static ConfigurationManagerClientEnabledFeatures CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"compliancePolicy", n => { CompliancePolicy = n.GetBoolValue(); } }, {"deviceConfiguration", n => { DeviceConfiguration = n.GetBoolValue(); } }, @@ -94,7 +94,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("compliancePolicy", CompliancePolicy); writer.WriteBoolValue("deviceConfiguration", DeviceConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/ConfigurationManagerCollectionAssignmentTarget.cs b/src/Microsoft.Graph/Generated/Models/ConfigurationManagerCollectionAssignmentTarget.cs index 498f35435d8..94044b8f155 100644 --- a/src/Microsoft.Graph/Generated/Models/ConfigurationManagerCollectionAssignmentTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/ConfigurationManagerCollectionAssignmentTarget.cs @@ -40,7 +40,7 @@ public ConfigurationManagerCollectionAssignmentTarget() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"collectionId", n => { CollectionId = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public ConfigurationManagerCollectionAssignmentTarget() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("collectionId", CollectionId); diff --git a/src/Microsoft.Graph/Generated/Models/ConnectedOrganization.cs b/src/Microsoft.Graph/Generated/Models/ConnectedOrganization.cs index e34ce97759c..ff4c1fa170a 100644 --- a/src/Microsoft.Graph/Generated/Models/ConnectedOrganization.cs +++ b/src/Microsoft.Graph/Generated/Models/ConnectedOrganization.cs @@ -102,7 +102,7 @@ public ConnectedOrganizationState? State { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public ConnectedOrganizationState? State { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationCollectionResponse.cs index 50307318f4d..bef7eee1f27 100644 --- a/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConnectedOrganization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationMembers.cs b/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationMembers.cs index cd98343efab..dbcf79e1ea5 100644 --- a/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationMembers.cs +++ b/src/Microsoft.Graph/Generated/Models/ConnectedOrganizationMembers.cs @@ -51,7 +51,7 @@ public ConnectedOrganizationMembers() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"connectedOrganizationId", n => { ConnectedOrganizationId = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public ConnectedOrganizationMembers() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("connectedOrganizationId", ConnectedOrganizationId); diff --git a/src/Microsoft.Graph/Generated/Models/Contact.cs b/src/Microsoft.Graph/Generated/Models/Contact.cs index 468ff37f491..efa384a8399 100644 --- a/src/Microsoft.Graph/Generated/Models/Contact.cs +++ b/src/Microsoft.Graph/Generated/Models/Contact.cs @@ -532,7 +532,7 @@ public Contact() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assistantName", n => { AssistantName = n.GetStringValue(); } }, {"birthday", n => { Birthday = n.GetDateTimeOffsetValue(); } }, @@ -577,7 +577,7 @@ public Contact() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("assistantName", AssistantName); diff --git a/src/Microsoft.Graph/Generated/Models/ContactCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ContactCollectionResponse.cs index 42db18c7b4e..9c0f5731d63 100644 --- a/src/Microsoft.Graph/Generated/Models/ContactCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ContactCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ContactFolder.cs b/src/Microsoft.Graph/Generated/Models/ContactFolder.cs index 63e14986233..16e5013343b 100644 --- a/src/Microsoft.Graph/Generated/Models/ContactFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/ContactFolder.cs @@ -101,7 +101,7 @@ public List SingleValueExtendedProperties { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"childFolders", n => { ChildFolders = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, {"contacts", n => { Contacts = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public List SingleValueExtendedProperties { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("childFolders", ChildFolders); diff --git a/src/Microsoft.Graph/Generated/Models/ContactFolderCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ContactFolderCollectionResponse.cs index 2504bef1d93..ffabe26ff7a 100644 --- a/src/Microsoft.Graph/Generated/Models/ContactFolderCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ContactFolderCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ContainerFilter.cs b/src/Microsoft.Graph/Generated/Models/ContainerFilter.cs index 106d84e5108..f7adf434768 100644 --- a/src/Microsoft.Graph/Generated/Models/ContainerFilter.cs +++ b/src/Microsoft.Graph/Generated/Models/ContainerFilter.cs @@ -60,7 +60,7 @@ public static ContainerFilter CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"includedContainers", n => { IncludedContainers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("includedContainers", IncludedContainers); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ContentApprovalStatusColumn.cs b/src/Microsoft.Graph/Generated/Models/ContentApprovalStatusColumn.cs index beb9dd722c6..11f0618c41a 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentApprovalStatusColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentApprovalStatusColumn.cs @@ -46,7 +46,7 @@ public static ContentApprovalStatusColumn CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs b/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs index deb457de268..af8d747b843 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentSharingSession.cs @@ -17,7 +17,7 @@ public class ContentSharingSession : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class ContentSharingSession : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ContentSharingSessionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ContentSharingSessionCollectionResponse.cs index 19a8092d60c..18e0d14359e 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentSharingSessionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentSharingSessionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentSharingSession.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ContentType.cs b/src/Microsoft.Graph/Generated/Models/ContentType.cs index 02d0ab7824a..d1c393973cd 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentType.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentType.cs @@ -238,7 +238,7 @@ public bool? Sealed { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"associatedHubsUrls", n => { AssociatedHubsUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"base", n => { Base = n.GetObjectValue(ContentType.CreateFromDiscriminatorValue); } }, @@ -265,7 +265,7 @@ public bool? Sealed { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("associatedHubsUrls", AssociatedHubsUrls); diff --git a/src/Microsoft.Graph/Generated/Models/ContentTypeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ContentTypeCollectionResponse.cs index d55588e4998..e9c7dd2710a 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentTypeCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentTypeCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ContentTypeInfo.cs b/src/Microsoft.Graph/Generated/Models/ContentTypeInfo.cs index ec10d0ba12d..3a3cf913311 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentTypeInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentTypeInfo.cs @@ -74,7 +74,7 @@ public static ContentTypeInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/ContentTypeOrder.cs b/src/Microsoft.Graph/Generated/Models/ContentTypeOrder.cs index bbf6cc4c04b..b26b86219f4 100644 --- a/src/Microsoft.Graph/Generated/Models/ContentTypeOrder.cs +++ b/src/Microsoft.Graph/Generated/Models/ContentTypeOrder.cs @@ -56,7 +56,7 @@ public static ContentTypeOrder CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"default", n => { Default = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("default", Default); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Contract.cs b/src/Microsoft.Graph/Generated/Models/Contract.cs index 244c9980a3d..c90d7655b7a 100644 --- a/src/Microsoft.Graph/Generated/Models/Contract.cs +++ b/src/Microsoft.Graph/Generated/Models/Contract.cs @@ -70,7 +70,7 @@ public Contract() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contractType", n => { ContractType = n.GetStringValue(); } }, {"customerId", n => { CustomerId = n.GetGuidValue(); } }, @@ -82,7 +82,7 @@ public Contract() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contractType", ContractType); diff --git a/src/Microsoft.Graph/Generated/Models/ContractCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ContractCollectionResponse.cs index b667768d552..f2c5919d441 100644 --- a/src/Microsoft.Graph/Generated/Models/ContractCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ContractCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contract.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ControlScore.cs b/src/Microsoft.Graph/Generated/Models/ControlScore.cs index dfa03c96074..f3512a723b3 100644 --- a/src/Microsoft.Graph/Generated/Models/ControlScore.cs +++ b/src/Microsoft.Graph/Generated/Models/ControlScore.cs @@ -93,7 +93,7 @@ public static ControlScore CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"controlCategory", n => { ControlCategory = n.GetStringValue(); } }, {"controlName", n => { ControlName = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("controlCategory", ControlCategory); writer.WriteStringValue("controlName", ControlName); diff --git a/src/Microsoft.Graph/Generated/Models/Conversation.cs b/src/Microsoft.Graph/Generated/Models/Conversation.cs index c2f023a733e..b17703b0d80 100644 --- a/src/Microsoft.Graph/Generated/Models/Conversation.cs +++ b/src/Microsoft.Graph/Generated/Models/Conversation.cs @@ -83,7 +83,7 @@ public List UniqueSenders { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, {"lastDeliveredDateTime", n => { LastDeliveredDateTime = n.GetDateTimeOffsetValue(); } }, @@ -97,7 +97,7 @@ public List UniqueSenders { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("hasAttachments", HasAttachments); diff --git a/src/Microsoft.Graph/Generated/Models/ConversationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConversationCollectionResponse.cs index 1d0df85bce2..c4ad207b5c7 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Conversation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConversationMember.cs b/src/Microsoft.Graph/Generated/Models/ConversationMember.cs index 9d48d4e04b1..7dafaef56c4 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationMember.cs @@ -59,7 +59,7 @@ public DateTimeOffset? VisibleHistoryStartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public DateTimeOffset? VisibleHistoryStartDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs index 1ec01e584e2..1a1d94699bf 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationMemberCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConversationMemberRoleUpdatedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/ConversationMemberRoleUpdatedEventMessageDetail.cs index 1832ff31f2b..b25ba3ecff7 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationMemberRoleUpdatedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationMemberRoleUpdatedEventMessageDetail.cs @@ -65,7 +65,7 @@ public ConversationMemberRoleUpdatedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"conversationMemberRoles", n => { ConversationMemberRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"conversationMemberUser", n => { ConversationMemberUser = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public ConversationMemberRoleUpdatedEventMessageDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("conversationMemberRoles", ConversationMemberRoles); diff --git a/src/Microsoft.Graph/Generated/Models/ConversationThread.cs b/src/Microsoft.Graph/Generated/Models/ConversationThread.cs index 966fe58e76e..6539d85b4a2 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationThread.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationThread.cs @@ -116,7 +116,7 @@ public List UniqueSenders { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ccRecipients", n => { CcRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, @@ -133,7 +133,7 @@ public List UniqueSenders { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("ccRecipients", CcRecipients); diff --git a/src/Microsoft.Graph/Generated/Models/ConversationThreadCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ConversationThreadCollectionResponse.cs index 43242a68c97..0a79e32b97e 100644 --- a/src/Microsoft.Graph/Generated/Models/ConversationThreadCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ConversationThreadCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConversationThread.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs b/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs index c49a02bd191..57bedb1579b 100644 --- a/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ConvertIdResult.cs @@ -88,7 +88,7 @@ public static ConvertIdResult CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"errorDetails", n => { ErrorDetails = n.GetObjectValue(GenericError.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("errorDetails", ErrorDetails); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CopyNotebookModel.cs b/src/Microsoft.Graph/Generated/Models/CopyNotebookModel.cs index 34042b5f90d..a7a480c3379 100644 --- a/src/Microsoft.Graph/Generated/Models/CopyNotebookModel.cs +++ b/src/Microsoft.Graph/Generated/Models/CopyNotebookModel.cs @@ -211,7 +211,7 @@ public static CopyNotebookModel CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdBy", n => { CreatedBy = n.GetStringValue(); } }, {"createdByIdentity", n => { CreatedByIdentity = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -235,7 +235,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("createdBy", CreatedBy); writer.WriteObjectValue("createdByIdentity", CreatedByIdentity); diff --git a/src/Microsoft.Graph/Generated/Models/CountryNamedLocation.cs b/src/Microsoft.Graph/Generated/Models/CountryNamedLocation.cs index 1156e41f467..90cc114ed75 100644 --- a/src/Microsoft.Graph/Generated/Models/CountryNamedLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/CountryNamedLocation.cs @@ -41,7 +41,7 @@ public bool? IncludeUnknownCountriesAndRegions { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"countriesAndRegions", n => { CountriesAndRegions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"countryLookupMethod", n => { CountryLookupMethod = n.GetEnumValue(); } }, @@ -52,7 +52,7 @@ public bool? IncludeUnknownCountriesAndRegions { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("countriesAndRegions", CountriesAndRegions); diff --git a/src/Microsoft.Graph/Generated/Models/CrossCloudAzureActiveDirectoryTenant.cs b/src/Microsoft.Graph/Generated/Models/CrossCloudAzureActiveDirectoryTenant.cs index e5145cbbcac..79cc34d5848 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossCloudAzureActiveDirectoryTenant.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossCloudAzureActiveDirectoryTenant.cs @@ -20,7 +20,7 @@ public string CloudInstance { set { BackingStore?.Set("cloudInstance", value); } } #endif - /// The name of the Azure Active Directory tenant. Read only. + /// The name of the Microsoft Entra tenant. Read only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The ID of the Azure Active Directory tenant. Read only. + /// The ID of the Microsoft Entra tenant. Read only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -65,7 +65,7 @@ public CrossCloudAzureActiveDirectoryTenant() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cloudInstance", n => { CloudInstance = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public CrossCloudAzureActiveDirectoryTenant() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("cloudInstance", CloudInstance); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs index 6cad8241a8c..93439baff47 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs @@ -20,7 +20,7 @@ public List AllowedCloudEndpoints { set { BackingStore?.Set("allowedCloudEndpoints", value); } } #endif - /// Defines the default configuration for how your organization interacts with external Azure Active Directory organizations. + /// Defines the default configuration for how your organization interacts with external Microsoft Entra organizations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyConfigurationDefault? Default { @@ -34,7 +34,7 @@ public CrossTenantAccessPolicyConfigurationDefault Default { set { BackingStore?.Set("default", value); } } #endif - /// Defines partner-specific configurations for external Azure Active Directory organizations. + /// Defines partner-specific configurations for external Microsoft Entra organizations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Partners { @@ -65,7 +65,7 @@ public CrossTenantAccessPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedCloudEndpoints", n => { AllowedCloudEndpoints = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"default", n => { Default = n.GetObjectValue(CrossTenantAccessPolicyConfigurationDefault.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public CrossTenantAccessPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("allowedCloudEndpoints", AllowedCloudEndpoints); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyB2BSetting.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyB2BSetting.cs index 79241720c43..e8a12540ab3 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyB2BSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyB2BSetting.cs @@ -74,7 +74,7 @@ public static CrossTenantAccessPolicyB2BSetting CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applications", n => { Applications = n.GetObjectValue(CrossTenantAccessPolicyTargetConfiguration.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("applications", Applications); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.cs index 435ec49e25b..fcfb5d0f5f3 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.cs @@ -20,7 +20,7 @@ public InboundOutboundPolicyConfiguration AutomaticUserConsentSettings { set { BackingStore?.Set("automaticUserConsentSettings", value); } } #endif - /// Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + /// Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bCollaborationInbound { @@ -34,7 +34,7 @@ public CrossTenantAccessPolicyB2BSetting B2bCollaborationInbound { set { BackingStore?.Set("b2bCollaborationInbound", value); } } #endif - /// Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + /// Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bCollaborationOutbound { @@ -48,7 +48,7 @@ public CrossTenantAccessPolicyB2BSetting B2bCollaborationOutbound { set { BackingStore?.Set("b2bCollaborationOutbound", value); } } #endif - /// Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect. + /// Defines your default configuration for users from other organizations accessing your resources via Microsoft Entra B2B direct connect. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bDirectConnectInbound { @@ -62,7 +62,7 @@ public CrossTenantAccessPolicyB2BSetting B2bDirectConnectInbound { set { BackingStore?.Set("b2bDirectConnectInbound", value); } } #endif - /// Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + /// Defines your default configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bDirectConnectOutbound { @@ -76,7 +76,7 @@ public CrossTenantAccessPolicyB2BSetting B2bDirectConnectOutbound { set { BackingStore?.Set("b2bDirectConnectOutbound", value); } } #endif - /// Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations. + /// Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyInboundTrust? InboundTrust { @@ -106,7 +106,7 @@ public bool? IsServiceDefault { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"automaticUserConsentSettings", n => { AutomaticUserConsentSettings = n.GetObjectValue(InboundOutboundPolicyConfiguration.CreateFromDiscriminatorValue); } }, {"b2bCollaborationInbound", n => { B2bCollaborationInbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, @@ -121,7 +121,7 @@ public bool? IsServiceDefault { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("automaticUserConsentSettings", AutomaticUserConsentSettings); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs index a46a5a7b624..19cda76329c 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs @@ -26,7 +26,7 @@ public InboundOutboundPolicyConfiguration AutomaticUserConsentSettings { set { BackingStore?.Set("automaticUserConsentSettings", value); } } #endif - /// Defines your partner-specific configuration for users from other organizations accessing your resources via Azure AD B2B collaboration. + /// Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bCollaborationInbound { @@ -40,7 +40,7 @@ public CrossTenantAccessPolicyB2BSetting B2bCollaborationInbound { set { BackingStore?.Set("b2bCollaborationInbound", value); } } #endif - /// Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration. + /// Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bCollaborationOutbound { @@ -68,7 +68,7 @@ public CrossTenantAccessPolicyB2BSetting B2bDirectConnectInbound { set { BackingStore?.Set("b2bDirectConnectInbound", value); } } #endif - /// Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect. + /// Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyB2BSetting? B2bDirectConnectOutbound { @@ -98,7 +98,7 @@ public CrossTenantIdentitySyncPolicyPartner IdentitySynchronization { set { BackingStore?.Set("identitySynchronization", value); } } #endif - /// Determines the partner-specific configuration for trusting other Conditional Access claims from external Azure AD organizations. + /// Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CrossTenantAccessPolicyInboundTrust? InboundTrust { @@ -131,7 +131,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The tenant identifier for the partner Azure AD organization. Read-only. Key. + /// The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -163,7 +163,7 @@ public static CrossTenantAccessPolicyConfigurationPartner CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"automaticUserConsentSettings", n => { AutomaticUserConsentSettings = n.GetObjectValue(InboundOutboundPolicyConfiguration.CreateFromDiscriminatorValue); } }, {"b2bCollaborationInbound", n => { B2bCollaborationInbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, @@ -181,7 +181,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("automaticUserConsentSettings", AutomaticUserConsentSettings); writer.WriteObjectValue("b2bCollaborationInbound", B2bCollaborationInbound); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartnerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartnerCollectionResponse.cs index 3541c0ecb33..5700222c8ba 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartnerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartnerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CrossTenantAccessPolicyConfigurationPartner.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyInboundTrust.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyInboundTrust.cs index 5e1ef6de435..b3e923b82e0 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyInboundTrust.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyInboundTrust.cs @@ -14,17 +14,17 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Specifies whether compliant devices from external Azure AD organizations are trusted. + /// Specifies whether compliant devices from external Microsoft Entra organizations are trusted. public bool? IsCompliantDeviceAccepted { get { return BackingStore?.Get("isCompliantDeviceAccepted"); } set { BackingStore?.Set("isCompliantDeviceAccepted", value); } } - /// Specifies whether hybrid Azure AD joined devices from external Azure AD organizations are trusted. + /// Specifies whether Microsoft Entra hybrid joined devices from external Microsoft Entra organizations are trusted. public bool? IsHybridAzureADJoinedDeviceAccepted { get { return BackingStore?.Get("isHybridAzureADJoinedDeviceAccepted"); } set { BackingStore?.Set("isHybridAzureADJoinedDeviceAccepted", value); } } - /// Specifies whether MFA from external Azure AD organizations is trusted. + /// Specifies whether MFA from external Microsoft Entra organizations is trusted. public bool? IsMfaAccepted { get { return BackingStore?.Get("isMfaAccepted"); } set { BackingStore?.Set("isMfaAccepted", value); } @@ -61,7 +61,7 @@ public static CrossTenantAccessPolicyInboundTrust CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isCompliantDeviceAccepted", n => { IsCompliantDeviceAccepted = n.GetBoolValue(); } }, {"isHybridAzureADJoinedDeviceAccepted", n => { IsHybridAzureADJoinedDeviceAccepted = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isCompliantDeviceAccepted", IsCompliantDeviceAccepted); writer.WriteBoolValue("isHybridAzureADJoinedDeviceAccepted", IsHybridAzureADJoinedDeviceAccepted); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTarget.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTarget.cs index 482f7df3802..864c25cfa06 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTarget.cs @@ -65,7 +65,7 @@ public static CrossTenantAccessPolicyTarget CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"target", n => { Target = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs index fb61845f924..c2f8ddc61de 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs @@ -65,7 +65,7 @@ public static CrossTenantAccessPolicyTargetConfiguration CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accessType", n => { AccessType = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("accessType", AccessType); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantIdentitySyncPolicyPartner.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantIdentitySyncPolicyPartner.cs index 44eb89271d1..c66aa79b723 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantIdentitySyncPolicyPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantIdentitySyncPolicyPartner.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Display name for the cross-tenant user synchronization policy. Use the name of the partner Azure AD (Azure Active Directory) tenant to easily identify the policy. Optional. + /// Display name for the cross-tenant user synchronization policy. Use the name of the partner Microsoft Entra tenant to easily identify the policy. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -42,7 +42,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Tenant identifier for the partner Azure AD organization. Read-only. + /// Tenant identifier for the partner Microsoft Entra organization. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -88,7 +88,7 @@ public static CrossTenantIdentitySyncPolicyPartner CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantUserSyncInbound.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantUserSyncInbound.cs index fed5f118f16..f39c3b310ab 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantUserSyncInbound.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantUserSyncInbound.cs @@ -51,7 +51,7 @@ public static CrossTenantUserSyncInbound CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncAllowed", n => { IsSyncAllowed = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncAllowed", IsSyncAllowed); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CurrencyColumn.cs b/src/Microsoft.Graph/Generated/Models/CurrencyColumn.cs index 6a78ac084a5..923f0b4be2b 100644 --- a/src/Microsoft.Graph/Generated/Models/CurrencyColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/CurrencyColumn.cs @@ -60,7 +60,7 @@ public static CurrencyColumn CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"locale", n => { Locale = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("locale", Locale); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs b/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs index 02eaa79bc9c..c3d47076201 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs @@ -21,7 +21,7 @@ public CustomExtensionAuthenticationConfiguration AuthenticationConfiguration { set { BackingStore?.Set("authenticationConfiguration", value); } } #endif - /// HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. + /// HTTP connection settings that define how long Microsoft Entra ID can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public CustomExtensionClientConfiguration? ClientConfiguration { @@ -94,7 +94,7 @@ public CustomExtensionEndpointConfiguration EndpointConfiguration { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationConfiguration", n => { AuthenticationConfiguration = n.GetObjectValue(CustomExtensionAuthenticationConfiguration.CreateFromDiscriminatorValue); } }, {"clientConfiguration", n => { ClientConfiguration = n.GetObjectValue(CustomExtensionClientConfiguration.CreateFromDiscriminatorValue); } }, @@ -107,7 +107,7 @@ public CustomExtensionEndpointConfiguration EndpointConfiguration { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("authenticationConfiguration", AuthenticationConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/CustomCalloutExtensionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CustomCalloutExtensionCollectionResponse.cs index 3bd26481c39..32f5601c47f 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomCalloutExtensionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomCalloutExtensionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CustomCalloutExtension.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs index bbf9f51095b..5863653262d 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs @@ -50,7 +50,7 @@ public static CustomExtensionAuthenticationConfiguration CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionCallbackConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionCallbackConfiguration.cs index abe764f735e..c36bd4acd03 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionCallbackConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionCallbackConfiguration.cs @@ -29,7 +29,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. + /// The maximum duration in ISO 8601 format that Microsoft Entra ID will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes. public TimeSpan? TimeoutDuration { get { return BackingStore?.Get("timeoutDuration"); } set { BackingStore?.Set("timeoutDuration", value); } @@ -56,7 +56,7 @@ public static CustomExtensionCallbackConfiguration CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"timeoutDuration", n => { TimeoutDuration = n.GetTimeSpanValue(); } }, @@ -66,7 +66,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteTimeSpanValue("timeoutDuration", TimeoutDuration); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionCalloutInstance.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionCalloutInstance.cs index b51b7e25528..b56ea934286 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionCalloutInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionCalloutInstance.cs @@ -107,7 +107,7 @@ public static CustomExtensionCalloutInstance CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"customExtensionId", n => { CustomExtensionId = n.GetStringValue(); } }, {"detail", n => { Detail = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("customExtensionId", CustomExtensionId); writer.WriteStringValue("detail", Detail); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs index 78860161dd8..3a763d6094a 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The max duration in milliseconds that Azure AD waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. + /// The max duration in milliseconds that Microsoft Entra ID waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000. public int? TimeoutInMilliseconds { get { return BackingStore?.Get("timeoutInMilliseconds"); } set { BackingStore?.Set("timeoutInMilliseconds", value); } @@ -51,7 +51,7 @@ public static CustomExtensionClientConfiguration CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"timeoutInMilliseconds", n => { TimeoutInMilliseconds = n.GetIntValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("timeoutInMilliseconds", TimeoutInMilliseconds); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionData.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionData.cs index 7c718d97d8f..1e27206ffa8 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionData.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionData.cs @@ -53,7 +53,7 @@ public static CustomExtensionData CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs index 4a05b789834..a97899ff408 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs @@ -50,7 +50,7 @@ public static CustomExtensionEndpointConfiguration CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSetting.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSetting.cs index 667cbb62a31..9891c774fba 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSetting.cs @@ -36,7 +36,7 @@ public AccessPackageCustomExtensionStage? Stage { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"customExtension", n => { CustomExtension = n.GetObjectValue(CustomCalloutExtension.CreateFromDiscriminatorValue); } }, {"stage", n => { Stage = n.GetEnumValue(); } }, @@ -46,7 +46,7 @@ public AccessPackageCustomExtensionStage? Stage { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("customExtension", CustomExtension); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSettingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSettingCollectionResponse.cs index b2b43b1ae91..9ca95718504 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSettingCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionStageSettingCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CustomExtensionStageSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinition.cs b/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinition.cs index 1254b197900..b1f4fb9cd71 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinition.cs @@ -116,7 +116,7 @@ public bool? UsePreDefinedValuesOnly { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedValues", n => { AllowedValues = n.GetCollectionOfObjectValues(AllowedValue.CreateFromDiscriminatorValue)?.ToList(); } }, {"attributeSet", n => { AttributeSet = n.GetStringValue(); } }, @@ -133,7 +133,7 @@ public bool? UsePreDefinedValuesOnly { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("allowedValues", AllowedValues); diff --git a/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinitionCollectionResponse.cs index 9f4060822cb..4c615296733 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeValue.cs b/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeValue.cs index 14d75164f6d..a4e5a496990 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeValue.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomSecurityAttributeValue.cs @@ -46,7 +46,7 @@ public static CustomSecurityAttributeValue CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/CustomTimeZone.cs b/src/Microsoft.Graph/Generated/Models/CustomTimeZone.cs index 2b086ee6330..fde30e55039 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomTimeZone.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomTimeZone.cs @@ -56,7 +56,7 @@ public CustomTimeZone() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bias", n => { Bias = n.GetIntValue(); } }, {"daylightOffset", n => { DaylightOffset = n.GetObjectValue(DaylightTimeZoneOffset.CreateFromDiscriminatorValue); } }, @@ -67,7 +67,7 @@ public CustomTimeZone() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("bias", Bias); diff --git a/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs index d3ab387f46a..c3480649df9 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomTrainingSetting.cs @@ -84,7 +84,7 @@ public CustomTrainingSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedTo", n => { AssignedTo = n.GetCollectionOfEnumValues()?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public CustomTrainingSetting() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("assignedTo", AssignedTo); diff --git a/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs b/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs index c7b71d16983..18a790dcc8e 100644 --- a/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/DataPolicyOperation.cs @@ -65,7 +65,7 @@ public string UserId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"progress", n => { Progress = n.GetDoubleValue(); } }, @@ -79,7 +79,7 @@ public string UserId { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DataPolicyOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DataPolicyOperationCollectionResponse.cs index 546fcb8d8c5..40f576a9367 100644 --- a/src/Microsoft.Graph/Generated/Models/DataPolicyOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DataPolicyOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DataPolicyOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DataSubject.cs b/src/Microsoft.Graph/Generated/Models/DataSubject.cs index de87aede1ed..da8ada23f44 100644 --- a/src/Microsoft.Graph/Generated/Models/DataSubject.cs +++ b/src/Microsoft.Graph/Generated/Models/DataSubject.cs @@ -102,7 +102,7 @@ public static DataSubject CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"email", n => { Email = n.GetStringValue(); } }, {"firstName", n => { FirstName = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email", Email); writer.WriteStringValue("firstName", FirstName); diff --git a/src/Microsoft.Graph/Generated/Models/DateTimeColumn.cs b/src/Microsoft.Graph/Generated/Models/DateTimeColumn.cs index ce1e550ed0d..180a3d67ea4 100644 --- a/src/Microsoft.Graph/Generated/Models/DateTimeColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/DateTimeColumn.cs @@ -74,7 +74,7 @@ public static DateTimeColumn CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayAs", n => { DisplayAs = n.GetStringValue(); } }, {"format", n => { Format = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayAs", DisplayAs); writer.WriteStringValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/DateTimeTimeZone.cs b/src/Microsoft.Graph/Generated/Models/DateTimeTimeZone.cs index 5ff8509a289..af6790ab0da 100644 --- a/src/Microsoft.Graph/Generated/Models/DateTimeTimeZone.cs +++ b/src/Microsoft.Graph/Generated/Models/DateTimeTimeZone.cs @@ -74,7 +74,7 @@ public static DateTimeTimeZone CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dateTime", n => { DateTime = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("dateTime", DateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/DaylightTimeZoneOffset.cs b/src/Microsoft.Graph/Generated/Models/DaylightTimeZoneOffset.cs index 43c5aa8b1a3..c1ca647e308 100644 --- a/src/Microsoft.Graph/Generated/Models/DaylightTimeZoneOffset.cs +++ b/src/Microsoft.Graph/Generated/Models/DaylightTimeZoneOffset.cs @@ -28,7 +28,7 @@ public DaylightTimeZoneOffset() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"daylightBias", n => { DaylightBias = n.GetIntValue(); } }, }; @@ -37,7 +37,7 @@ public DaylightTimeZoneOffset() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("daylightBias", DaylightBias); diff --git a/src/Microsoft.Graph/Generated/Models/DefaultColumnValue.cs b/src/Microsoft.Graph/Generated/Models/DefaultColumnValue.cs index 2ab3d97d5cb..faf02de3779 100644 --- a/src/Microsoft.Graph/Generated/Models/DefaultColumnValue.cs +++ b/src/Microsoft.Graph/Generated/Models/DefaultColumnValue.cs @@ -74,7 +74,7 @@ public static DefaultColumnValue CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"formula", n => { Formula = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("formula", Formula); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtection.cs b/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtection.cs index 97e864577b2..7ff1fcd38e1 100644 --- a/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtection.cs @@ -140,7 +140,7 @@ public DefaultManagedAppProtection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDataEncryptionType", n => { AppDataEncryptionType = n.GetEnumValue(); } }, {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -160,7 +160,7 @@ public DefaultManagedAppProtection() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("appDataEncryptionType", AppDataEncryptionType); diff --git a/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtectionCollectionResponse.cs index 00357ee6034..c327c731d71 100644 --- a/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DefaultManagedAppProtectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DefaultManagedAppProtection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs b/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs index 18145f1afd1..7ddceb40c95 100644 --- a/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs +++ b/src/Microsoft.Graph/Generated/Models/DefaultUserRolePermissions.cs @@ -85,7 +85,7 @@ public static DefaultUserRolePermissions CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedToCreateApps", n => { AllowedToCreateApps = n.GetBoolValue(); } }, {"allowedToCreateSecurityGroups", n => { AllowedToCreateSecurityGroups = n.GetBoolValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowedToCreateApps", AllowedToCreateApps); writer.WriteBoolValue("allowedToCreateSecurityGroups", AllowedToCreateSecurityGroups); diff --git a/src/Microsoft.Graph/Generated/Models/DefenderDetectedMalwareActions.cs b/src/Microsoft.Graph/Generated/Models/DefenderDetectedMalwareActions.cs index 4d848549333..b43428a6cbd 100644 --- a/src/Microsoft.Graph/Generated/Models/DefenderDetectedMalwareActions.cs +++ b/src/Microsoft.Graph/Generated/Models/DefenderDetectedMalwareActions.cs @@ -69,7 +69,7 @@ public static DefenderDetectedMalwareActions CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"highSeverity", n => { HighSeverity = n.GetEnumValue(); } }, {"lowSeverity", n => { LowSeverity = n.GetEnumValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("highSeverity", HighSeverity); writer.WriteEnumValue("lowSeverity", LowSeverity); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignment.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignment.cs index f0dc06c7b24..1a070d76198 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignment.cs @@ -60,7 +60,7 @@ public DelegatedAdminAccessAssignmentStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessContainer", n => { AccessContainer = n.GetObjectValue(DelegatedAdminAccessContainer.CreateFromDiscriminatorValue); } }, {"accessDetails", n => { AccessDetails = n.GetObjectValue(DelegatedAdminAccessDetails.CreateFromDiscriminatorValue); } }, @@ -73,7 +73,7 @@ public DelegatedAdminAccessAssignmentStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("accessContainer", AccessContainer); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignmentCollectionResponse.cs index 71a1f7aba35..f333b505e82 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedAdminAccessAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessContainer.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessContainer.cs index 86d92d87069..5ee576f56f1 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessContainer.cs @@ -7,7 +7,7 @@ using System; namespace Microsoft.Graph.Models { public class DelegatedAdminAccessContainer : IAdditionalDataHolder, IBackedModel, IParsable { - /// The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of an Azure AD security group in the Microsoft partner's tenant. + /// The identifier of the access container (for example, a security group). For 'securityGroup' access containers, this must be a valid ID of a Microsoft Entra security group in the Microsoft partner's tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AccessContainerId { @@ -65,7 +65,7 @@ public static DelegatedAdminAccessContainer CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accessContainerId", n => { AccessContainerId = n.GetStringValue(); } }, {"accessContainerType", n => { AccessContainerType = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("accessContainerId", AccessContainerId); writer.WriteEnumValue("accessContainerType", AccessContainerType); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessDetails.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessDetails.cs index ebc9cce02b0..994e840fa8e 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminAccessDetails.cs @@ -60,7 +60,7 @@ public static DelegatedAdminAccessDetails CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"unifiedRoles", n => { UnifiedRoles = n.GetCollectionOfObjectValues(UnifiedRole.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("unifiedRoles", UnifiedRoles); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomer.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomer.cs index 6468ef2722c..6c40fef05ba 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomer.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomer.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class DelegatedAdminCustomer : Entity, IParsable { - /// The Azure AD display name of the customer tenant. Read-only. Supports $orderby. + /// The Microsoft Entra ID display name of the customer tenant. Read-only. Supports $orderby. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -34,7 +34,7 @@ public List ServiceManagementDetails { set { BackingStore?.Set("serviceManagementDetails", value); } } #endif - /// The Azure AD-assigned tenant ID of the customer. Read-only. + /// The Microsoft Entra ID-assigned tenant ID of the customer. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -59,7 +59,7 @@ public string TenantId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"serviceManagementDetails", n => { ServiceManagementDetails = n.GetCollectionOfObjectValues(DelegatedAdminServiceManagementDetail.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public string TenantId { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomerCollectionResponse.cs index 2379e7be27b..d849fe721c7 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminCustomerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedAdminCustomer.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs index c1c84193026..4cdb2089270 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs @@ -39,6 +39,11 @@ public DateTimeOffset? ActivatedDateTime { get { return BackingStore?.Get("activatedDateTime"); } set { BackingStore?.Set("activatedDateTime", value); } } + /// The autoExtendDuration property + public TimeSpan? AutoExtendDuration { + get { return BackingStore?.Get("autoExtendDuration"); } + set { BackingStore?.Set("autoExtendDuration", value); } + } /// The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } @@ -135,11 +140,12 @@ public DelegatedAdminRelationshipStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessAssignments", n => { AccessAssignments = n.GetCollectionOfObjectValues(DelegatedAdminAccessAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"accessDetails", n => { AccessDetails = n.GetObjectValue(DelegatedAdminAccessDetails.CreateFromDiscriminatorValue); } }, {"activatedDateTime", n => { ActivatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"autoExtendDuration", n => { AutoExtendDuration = n.GetTimeSpanValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"customer", n => { Customer = n.GetObjectValue(DelegatedAdminRelationshipCustomerParticipant.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -155,12 +161,13 @@ public DelegatedAdminRelationshipStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("accessAssignments", AccessAssignments); writer.WriteObjectValue("accessDetails", AccessDetails); writer.WriteDateTimeOffsetValue("activatedDateTime", ActivatedDateTime); + writer.WriteTimeSpanValue("autoExtendDuration", AutoExtendDuration); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("customer", Customer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCollectionResponse.cs index 933fcb1794d..6e90162bdcf 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedAdminRelationship.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs index b6640036b98..e40e60d1cda 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The display name of the customer tenant as set by Azure AD. Read-only + /// The display name of the customer tenant as set by Microsoft Entra ID. Read-only #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -42,7 +42,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The Azure AD-assigned tenant ID of the customer tenant. + /// The Microsoft Entra ID-assigned tenant ID of the customer tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -74,7 +74,7 @@ public static DelegatedAdminRelationshipCustomerParticipant CreateFromDiscrimina /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperation.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperation.cs index 4f6ca909637..4a7f14ee40d 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperation.cs @@ -51,7 +51,7 @@ public LongRunningOperationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"data", n => { Data = n.GetStringValue(); } }, @@ -64,7 +64,7 @@ public LongRunningOperationStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperationCollectionResponse.cs index fd036867d75..ee73d43e1d6 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedAdminRelationshipOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequest.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequest.cs index c6065c7e912..61214a2e200 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequest.cs @@ -37,7 +37,7 @@ public DelegatedAdminRelationshipRequestStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"action", n => { Action = n.GetEnumValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -49,7 +49,7 @@ public DelegatedAdminRelationshipRequestStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("action", Action); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestCollectionResponse.cs index 68def4a5bbe..e4b0a6a58db 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationshipRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedAdminRelationshipRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetail.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetail.cs index 10a1544ef4a..68c901aba8d 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetail.cs @@ -45,7 +45,7 @@ public string ServiceName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"serviceManagementUrl", n => { ServiceManagementUrl = n.GetStringValue(); } }, {"serviceName", n => { ServiceName = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string ServiceName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("serviceManagementUrl", ServiceManagementUrl); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetailCollectionResponse.cs index 5aad06d1825..c330f889c56 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetailCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminServiceManagementDetailCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedAdminServiceManagementDetail.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs b/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs index 90e7dbc5dbf..450499c955c 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassification.cs @@ -50,7 +50,7 @@ public string PermissionName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"classification", n => { Classification = n.GetEnumValue(); } }, {"permissionId", n => { PermissionId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public string PermissionName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("classification", Classification); diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassificationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassificationCollectionResponse.cs index 1f9bfeed0bb..86ef3ed3cc6 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassificationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedPermissionClassificationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DelegatedPermissionClassification.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeleteUserFromSharedAppleDeviceActionResult.cs b/src/Microsoft.Graph/Generated/Models/DeleteUserFromSharedAppleDeviceActionResult.cs index 4867fe29f3d..07f2083ee52 100644 --- a/src/Microsoft.Graph/Generated/Models/DeleteUserFromSharedAppleDeviceActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/DeleteUserFromSharedAppleDeviceActionResult.cs @@ -34,7 +34,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, }; @@ -43,7 +43,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userPrincipalName", UserPrincipalName); diff --git a/src/Microsoft.Graph/Generated/Models/Deleted.cs b/src/Microsoft.Graph/Generated/Models/Deleted.cs index 51292dc0e51..c12f98e44d3 100644 --- a/src/Microsoft.Graph/Generated/Models/Deleted.cs +++ b/src/Microsoft.Graph/Generated/Models/Deleted.cs @@ -60,7 +60,7 @@ public static Deleted CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"state", n => { State = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("state", State); diff --git a/src/Microsoft.Graph/Generated/Models/DeletedItemContainer.cs b/src/Microsoft.Graph/Generated/Models/DeletedItemContainer.cs index d1b478c2758..0d5b71ad961 100644 --- a/src/Microsoft.Graph/Generated/Models/DeletedItemContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/DeletedItemContainer.cs @@ -32,7 +32,7 @@ public List Workflows { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"workflows", n => { Workflows = n.GetCollectionOfObjectValues(Workflow.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Workflows { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("workflows", Workflows); diff --git a/src/Microsoft.Graph/Generated/Models/DeletedTeam.cs b/src/Microsoft.Graph/Generated/Models/DeletedTeam.cs index 7dbb1a3d909..14fd3765515 100644 --- a/src/Microsoft.Graph/Generated/Models/DeletedTeam.cs +++ b/src/Microsoft.Graph/Generated/Models/DeletedTeam.cs @@ -31,7 +31,7 @@ public List Channels { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channels", n => { Channels = n.GetCollectionOfObjectValues(Channel.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Channels { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("channels", Channels); diff --git a/src/Microsoft.Graph/Generated/Models/DeletedTeamCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeletedTeamCollectionResponse.cs index 4a9692618c0..8254f45fe94 100644 --- a/src/Microsoft.Graph/Generated/Models/DeletedTeamCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeletedTeamCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeletedTeam.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DetailsInfo.cs b/src/Microsoft.Graph/Generated/Models/DetailsInfo.cs index b28f3166ef8..366b8688e6e 100644 --- a/src/Microsoft.Graph/Generated/Models/DetailsInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/DetailsInfo.cs @@ -46,7 +46,7 @@ public static DetailsInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/DetectedApp.cs b/src/Microsoft.Graph/Generated/Models/DetectedApp.cs index bddb2b80c41..cbbd1e52af5 100644 --- a/src/Microsoft.Graph/Generated/Models/DetectedApp.cs +++ b/src/Microsoft.Graph/Generated/Models/DetectedApp.cs @@ -91,7 +91,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceCount", n => { DeviceCount = n.GetIntValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public string Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("deviceCount", DeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/DetectedAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DetectedAppCollectionResponse.cs index 60f13814851..aa7ba678589 100644 --- a/src/Microsoft.Graph/Generated/Models/DetectedAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DetectedAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DetectedApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Device.cs b/src/Microsoft.Graph/Generated/Models/Device.cs index 75e4ac652d4..70a5597699e 100644 --- a/src/Microsoft.Graph/Generated/Models/Device.cs +++ b/src/Microsoft.Graph/Generated/Models/Device.cs @@ -303,7 +303,7 @@ public List TransitiveMemberOf { set { BackingStore?.Set("transitiveMemberOf", value); } } #endif - /// Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. + /// Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more details, see Introduction to device management in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TrustType { @@ -334,7 +334,7 @@ public Device() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountEnabled", n => { AccountEnabled = n.GetBoolValue(); } }, {"alternativeSecurityIds", n => { AlternativeSecurityIds = n.GetCollectionOfObjectValues(AlternativeSecurityId.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -370,7 +370,7 @@ public Device() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("accountEnabled", AccountEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceActionResult.cs b/src/Microsoft.Graph/Generated/Models/DeviceActionResult.cs index 2bebbcd5344..bcbadd22488 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceActionResult.cs @@ -87,7 +87,7 @@ public static DeviceActionResult CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"actionName", n => { ActionName = n.GetStringValue(); } }, {"actionState", n => { ActionState = n.GetEnumValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("actionName", ActionName); writer.WriteEnumValue("actionState", ActionState); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentTarget.cs b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentTarget.cs index dd81ad4ec77..341f62366af 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementAssignmentTarget.cs @@ -57,7 +57,7 @@ public static DeviceAndAppManagementAssignmentTarget CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -66,7 +66,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementData.cs b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementData.cs index 4ab1004ceff..83519eadba0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementData.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementData.cs @@ -63,7 +63,7 @@ public static DeviceAndAppManagementData CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetByteArrayValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("content", Content); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignment.cs index f67046c867f..71df8fcf6a4 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignment.cs @@ -34,7 +34,7 @@ public List Members { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"members", n => { Members = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -43,7 +43,7 @@ public List Members { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("members", Members); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignmentCollectionResponse.cs index 3e159649e64..91e75f9a646 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceAndAppManagementRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleDefinition.cs index b835838f30f..fde69f9646c 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAndAppManagementRoleDefinition.cs @@ -26,7 +26,7 @@ public DeviceAndAppManagementRoleDefinition() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public DeviceAndAppManagementRoleDefinition() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs b/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs index 220da7d8530..1c0bfa9993e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceAppManagement.cs @@ -245,7 +245,7 @@ public List WindowsInformationProtectionPoli /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"androidManagedAppProtections", n => { AndroidManagedAppProtections = n.GetCollectionOfObjectValues(AndroidManagedAppProtection.CreateFromDiscriminatorValue)?.ToList(); } }, {"defaultManagedAppProtections", n => { DefaultManagedAppProtections = n.GetCollectionOfObjectValues(DefaultManagedAppProtection.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -271,7 +271,7 @@ public List WindowsInformationProtectionPoli /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("androidManagedAppProtections", AndroidManagedAppProtections); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCategory.cs b/src/Microsoft.Graph/Generated/Models/DeviceCategory.cs index f42f7097b0d..817697f5490 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCategory.cs @@ -48,7 +48,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -58,7 +58,7 @@ public string DisplayName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCategoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceCategoryCollectionResponse.cs index c807eafcd17..1656db2376c 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCategoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCategoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceCollectionResponse.cs index f9c6809438a..5f5f05050b4 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Device.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItem.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItem.cs index 9e8e03cfc79..2bd2ddfe975 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItem.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItem.cs @@ -58,7 +58,7 @@ public string NotificationTemplateId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actionType", n => { ActionType = n.GetEnumValue(); } }, {"gracePeriodHours", n => { GracePeriodHours = n.GetIntValue(); } }, @@ -70,7 +70,7 @@ public string NotificationTemplateId { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("actionType", ActionType); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItemCollectionResponse.cs index f2052303d30..7c01fae95ee 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceActionItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceComplianceActionItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceOverview.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceOverview.cs index 09c8ef49cd8..a45a47e4a67 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceOverview.cs @@ -52,7 +52,7 @@ public int? SuccessCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationVersion", n => { ConfigurationVersion = n.GetIntValue(); } }, {"errorCount", n => { ErrorCount = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public int? SuccessCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationVersion", ConfigurationVersion); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs index c9aac998575..031a637d9f1 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatus.cs @@ -88,7 +88,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"complianceGracePeriodExpirationDateTime", n => { ComplianceGracePeriodExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"deviceDisplayName", n => { DeviceDisplayName = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("complianceGracePeriodExpirationDateTime", ComplianceGracePeriodExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatusCollectionResponse.cs index 024acb30884..a4ff581efc7 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceDeviceStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs index 6d0d50369e5..6fd40d5937f 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicy.cs @@ -172,7 +172,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -192,7 +192,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignment.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignment.cs index a316b2390ee..835bee180a4 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignmentCollectionResponse.cs index bdbecbcaf53..a435c62b121 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyCollectionResponse.cs index a3a62c64e97..0577a4aca7c 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyDeviceStateSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyDeviceStateSummary.cs index 55d59680005..e2d0931263e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyDeviceStateSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyDeviceStateSummary.cs @@ -62,7 +62,7 @@ public int? UnknownDeviceCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"compliantDeviceCount", n => { CompliantDeviceCount = n.GetIntValue(); } }, {"configManagerCount", n => { ConfigManagerCount = n.GetIntValue(); } }, @@ -79,7 +79,7 @@ public int? UnknownDeviceCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("compliantDeviceCount", CompliantDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingState.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingState.cs index 27e6d356858..82dd64198dc 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingState.cs @@ -199,7 +199,7 @@ public static DeviceCompliancePolicySettingState CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"currentValue", n => { CurrentValue = n.GetStringValue(); } }, {"errorCode", n => { ErrorCode = n.GetLongValue(); } }, @@ -220,7 +220,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("currentValue", CurrentValue); writer.WriteLongValue("errorCode", ErrorCode); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs index 7bb5827fb0e..26d6474277e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummary.cs @@ -102,7 +102,7 @@ public int? UnknownDeviceCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"compliantDeviceCount", n => { CompliantDeviceCount = n.GetIntValue(); } }, {"conflictDeviceCount", n => { ConflictDeviceCount = n.GetIntValue(); } }, @@ -121,7 +121,7 @@ public int? UnknownDeviceCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("compliantDeviceCount", CompliantDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummaryCollectionResponse.cs index 2785f9c87ae..300061e3c52 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicySettingStateSummaryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicySettingStateSummary.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyState.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyState.cs index 3745e1e287f..36ca1a696bf 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyState.cs @@ -68,7 +68,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"platformType", n => { PlatformType = n.GetEnumValue(); } }, @@ -82,7 +82,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyStateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyStateCollectionResponse.cs index 7bcc59def04..b2ddbb44f58 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyStateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceCompliancePolicyStateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyState.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRule.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRule.cs index 468883b8fd7..eece6bcd61e 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRule.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRule.cs @@ -48,7 +48,7 @@ public List ScheduledActionConfigurations { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ruleName", n => { RuleName = n.GetStringValue(); } }, {"scheduledActionConfigurations", n => { ScheduledActionConfigurations = n.GetCollectionOfObjectValues(DeviceComplianceActionItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -58,7 +58,7 @@ public List ScheduledActionConfigurations { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("ruleName", RuleName); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRuleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRuleCollectionResponse.cs index 56fd20ea87e..1429254daaf 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRuleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceScheduledActionForRuleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingState.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingState.cs index 8da9b7e0a0c..64f7cdbe7b2 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingState.cs @@ -156,7 +156,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"complianceGracePeriodExpirationDateTime", n => { ComplianceGracePeriodExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"deviceId", n => { DeviceId = n.GetStringValue(); } }, @@ -175,7 +175,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("complianceGracePeriodExpirationDateTime", ComplianceGracePeriodExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingStateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingStateCollectionResponse.cs index 3c2c9d0da1a..86ffb8c432a 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingStateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceSettingStateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceComplianceSettingState.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserOverview.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserOverview.cs index 6c951c369be..358ee63e9d3 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserOverview.cs @@ -52,7 +52,7 @@ public int? SuccessCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationVersion", n => { ConfigurationVersion = n.GetIntValue(); } }, {"errorCount", n => { ErrorCount = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public int? SuccessCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationVersion", ConfigurationVersion); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs index b1a8d267444..d61be1e1ed9 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatus.cs @@ -60,7 +60,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"devicesCount", n => { DevicesCount = n.GetIntValue(); } }, {"lastReportedDateTime", n => { LastReportedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("devicesCount", DevicesCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatusCollectionResponse.cs index 5e345241c87..cfe7bcb20e5 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceComplianceUserStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceComplianceUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs index 5a280033820..67d4e39a272 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfiguration.cs @@ -176,7 +176,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -195,7 +195,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignment.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignment.cs index b0255652a74..c6594d12505 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignmentCollectionResponse.cs index 34e18ca8db1..464f5f83db5 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationCollectionResponse.cs index 929153a2395..639a2a6c5c1 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceOverview.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceOverview.cs index a01a9f37be0..a36cf575161 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceOverview.cs @@ -52,7 +52,7 @@ public int? SuccessCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationVersion", n => { ConfigurationVersion = n.GetIntValue(); } }, {"errorCount", n => { ErrorCount = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public int? SuccessCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationVersion", ConfigurationVersion); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStateSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStateSummary.cs index f42e1e855be..16c3b7cdd8a 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStateSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStateSummary.cs @@ -52,7 +52,7 @@ public int? UnknownDeviceCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"compliantDeviceCount", n => { CompliantDeviceCount = n.GetIntValue(); } }, {"conflictDeviceCount", n => { ConflictDeviceCount = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public int? UnknownDeviceCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("compliantDeviceCount", CompliantDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs index e2a163bd0b1..adc3d71057f 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatus.cs @@ -88,7 +88,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"complianceGracePeriodExpirationDateTime", n => { ComplianceGracePeriodExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"deviceDisplayName", n => { DeviceDisplayName = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("complianceGracePeriodExpirationDateTime", ComplianceGracePeriodExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatusCollectionResponse.cs index 910ad06b22d..74e12b20f81 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationDeviceStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationSettingState.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationSettingState.cs index 2e85d425c47..d2ea80ce250 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationSettingState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationSettingState.cs @@ -199,7 +199,7 @@ public static DeviceConfigurationSettingState CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"currentValue", n => { CurrentValue = n.GetStringValue(); } }, {"errorCode", n => { ErrorCode = n.GetLongValue(); } }, @@ -220,7 +220,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("currentValue", CurrentValue); writer.WriteLongValue("errorCode", ErrorCode); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationState.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationState.cs index 9eb3106f12c..0a2ba6a6b04 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationState.cs @@ -68,7 +68,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"platformType", n => { PlatformType = n.GetEnumValue(); } }, @@ -82,7 +82,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationStateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationStateCollectionResponse.cs index 02236246ba2..4d806f6e228 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationStateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationStateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationState.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserOverview.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserOverview.cs index e83c6736d4e..8c62752eba7 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserOverview.cs @@ -52,7 +52,7 @@ public int? SuccessCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationVersion", n => { ConfigurationVersion = n.GetIntValue(); } }, {"errorCount", n => { ErrorCount = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public int? SuccessCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationVersion", ConfigurationVersion); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs index 679ff70b26a..6a103abbe51 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatus.cs @@ -60,7 +60,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"devicesCount", n => { DevicesCount = n.GetIntValue(); } }, {"lastReportedDateTime", n => { LastReportedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public string UserPrincipalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("devicesCount", DevicesCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatusCollectionResponse.cs index a42a8fb8c13..46b3357b775 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceConfigurationUserStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceDetail.cs b/src/Microsoft.Graph/Generated/Models/DeviceDetail.cs index 8b70f53cb83..49910093357 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceDetail.cs @@ -126,7 +126,7 @@ public static DeviceDetail CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"browser", n => { Browser = n.GetStringValue(); } }, {"deviceId", n => { DeviceId = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("browser", Browser); writer.WriteStringValue("deviceId", DeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfiguration.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfiguration.cs index b4ac40c3067..9c487a8c52a 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfiguration.cs @@ -88,7 +88,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -103,7 +103,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfigurationCollectionResponse.cs index c17af4e3da1..ca3f4a0a3b0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentLimitConfiguration.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentLimitConfiguration.cs index 65ecd5c5eb2..cc49b2c1121 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentLimitConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentLimitConfiguration.cs @@ -31,7 +31,7 @@ public DeviceEnrollmentLimitConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"limit", n => { Limit = n.GetIntValue(); } }, }; @@ -40,7 +40,7 @@ public DeviceEnrollmentLimitConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("limit", Limit); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestriction.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestriction.cs index b31fa7fb9b6..78e220957d9 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestriction.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestriction.cs @@ -87,7 +87,7 @@ public static DeviceEnrollmentPlatformRestriction CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"osMaximumVersion", n => { OsMaximumVersion = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("osMaximumVersion", OsMaximumVersion); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestrictionsConfiguration.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestrictionsConfiguration.cs index e890812a8cb..f6c571ef8d5 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestrictionsConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentPlatformRestrictionsConfiguration.cs @@ -96,7 +96,7 @@ public DeviceEnrollmentPlatformRestrictionsConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"androidRestriction", n => { AndroidRestriction = n.GetObjectValue(DeviceEnrollmentPlatformRestriction.CreateFromDiscriminatorValue); } }, {"iosRestriction", n => { IosRestriction = n.GetObjectValue(DeviceEnrollmentPlatformRestriction.CreateFromDiscriminatorValue); } }, @@ -109,7 +109,7 @@ public DeviceEnrollmentPlatformRestrictionsConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("androidRestriction", AndroidRestriction); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentWindowsHelloForBusinessConfiguration.cs b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentWindowsHelloForBusinessConfiguration.cs index 39f9ebccfa4..418bbcd6a80 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentWindowsHelloForBusinessConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceEnrollmentWindowsHelloForBusinessConfiguration.cs @@ -86,7 +86,7 @@ public DeviceEnrollmentWindowsHelloForBusinessConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"enhancedBiometricsState", n => { EnhancedBiometricsState = n.GetEnumValue(); } }, {"pinExpirationInDays", n => { PinExpirationInDays = n.GetIntValue(); } }, @@ -106,7 +106,7 @@ public DeviceEnrollmentWindowsHelloForBusinessConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("enhancedBiometricsState", EnhancedBiometricsState); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceExchangeAccessStateSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceExchangeAccessStateSummary.cs index 436636e2560..7b380ddead3 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceExchangeAccessStateSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceExchangeAccessStateSummary.cs @@ -74,7 +74,7 @@ public static DeviceExchangeAccessStateSummary CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedDeviceCount", n => { AllowedDeviceCount = n.GetIntValue(); } }, {"blockedDeviceCount", n => { BlockedDeviceCount = n.GetIntValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("allowedDeviceCount", AllowedDeviceCount); writer.WriteIntValue("blockedDeviceCount", BlockedDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceGeoLocation.cs b/src/Microsoft.Graph/Generated/Models/DeviceGeoLocation.cs index 72f7c4469e7..8d34b8cf401 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceGeoLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceGeoLocation.cs @@ -89,7 +89,7 @@ public static DeviceGeoLocation CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"altitude", n => { Altitude = n.GetDoubleValue(); } }, {"heading", n => { Heading = n.GetDoubleValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("altitude", Altitude); writer.WriteDoubleValue("heading", Heading); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceHealthAttestationState.cs b/src/Microsoft.Graph/Generated/Models/DeviceHealthAttestationState.cs index b7128f9762a..28601ffecc3 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceHealthAttestationState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceHealthAttestationState.cs @@ -467,7 +467,7 @@ public static DeviceHealthAttestationState CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attestationIdentityKey", n => { AttestationIdentityKey = n.GetStringValue(); } }, {"bitLockerStatus", n => { BitLockerStatus = n.GetStringValue(); } }, @@ -508,7 +508,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("attestationIdentityKey", AttestationIdentityKey); writer.WriteStringValue("bitLockerStatus", BitLockerStatus); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceInstallState.cs b/src/Microsoft.Graph/Generated/Models/DeviceInstallState.cs index 3055c237f9a..1bdad3abcac 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceInstallState.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceInstallState.cs @@ -114,7 +114,7 @@ public string UserName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceId", n => { DeviceId = n.GetStringValue(); } }, {"deviceName", n => { DeviceName = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public string UserName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("deviceId", DeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceInstallStateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceInstallStateCollectionResponse.cs index c19ea4e7dfc..da5651df508 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceInstallStateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceInstallStateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceInstallState.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs index 6b7961708aa..a8e43343ccc 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs @@ -78,7 +78,7 @@ public AppLogUploadState? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"enrolledByUser", n => { EnrolledByUser = n.GetStringValue(); } }, {"expirationDateTimeUTC", n => { ExpirationDateTimeUTC = n.GetDateTimeOffsetValue(); } }, @@ -94,7 +94,7 @@ public AppLogUploadState? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("enrolledByUser", EnrolledByUser); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponseCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponseCollectionResponse.cs index 1b0a8e1204f..1dbbf7d9b1f 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponseCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponseCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceLogCollectionResponse.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs index 91d34c1d7c0..ba3366a0959 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagement.cs @@ -898,7 +898,7 @@ public Microsoft.Graph.Models.WindowsMalwareOverview WindowsMalwareOverview { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applePushNotificationCertificate", n => { ApplePushNotificationCertificate = n.GetObjectValue(Microsoft.Graph.Models.ApplePushNotificationCertificate.CreateFromDiscriminatorValue); } }, {"auditEvents", n => { AuditEvents = n.GetCollectionOfObjectValues(AuditEvent.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -970,7 +970,7 @@ public Microsoft.Graph.Models.WindowsMalwareOverview WindowsMalwareOverview { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applePushNotificationCertificate", ApplePushNotificationCertificate); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnector.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnector.cs index e2964652ced..d083773a210 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnector.cs @@ -119,7 +119,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"connectorServerName", n => { ConnectorServerName = n.GetStringValue(); } }, {"exchangeAlias", n => { ExchangeAlias = n.GetStringValue(); } }, @@ -136,7 +136,7 @@ public string Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("connectorServerName", ConnectorServerName); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorCollectionResponse.cs index d50a8d3872f..aa053a7d911 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExchangeConnectorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceManagementExchangeConnector.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJob.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJob.cs index ea0e302289e..b9c9dde344d 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJob.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJob.cs @@ -115,7 +115,7 @@ public string Url { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"filter", n => { Filter = n.GetStringValue(); } }, @@ -133,7 +133,7 @@ public string Url { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJobCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJobCollectionResponse.cs index 5a7a03e27a5..5644b7b7262 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJobCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementExportJobCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceManagementExportJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartner.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartner.cs index 6e4942802d2..442a4d39590 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartner.cs @@ -92,7 +92,7 @@ public DateTimeOffset? WhenPartnerDevicesWillBeRemovedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"groupsRequiringPartnerEnrollment", n => { GroupsRequiringPartnerEnrollment = n.GetCollectionOfObjectValues(DeviceManagementPartnerAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -109,7 +109,7 @@ public DateTimeOffset? WhenPartnerDevicesWillBeRemovedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAssignment.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAssignment.cs index 866a6f87c90..54bb5d206e9 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerAssignment.cs @@ -63,7 +63,7 @@ public static DeviceManagementPartnerAssignment CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerCollectionResponse.cs index 5fb59117ae2..122ad60b613 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementPartnerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceManagementPartner.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementReports.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementReports.cs index df742035340..07fec826dd3 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementReports.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementReports.cs @@ -34,7 +34,7 @@ public List ExportJobs { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"exportJobs", n => { ExportJobs = n.GetCollectionOfObjectValues(DeviceManagementExportJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -43,7 +43,7 @@ public List ExportJobs { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("exportJobs", ExportJobs); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementSettings.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementSettings.cs index d88bf82be41..6c1dc118777 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementSettings.cs @@ -61,7 +61,7 @@ public static DeviceManagementSettings CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceComplianceCheckinThresholdDays", n => { DeviceComplianceCheckinThresholdDays = n.GetIntValue(); } }, {"isScheduledActionEnabled", n => { IsScheduledActionEnabled = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceComplianceCheckinThresholdDays", DeviceComplianceCheckinThresholdDays); writer.WriteBoolValue("isScheduledActionEnabled", IsScheduledActionEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs index 94af14e8ca4..eb01c752fdd 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs @@ -43,7 +43,7 @@ public DateTimeOffset? EventDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"correlationId", n => { CorrelationId = n.GetStringValue(); } }, {"eventDateTime", n => { EventDateTime = n.GetDateTimeOffsetValue(); } }, @@ -53,7 +53,7 @@ public DateTimeOffset? EventDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("correlationId", CorrelationId); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEventCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEventCollectionResponse.cs index c361a4755e9..84b939378ad 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEventCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEventCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DeviceManagementTroubleshootingEvent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs b/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs index 701d17d9412..5136409c3da 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceOperatingSystemSummary.cs @@ -109,7 +109,7 @@ public static DeviceOperatingSystemSummary CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"androidCorporateWorkProfileCount", n => { AndroidCorporateWorkProfileCount = n.GetIntValue(); } }, {"androidCount", n => { AndroidCount = n.GetIntValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("androidCorporateWorkProfileCount", AndroidCorporateWorkProfileCount); writer.WriteIntValue("androidCount", AndroidCount); diff --git a/src/Microsoft.Graph/Generated/Models/DeviceProtectionOverview.cs b/src/Microsoft.Graph/Generated/Models/DeviceProtectionOverview.cs index 6a72cc5efe2..2d5a972e4c4 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceProtectionOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceProtectionOverview.cs @@ -104,7 +104,7 @@ public static DeviceProtectionOverview CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cleanDeviceCount", n => { CleanDeviceCount = n.GetIntValue(); } }, {"criticalFailuresDeviceCount", n => { CriticalFailuresDeviceCount = n.GetIntValue(); } }, @@ -124,7 +124,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("cleanDeviceCount", CleanDeviceCount); writer.WriteIntValue("criticalFailuresDeviceCount", CriticalFailuresDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/Dictionary.cs b/src/Microsoft.Graph/Generated/Models/Dictionary.cs index 8c28e287d8f..f6c3ac2a66c 100644 --- a/src/Microsoft.Graph/Generated/Models/Dictionary.cs +++ b/src/Microsoft.Graph/Generated/Models/Dictionary.cs @@ -50,7 +50,7 @@ public static Dictionary CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs b/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs index 321600c203c..ca925a6b575 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs @@ -11,7 +11,7 @@ public DateTimeOffset? ActivityDateTime { get { return BackingStore?.Get("activityDateTime"); } set { BackingStore?.Set("activityDateTime", value); } } - /// Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. Supports $filter (eq, startswith). + /// Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Microsoft Entra audit log categories and activities. Supports $filter (eq, startswith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ActivityDisplayName { @@ -39,7 +39,7 @@ public List AdditionalDetails { set { BackingStore?.Set("additionalDetails", value); } } #endif - /// Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Azure AD audit log categories and activities. + /// Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Microsoft Entra audit log categories and activities. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Category { @@ -153,7 +153,7 @@ public List TargetResources { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activityDateTime", n => { ActivityDateTime = n.GetDateTimeOffsetValue(); } }, {"activityDisplayName", n => { ActivityDisplayName = n.GetStringValue(); } }, @@ -172,7 +172,7 @@ public List TargetResources { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("activityDateTime", ActivityDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs index bfb38dbfd21..6908110459e 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryAuditCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryAudit.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs b/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs index 379e42097e4..32fb59fb4c1 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs @@ -74,7 +74,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"discoverabilities", n => { Discoverabilities = n.GetEnumValue(); } }, {"discoveryDateTime", n => { DiscoveryDateTime = n.GetDateTimeOffsetValue(); } }, @@ -88,7 +88,7 @@ public string Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("discoverabilities", Discoverabilities); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionCollectionResponse.cs index c1aa8b0953c..d2eceea5e8e 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs index 397e42e2065..112e46ea400 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs @@ -55,7 +55,7 @@ public DateTimeOffset? DeletedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deletedDateTime", n => { DeletedDateTime = n.GetDateTimeOffsetValue(); } }, }; @@ -64,7 +64,7 @@ public DateTimeOffset? DeletedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("deletedDateTime", DeletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs index 962edd08afc..ef63deba0ac 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs @@ -101,7 +101,7 @@ public List OnPremisesSynchronization { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"administrativeUnits", n => { AdministrativeUnits = n.GetCollectionOfObjectValues(AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, {"attributeSets", n => { AttributeSets = n.GetCollectionOfObjectValues(AttributeSet.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public List OnPremisesSynchronization { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("administrativeUnits", AdministrativeUnits); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs index 19523fa111f..2d7010a44f8 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObjectCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs index 43ce7b24de5..eb43f4f7999 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs @@ -70,7 +70,7 @@ public DirectoryObjectPartnerReference() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public DirectoryObjectPartnerReference() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryRole.cs b/src/Microsoft.Graph/Generated/Models/DirectoryRole.cs index 6dca1e63d0b..cf427e8d3d8 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryRole.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryRole.cs @@ -93,7 +93,7 @@ public DirectoryRole() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public DirectoryRole() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryRoleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryRoleCollectionResponse.cs index 7d78d73e41a..9f538990d62 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryRoleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryRoleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplate.cs b/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplate.cs index 9c093295864..5f7a94f490d 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplate.cs @@ -51,7 +51,7 @@ public DirectoryRoleTemplate() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public DirectoryRoleTemplate() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplateCollectionResponse.cs index 565e52906c2..261a950d1ab 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryRoleTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRoleTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DisableAndDeleteUserApplyAction.cs b/src/Microsoft.Graph/Generated/Models/DisableAndDeleteUserApplyAction.cs index dd1b0c88e10..0d7b03400b3 100644 --- a/src/Microsoft.Graph/Generated/Models/DisableAndDeleteUserApplyAction.cs +++ b/src/Microsoft.Graph/Generated/Models/DisableAndDeleteUserApplyAction.cs @@ -23,7 +23,7 @@ public DisableAndDeleteUserApplyAction() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public DisableAndDeleteUserApplyAction() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/DisplayNameLocalization.cs b/src/Microsoft.Graph/Generated/Models/DisplayNameLocalization.cs index 2d728ea4fd5..414eddb1d74 100644 --- a/src/Microsoft.Graph/Generated/Models/DisplayNameLocalization.cs +++ b/src/Microsoft.Graph/Generated/Models/DisplayNameLocalization.cs @@ -74,7 +74,7 @@ public static DisplayNameLocalization CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("languageTag", LanguageTag); diff --git a/src/Microsoft.Graph/Generated/Models/DocumentSet.cs b/src/Microsoft.Graph/Generated/Models/DocumentSet.cs index d2efe438824..d7b07fdba73 100644 --- a/src/Microsoft.Graph/Generated/Models/DocumentSet.cs +++ b/src/Microsoft.Graph/Generated/Models/DocumentSet.cs @@ -126,7 +126,7 @@ public static DocumentSet CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedContentTypes", n => { AllowedContentTypes = n.GetCollectionOfObjectValues(ContentTypeInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"defaultContents", n => { DefaultContents = n.GetCollectionOfObjectValues(DocumentSetContent.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -142,7 +142,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("allowedContentTypes", AllowedContentTypes); writer.WriteCollectionOfObjectValues("defaultContents", DefaultContents); diff --git a/src/Microsoft.Graph/Generated/Models/DocumentSetContent.cs b/src/Microsoft.Graph/Generated/Models/DocumentSetContent.cs index e50b3ad2c2e..5c64af7aa09 100644 --- a/src/Microsoft.Graph/Generated/Models/DocumentSetContent.cs +++ b/src/Microsoft.Graph/Generated/Models/DocumentSetContent.cs @@ -88,7 +88,7 @@ public static DocumentSetContent CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetObjectValue(ContentTypeInfo.CreateFromDiscriminatorValue); } }, {"fileName", n => { FileName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("contentType", ContentType); writer.WriteStringValue("fileName", FileName); diff --git a/src/Microsoft.Graph/Generated/Models/DocumentSetVersion.cs b/src/Microsoft.Graph/Generated/Models/DocumentSetVersion.cs index 42552cc716e..4184bde8c41 100644 --- a/src/Microsoft.Graph/Generated/Models/DocumentSetVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/DocumentSetVersion.cs @@ -75,7 +75,7 @@ public DocumentSetVersion() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"comment", n => { Comment = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -88,7 +88,7 @@ public DocumentSetVersion() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("comment", Comment); diff --git a/src/Microsoft.Graph/Generated/Models/DocumentSetVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DocumentSetVersionCollectionResponse.cs index 89c7ff52e70..983c253d90f 100644 --- a/src/Microsoft.Graph/Generated/Models/DocumentSetVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DocumentSetVersionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DocumentSetVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DocumentSetVersionItem.cs b/src/Microsoft.Graph/Generated/Models/DocumentSetVersionItem.cs index 847bfe9a151..97821c0df83 100644 --- a/src/Microsoft.Graph/Generated/Models/DocumentSetVersionItem.cs +++ b/src/Microsoft.Graph/Generated/Models/DocumentSetVersionItem.cs @@ -88,7 +88,7 @@ public static DocumentSetVersionItem CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"itemId", n => { ItemId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("itemId", ItemId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Domain.cs b/src/Microsoft.Graph/Generated/Models/Domain.cs index 488581b19ab..448f27ea8c5 100644 --- a/src/Microsoft.Graph/Generated/Models/Domain.cs +++ b/src/Microsoft.Graph/Generated/Models/Domain.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class Domain : Entity, IParsable { - /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AuthenticationType { @@ -48,7 +48,7 @@ public List DomainNameReferences { set { BackingStore?.Set("domainNameReferences", value); } } #endif - /// Domain settings configured by a customer when federated with Azure AD. Supports $expand. + /// Domain settings configured by a customer when federated with Microsoft Entra ID. Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? FederationConfiguration { @@ -167,7 +167,7 @@ public List SupportedServices { set { BackingStore?.Set("supportedServices", value); } } #endif - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Azure AD. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? VerificationDnsRecords { @@ -192,7 +192,7 @@ public List VerificationDnsRecords { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationType", n => { AuthenticationType = n.GetStringValue(); } }, {"availabilityStatus", n => { AvailabilityStatus = n.GetStringValue(); } }, @@ -217,7 +217,7 @@ public List VerificationDnsRecords { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("authenticationType", AuthenticationType); diff --git a/src/Microsoft.Graph/Generated/Models/DomainCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DomainCollectionResponse.cs index d95349d4ee9..26df6d1d1a3 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Domain.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsCnameRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsCnameRecord.cs index b8e82d784b3..087c4e050e1 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsCnameRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsCnameRecord.cs @@ -31,7 +31,7 @@ public string CanonicalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"canonicalName", n => { CanonicalName = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string CanonicalName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("canonicalName", CanonicalName); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsMxRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsMxRecord.cs index ddd11a0db11..d4580793307 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsMxRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsMxRecord.cs @@ -36,7 +36,7 @@ public int? Preference { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"mailExchange", n => { MailExchange = n.GetStringValue(); } }, {"preference", n => { Preference = n.GetIntValue(); } }, @@ -46,7 +46,7 @@ public int? Preference { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("mailExchange", MailExchange); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs index 4c3afa988b8..5d972678f85 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs @@ -77,7 +77,7 @@ public int? Ttl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isOptional", n => { IsOptional = n.GetBoolValue(); } }, {"label", n => { Label = n.GetStringValue(); } }, @@ -90,7 +90,7 @@ public int? Ttl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isOptional", IsOptional); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsRecordCollectionResponse.cs index ee33c74c98f..8dd92815cfe 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsRecordCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DomainDnsRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsSrvRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsSrvRecord.cs index afb0f20b991..7c99369d176 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsSrvRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsSrvRecord.cs @@ -74,7 +74,7 @@ public int? Weight { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"nameTarget", n => { NameTarget = n.GetStringValue(); } }, {"port", n => { Port = n.GetIntValue(); } }, @@ -88,7 +88,7 @@ public int? Weight { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("nameTarget", NameTarget); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsTxtRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsTxtRecord.cs index 0c560efbecc..49b4916290a 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsTxtRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsTxtRecord.cs @@ -31,7 +31,7 @@ public string Text { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"text", n => { Text = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Text { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("text", Text); diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsUnavailableRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsUnavailableRecord.cs index e4a5d12398a..435b129bb92 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsUnavailableRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsUnavailableRecord.cs @@ -31,7 +31,7 @@ public string Description { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Description { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/DomainIdentitySource.cs b/src/Microsoft.Graph/Generated/Models/DomainIdentitySource.cs index 840392b52d1..79195cea252 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainIdentitySource.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainIdentitySource.cs @@ -51,7 +51,7 @@ public DomainIdentitySource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"domainName", n => { DomainName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public DomainIdentitySource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/DomainState.cs b/src/Microsoft.Graph/Generated/Models/DomainState.cs index 94e735bf8bc..ee007d13e8e 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainState.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainState.cs @@ -79,7 +79,7 @@ public static DomainState CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastActionDateTime", n => { LastActionDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastActionDateTime", LastActionDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Drive.cs b/src/Microsoft.Graph/Generated/Models/Drive.cs index faf58a3a4c8..3914bce7ec2 100644 --- a/src/Microsoft.Graph/Generated/Models/Drive.cs +++ b/src/Microsoft.Graph/Generated/Models/Drive.cs @@ -177,7 +177,7 @@ public Drive() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bundles", n => { Bundles = n.GetCollectionOfObjectValues(DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"driveType", n => { DriveType = n.GetStringValue(); } }, @@ -196,7 +196,7 @@ public Drive() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("bundles", Bundles); diff --git a/src/Microsoft.Graph/Generated/Models/DriveCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DriveCollectionResponse.cs index cbd5225031d..dfc45a0b4fb 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Drive.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DriveItem.cs b/src/Microsoft.Graph/Generated/Models/DriveItem.cs index 7eb2174ffd3..598bd3dc9de 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItem.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItem.cs @@ -462,7 +462,7 @@ public DriveItem() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"analytics", n => { Analytics = n.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); } }, {"audio", n => { Audio = n.GetObjectValue(Microsoft.Graph.Models.Audio.CreateFromDiscriminatorValue); } }, @@ -502,7 +502,7 @@ public DriveItem() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("analytics", Analytics); diff --git a/src/Microsoft.Graph/Generated/Models/DriveItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DriveItemCollectionResponse.cs index 1c98cc72fa6..8266fd3ba6f 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs b/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs index 29ed9ec998e..efba1279e92 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs @@ -93,7 +93,7 @@ public static DriveItemUploadableProperties CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"fileSize", n => { FileSize = n.GetLongValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteLongValue("fileSize", FileSize); diff --git a/src/Microsoft.Graph/Generated/Models/DriveItemVersion.cs b/src/Microsoft.Graph/Generated/Models/DriveItemVersion.cs index 4ff436f6dad..4b62361d6fc 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItemVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItemVersion.cs @@ -42,7 +42,7 @@ public DriveItemVersion() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"size", n => { Size = n.GetLongValue(); } }, @@ -52,7 +52,7 @@ public DriveItemVersion() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/DriveItemVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DriveItemVersionCollectionResponse.cs index c5b5a75157f..bb9f201573c 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItemVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItemVersionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DriveItemVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/DriveRecipient.cs b/src/Microsoft.Graph/Generated/Models/DriveRecipient.cs index f934a29ee55..b96b48513e6 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveRecipient.cs @@ -88,7 +88,7 @@ public static DriveRecipient CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alias", n => { Alias = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteStringValue("email", Email); diff --git a/src/Microsoft.Graph/Generated/Models/EBookInstallSummary.cs b/src/Microsoft.Graph/Generated/Models/EBookInstallSummary.cs index a6ba1f1f867..2f13020a508 100644 --- a/src/Microsoft.Graph/Generated/Models/EBookInstallSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/EBookInstallSummary.cs @@ -50,7 +50,7 @@ public int? NotInstalledUserCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"failedDeviceCount", n => { FailedDeviceCount = n.GetIntValue(); } }, {"failedUserCount", n => { FailedUserCount = n.GetIntValue(); } }, @@ -64,7 +64,7 @@ public int? NotInstalledUserCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("failedDeviceCount", FailedDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/Edge.cs b/src/Microsoft.Graph/Generated/Models/Edge.cs index 06643637db4..b570b98049b 100644 --- a/src/Microsoft.Graph/Generated/Models/Edge.cs +++ b/src/Microsoft.Graph/Generated/Models/Edge.cs @@ -31,7 +31,7 @@ public Microsoft.Graph.Models.InternetExplorerMode InternetExplorerMode { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"internetExplorerMode", n => { InternetExplorerMode = n.GetObjectValue(Microsoft.Graph.Models.InternetExplorerMode.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public Microsoft.Graph.Models.InternetExplorerMode InternetExplorerMode { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("internetExplorerMode", InternetExplorerMode); diff --git a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngine.cs b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngine.cs index b1388d6c57b..4ccd7ca0a36 100644 --- a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngine.cs +++ b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngine.cs @@ -31,7 +31,7 @@ public EdgeSearchEngine() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"edgeSearchEngineType", n => { EdgeSearchEngineType = n.GetEnumValue(); } }, }; @@ -40,7 +40,7 @@ public EdgeSearchEngine() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("edgeSearchEngineType", EdgeSearchEngineType); diff --git a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineBase.cs b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineBase.cs index 4c93de58515..6b49437f964 100644 --- a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineBase.cs +++ b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineBase.cs @@ -54,7 +54,7 @@ public static EdgeSearchEngineBase CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -63,7 +63,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineCustom.cs b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineCustom.cs index 5daa74bc61d..70afa59c0a1 100644 --- a/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineCustom.cs +++ b/src/Microsoft.Graph/Generated/Models/EdgeSearchEngineCustom.cs @@ -40,7 +40,7 @@ public EdgeSearchEngineCustom() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"edgeSearchEngineOpenSearchXmlUrl", n => { EdgeSearchEngineOpenSearchXmlUrl = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public EdgeSearchEngineCustom() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("edgeSearchEngineOpenSearchXmlUrl", EdgeSearchEngineOpenSearchXmlUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EditionUpgradeConfiguration.cs b/src/Microsoft.Graph/Generated/Models/EditionUpgradeConfiguration.cs index 1634100cb91..87d3e6b56cc 100644 --- a/src/Microsoft.Graph/Generated/Models/EditionUpgradeConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/EditionUpgradeConfiguration.cs @@ -64,7 +64,7 @@ public EditionUpgradeConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"license", n => { License = n.GetStringValue(); } }, {"licenseType", n => { LicenseType = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public EditionUpgradeConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("license", License); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs index 2d3835f9109..ca49410ff07 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs @@ -282,7 +282,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addToCalendarAction", n => { AddToCalendarAction = n.GetEnumValue(); } }, {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, @@ -316,7 +316,7 @@ public string WebUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("addedStudentAction", AddedStudentAction); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentClassRecipient.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentClassRecipient.cs index 10732394fa5..de679d1536a 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentClassRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentClassRecipient.cs @@ -23,7 +23,7 @@ public EducationAssignmentClassRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public EducationAssignmentClassRecipient() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentCollectionResponse.cs index 9933dd115ba..d50ffb09f14 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs index 0b21d442d4b..ed20db1d9aa 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentDefaults.cs @@ -47,7 +47,7 @@ public string NotificationChannelUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addToCalendarAction", n => { AddToCalendarAction = n.GetEnumValue(); } }, {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, @@ -59,7 +59,7 @@ public string NotificationChannelUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("addedStudentAction", AddedStudentAction); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentGrade.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentGrade.cs index e576f1dc18e..d986b4775f4 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentGrade.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentGrade.cs @@ -69,7 +69,7 @@ public static EducationAssignmentGrade CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"gradedBy", n => { GradedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"gradedDateTime", n => { GradedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -80,7 +80,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("gradedBy", GradedBy); writer.WriteDateTimeOffsetValue("gradedDateTime", GradedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentGradeType.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentGradeType.cs index fd716a211c1..b509e83eafc 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentGradeType.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentGradeType.cs @@ -50,7 +50,7 @@ public static EducationAssignmentGradeType CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentGroupRecipient.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentGroupRecipient.cs index c3adb000b5e..accd9994771 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentGroupRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentGroupRecipient.cs @@ -23,7 +23,7 @@ public EducationAssignmentGroupRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public EducationAssignmentGroupRecipient() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentIndividualRecipient.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentIndividualRecipient.cs index 429a1960774..f9bcd28f904 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentIndividualRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentIndividualRecipient.cs @@ -37,7 +37,7 @@ public EducationAssignmentIndividualRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"recipients", n => { Recipients = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public EducationAssignmentIndividualRecipient() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("recipients", Recipients); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGrade.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGrade.cs index 00b443014c9..71429ee768a 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGrade.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGrade.cs @@ -28,7 +28,7 @@ public EducationAssignmentPointsGrade() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"points", n => { Points = n.GetFloatValue(); } }, }; @@ -37,7 +37,7 @@ public EducationAssignmentPointsGrade() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteFloatValue("points", Points); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGradeType.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGradeType.cs index 1ce2be6aadc..1051d2021a4 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGradeType.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentPointsGradeType.cs @@ -28,7 +28,7 @@ public EducationAssignmentPointsGradeType() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"maxPoints", n => { MaxPoints = n.GetFloatValue(); } }, }; @@ -37,7 +37,7 @@ public EducationAssignmentPointsGradeType() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteFloatValue("maxPoints", MaxPoints); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentRecipient.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentRecipient.cs index ad99165de5e..80e44fdb231 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentRecipient.cs @@ -52,7 +52,7 @@ public static EducationAssignmentRecipient CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs index b072bd7e4b7..599add2570f 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentResource.cs @@ -36,7 +36,7 @@ public EducationResource Resource { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"distributeForStudentWork", n => { DistributeForStudentWork = n.GetBoolValue(); } }, {"resource", n => { Resource = n.GetObjectValue(EducationResource.CreateFromDiscriminatorValue); } }, @@ -46,7 +46,7 @@ public EducationResource Resource { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("distributeForStudentWork", DistributeForStudentWork); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentResourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentResourceCollectionResponse.cs index 60ceddc3515..c2806072f70 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentResourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentResourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignmentResource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs index e2623cb2c19..5dca5e21d6b 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs @@ -22,7 +22,7 @@ public bool? SubmissionAnimationDisabled { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"submissionAnimationDisabled", n => { SubmissionAnimationDisabled = n.GetBoolValue(); } }, }; @@ -31,7 +31,7 @@ public bool? SubmissionAnimationDisabled { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("submissionAnimationDisabled", SubmissionAnimationDisabled); diff --git a/src/Microsoft.Graph/Generated/Models/EducationCategory.cs b/src/Microsoft.Graph/Generated/Models/EducationCategory.cs index 1e444739916..4579f8283e3 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationCategory.cs @@ -31,7 +31,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string DisplayName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/EducationCategoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationCategoryCollectionResponse.cs index 1e92b171fcf..9a38452e215 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationCategoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationCategoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationClass.cs b/src/Microsoft.Graph/Generated/Models/EducationClass.cs index 8dbda829ea8..0f2c499ea9a 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationClass.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationClass.cs @@ -288,7 +288,7 @@ public EducationTerm Term { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignmentCategories", n => { AssignmentCategories = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentDefaults", n => { AssignmentDefaults = n.GetObjectValue(EducationAssignmentDefaults.CreateFromDiscriminatorValue); } }, @@ -316,7 +316,7 @@ public EducationTerm Term { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignmentCategories", AssignmentCategories); diff --git a/src/Microsoft.Graph/Generated/Models/EducationClassCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationClassCollectionResponse.cs index afa87b6fb56..d2bd4c430de 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationClassCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationClassCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationCourse.cs b/src/Microsoft.Graph/Generated/Models/EducationCourse.cs index 84c8329d4fb..3bafaa4bdef 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationCourse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationCourse.cs @@ -116,7 +116,7 @@ public static EducationCourse CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"courseNumber", n => { CourseNumber = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("courseNumber", CourseNumber); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/EducationExcelResource.cs b/src/Microsoft.Graph/Generated/Models/EducationExcelResource.cs index dd894edc028..cb5dbbac1b5 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationExcelResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationExcelResource.cs @@ -37,7 +37,7 @@ public EducationExcelResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileUrl", n => { FileUrl = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationExcelResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileUrl", FileUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationExternalResource.cs b/src/Microsoft.Graph/Generated/Models/EducationExternalResource.cs index 5ea03724a40..864134dce70 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationExternalResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationExternalResource.cs @@ -37,7 +37,7 @@ public EducationExternalResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"webUrl", n => { WebUrl = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationExternalResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("webUrl", WebUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationFeedback.cs b/src/Microsoft.Graph/Generated/Models/EducationFeedback.cs index 113ec7e2fc9..e7bf23a0b7d 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationFeedback.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationFeedback.cs @@ -79,7 +79,7 @@ public static EducationFeedback CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"feedbackBy", n => { FeedbackBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"feedbackDateTime", n => { FeedbackDateTime = n.GetDateTimeOffsetValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("feedbackBy", FeedbackBy); writer.WriteDateTimeOffsetValue("feedbackDateTime", FeedbackDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/EducationFeedbackOutcome.cs b/src/Microsoft.Graph/Generated/Models/EducationFeedbackOutcome.cs index decf640b891..9735d087eb5 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationFeedbackOutcome.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationFeedbackOutcome.cs @@ -51,7 +51,7 @@ public EducationFeedbackOutcome() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"feedback", n => { Feedback = n.GetObjectValue(EducationFeedback.CreateFromDiscriminatorValue); } }, {"publishedFeedback", n => { PublishedFeedback = n.GetObjectValue(EducationFeedback.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public EducationFeedbackOutcome() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("feedback", Feedback); diff --git a/src/Microsoft.Graph/Generated/Models/EducationFeedbackResourceOutcome.cs b/src/Microsoft.Graph/Generated/Models/EducationFeedbackResourceOutcome.cs index 110f3b4c0c3..a52b1d60482 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationFeedbackResourceOutcome.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationFeedbackResourceOutcome.cs @@ -42,7 +42,7 @@ public EducationFeedbackResourceOutcome() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"feedbackResource", n => { FeedbackResource = n.GetObjectValue(EducationResource.CreateFromDiscriminatorValue); } }, {"resourceStatus", n => { ResourceStatus = n.GetEnumValue(); } }, @@ -52,7 +52,7 @@ public EducationFeedbackResourceOutcome() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("feedbackResource", FeedbackResource); diff --git a/src/Microsoft.Graph/Generated/Models/EducationFileResource.cs b/src/Microsoft.Graph/Generated/Models/EducationFileResource.cs index 5342b19f3bc..e84d50ef909 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationFileResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationFileResource.cs @@ -37,7 +37,7 @@ public EducationFileResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileUrl", n => { FileUrl = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationFileResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileUrl", FileUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationItemBody.cs b/src/Microsoft.Graph/Generated/Models/EducationItemBody.cs index b14dc7e7fba..914ac601940 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationItemBody.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationItemBody.cs @@ -65,7 +65,7 @@ public static EducationItemBody CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); writer.WriteEnumValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/EducationLinkResource.cs b/src/Microsoft.Graph/Generated/Models/EducationLinkResource.cs index e8f4618d402..c0814e8a978 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationLinkResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationLinkResource.cs @@ -37,7 +37,7 @@ public EducationLinkResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"link", n => { Link = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationLinkResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("link", Link); diff --git a/src/Microsoft.Graph/Generated/Models/EducationMediaResource.cs b/src/Microsoft.Graph/Generated/Models/EducationMediaResource.cs index bc1a4d5c0f5..2348d01a8de 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationMediaResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationMediaResource.cs @@ -37,7 +37,7 @@ public EducationMediaResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileUrl", n => { FileUrl = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationMediaResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileUrl", FileUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationOnPremisesInfo.cs b/src/Microsoft.Graph/Generated/Models/EducationOnPremisesInfo.cs index e68d383af40..7e7e3298d13 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationOnPremisesInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationOnPremisesInfo.cs @@ -60,7 +60,7 @@ public static EducationOnPremisesInfo CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"immutableId", n => { ImmutableId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("immutableId", ImmutableId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/EducationOrganization.cs b/src/Microsoft.Graph/Generated/Models/EducationOrganization.cs index 9a40682cf07..c12f06f40b6 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationOrganization.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationOrganization.cs @@ -68,7 +68,7 @@ public string ExternalSourceDetail { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -80,7 +80,7 @@ public string ExternalSourceDetail { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs b/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs index ec4dabd55eb..c5c16030859 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationOutcome.cs @@ -43,7 +43,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -53,7 +53,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); diff --git a/src/Microsoft.Graph/Generated/Models/EducationOutcomeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationOutcomeCollectionResponse.cs index 5bdfdc21aa6..940ff119db9 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationOutcomeCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationOutcomeCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationOutcome.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationPointsOutcome.cs b/src/Microsoft.Graph/Generated/Models/EducationPointsOutcome.cs index 187b507bc6b..defc1783bba 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationPointsOutcome.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationPointsOutcome.cs @@ -51,7 +51,7 @@ public EducationPointsOutcome() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"points", n => { Points = n.GetObjectValue(EducationAssignmentPointsGrade.CreateFromDiscriminatorValue); } }, {"publishedPoints", n => { PublishedPoints = n.GetObjectValue(EducationAssignmentPointsGrade.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public EducationPointsOutcome() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("points", Points); diff --git a/src/Microsoft.Graph/Generated/Models/EducationPowerPointResource.cs b/src/Microsoft.Graph/Generated/Models/EducationPowerPointResource.cs index 75d45a5aac2..64ea7e9d144 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationPowerPointResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationPowerPointResource.cs @@ -37,7 +37,7 @@ public EducationPowerPointResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileUrl", n => { FileUrl = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationPowerPointResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileUrl", FileUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationResource.cs b/src/Microsoft.Graph/Generated/Models/EducationResource.cs index d88e9d1bdcf..1198f7793cc 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationResource.cs @@ -109,7 +109,7 @@ public static EducationResource CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -123,7 +123,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/EducationRoot.cs b/src/Microsoft.Graph/Generated/Models/EducationRoot.cs index f0e50570ab4..bedfb6ace46 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationRoot.cs @@ -102,7 +102,7 @@ public static EducationRoot CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"classes", n => { Classes = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, {"me", n => { Me = n.GetObjectValue(EducationUser.CreateFromDiscriminatorValue); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("classes", Classes); writer.WriteObjectValue("me", Me); diff --git a/src/Microsoft.Graph/Generated/Models/EducationRubric.cs b/src/Microsoft.Graph/Generated/Models/EducationRubric.cs index dd4e6f6991d..e41aa77192c 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationRubric.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationRubric.cs @@ -125,7 +125,7 @@ public List Qualities { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -142,7 +142,7 @@ public List Qualities { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/EducationRubricCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationRubricCollectionResponse.cs index c6996c7d0fb..286546ddb20 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationRubricCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationRubricCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationRubric.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationRubricOutcome.cs b/src/Microsoft.Graph/Generated/Models/EducationRubricOutcome.cs index 7132a68fdad..ba73a510297 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationRubricOutcome.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationRubricOutcome.cs @@ -79,7 +79,7 @@ public EducationRubricOutcome() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"publishedRubricQualityFeedback", n => { PublishedRubricQualityFeedback = n.GetCollectionOfObjectValues(RubricQualityFeedbackModel.CreateFromDiscriminatorValue)?.ToList(); } }, {"publishedRubricQualitySelectedLevels", n => { PublishedRubricQualitySelectedLevels = n.GetCollectionOfObjectValues(RubricQualitySelectedColumnModel.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -91,7 +91,7 @@ public EducationRubricOutcome() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("publishedRubricQualityFeedback", PublishedRubricQualityFeedback); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSchool.cs b/src/Microsoft.Graph/Generated/Models/EducationSchool.cs index 7e5363f420f..71700e13abf 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSchool.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSchool.cs @@ -219,7 +219,7 @@ public EducationSchool() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"address", n => { Address = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"administrativeUnit", n => { AdministrativeUnit = n.GetObjectValue(Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue); } }, @@ -241,7 +241,7 @@ public EducationSchool() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("address", Address); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSchoolCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationSchoolCollectionResponse.cs index 9b60d3a19bf..c1503230dda 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSchoolCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSchoolCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationStudent.cs b/src/Microsoft.Graph/Generated/Models/EducationStudent.cs index 2b39e3b42ee..36b664581a6 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationStudent.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationStudent.cs @@ -113,7 +113,7 @@ public static EducationStudent CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"birthDate", n => { BirthDate = n.GetDateValue(); } }, {"externalId", n => { ExternalId = n.GetStringValue(); } }, @@ -128,7 +128,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateValue("birthDate", BirthDate); writer.WriteStringValue("externalId", ExternalId); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs index 4f3e30eb229..bbe87bd245d 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs @@ -168,7 +168,7 @@ public DateTimeOffset? UnsubmittedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"outcomes", n => { Outcomes = n.GetCollectionOfObjectValues(EducationOutcome.CreateFromDiscriminatorValue)?.ToList(); } }, {"reassignedBy", n => { ReassignedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -190,7 +190,7 @@ public DateTimeOffset? UnsubmittedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("outcomes", Outcomes); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmissionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmissionCollectionResponse.cs index 4726384d238..b5049e2862b 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmissionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmissionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSubmission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmissionIndividualRecipient.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmissionIndividualRecipient.cs index 4eabba5019c..a452a69606a 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmissionIndividualRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmissionIndividualRecipient.cs @@ -37,7 +37,7 @@ public EducationSubmissionIndividualRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userId", n => { UserId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationSubmissionIndividualRecipient() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userId", UserId); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmissionRecipient.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmissionRecipient.cs index 212b19570e4..e3624f2d3ac 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmissionRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmissionRecipient.cs @@ -50,7 +50,7 @@ public static EducationSubmissionRecipient CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmissionResource.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmissionResource.cs index 8732f168fd1..591e1472a53 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmissionResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmissionResource.cs @@ -45,7 +45,7 @@ public EducationResource Resource { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignmentResourceUrl", n => { AssignmentResourceUrl = n.GetStringValue(); } }, {"resource", n => { Resource = n.GetObjectValue(EducationResource.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public EducationResource Resource { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("assignmentResourceUrl", AssignmentResourceUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmissionResourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmissionResourceCollectionResponse.cs index 1bd65774285..28054e3b5fa 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmissionResourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmissionResourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationSubmissionResource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationTeacher.cs b/src/Microsoft.Graph/Generated/Models/EducationTeacher.cs index 5ace17b957d..a667da4ba05 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationTeacher.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationTeacher.cs @@ -74,7 +74,7 @@ public static EducationTeacher CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"externalId", n => { ExternalId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("externalId", ExternalId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/EducationTeamsAppResource.cs b/src/Microsoft.Graph/Generated/Models/EducationTeamsAppResource.cs index fc0f41a2e04..b33809857a9 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationTeamsAppResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationTeamsAppResource.cs @@ -79,7 +79,7 @@ public EducationTeamsAppResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appIconWebUrl", n => { AppIconWebUrl = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public EducationTeamsAppResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appIconWebUrl", AppIconWebUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationTerm.cs b/src/Microsoft.Graph/Generated/Models/EducationTerm.cs index 72425b0a3fa..4e8503a1772 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationTerm.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationTerm.cs @@ -85,7 +85,7 @@ public static EducationTerm CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"endDate", n => { EndDate = n.GetDateValue(); } }, @@ -98,7 +98,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteDateValue("endDate", EndDate); diff --git a/src/Microsoft.Graph/Generated/Models/EducationUser.cs b/src/Microsoft.Graph/Generated/Models/EducationUser.cs index 3acdb2cec58..7179e5716ab 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationUser.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationUser.cs @@ -240,7 +240,7 @@ public string OfficeLocation { set { BackingStore?.Set("officeLocation", value); } } #endif - /// Additional information used to associate the Azure Active Directory user with its Active Directory counterpart. + /// Additional information used to associate the Microsoft Entra user with its Active Directory counterpart. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EducationOnPremisesInfo? OnPremisesInfo { @@ -504,7 +504,7 @@ public string UserType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountEnabled", n => { AccountEnabled = n.GetBoolValue(); } }, {"assignedLicenses", n => { AssignedLicenses = n.GetCollectionOfObjectValues(AssignedLicense.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -550,7 +550,7 @@ public string UserType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("accountEnabled", AccountEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/EducationUserCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationUserCollectionResponse.cs index 64d4642f0bf..25a68d55811 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationUserCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationUserCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EducationWordResource.cs b/src/Microsoft.Graph/Generated/Models/EducationWordResource.cs index ff524362069..14e7101afc6 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationWordResource.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationWordResource.cs @@ -37,7 +37,7 @@ public EducationWordResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileUrl", n => { FileUrl = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EducationWordResource() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileUrl", FileUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EmailAddress.cs b/src/Microsoft.Graph/Generated/Models/EmailAddress.cs index 5e71e6423a8..4a12821389d 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailAddress.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailAddress.cs @@ -74,7 +74,7 @@ public static EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethod.cs index bc7d63dad43..755f386ad8d 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethod.cs @@ -37,7 +37,7 @@ public EmailAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EmailAuthenticationMethod() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("emailAddress", EmailAddress); diff --git a/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodCollectionResponse.cs index 44750ba740e..a1ca3ead5a0 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EmailAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodConfiguration.cs index 4e674fef8eb..d4888af982e 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailAuthenticationMethodConfiguration.cs @@ -42,7 +42,7 @@ public EmailAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowExternalIdToUseEmailOtp", n => { AllowExternalIdToUseEmailOtp = n.GetEnumValue(); } }, {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(AuthenticationMethodTarget.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -52,7 +52,7 @@ public EmailAuthenticationMethodConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("allowExternalIdToUseEmailOtp", AllowExternalIdToUseEmailOtp); diff --git a/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs index 65e8c2fb5e6..bb1713490e2 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailFileAssessmentRequest.cs @@ -56,7 +56,7 @@ public EmailFileAssessmentRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentData", n => { ContentData = n.GetStringValue(); } }, {"destinationRoutingReason", n => { DestinationRoutingReason = n.GetEnumValue(); } }, @@ -67,7 +67,7 @@ public EmailFileAssessmentRequest() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contentData", ContentData); diff --git a/src/Microsoft.Graph/Generated/Models/EmailIdentity.cs b/src/Microsoft.Graph/Generated/Models/EmailIdentity.cs index 70143fde730..4bffe3bdc92 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailIdentity.cs @@ -37,7 +37,7 @@ public EmailIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"email", n => { Email = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public EmailIdentity() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("email", Email); diff --git a/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs b/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs index 4b91ee50781..9770ef5c2bf 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailPayloadDetail.cs @@ -70,7 +70,7 @@ public EmailPayloadDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fromEmail", n => { FromEmail = n.GetStringValue(); } }, {"fromName", n => { FromName = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public EmailPayloadDetail() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fromEmail", FromEmail); diff --git a/src/Microsoft.Graph/Generated/Models/EmailSettings.cs b/src/Microsoft.Graph/Generated/Models/EmailSettings.cs index c102e7b9ee8..6b5898df2ce 100644 --- a/src/Microsoft.Graph/Generated/Models/EmailSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/EmailSettings.cs @@ -65,7 +65,7 @@ public static EmailSettings CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"senderDomain", n => { SenderDomain = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("senderDomain", SenderDomain); diff --git a/src/Microsoft.Graph/Generated/Models/EmployeeExperience.cs b/src/Microsoft.Graph/Generated/Models/EmployeeExperience.cs index 444bb4559a6..9e7acaf6c76 100644 --- a/src/Microsoft.Graph/Generated/Models/EmployeeExperience.cs +++ b/src/Microsoft.Graph/Generated/Models/EmployeeExperience.cs @@ -74,7 +74,7 @@ public static EmployeeExperience CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"learningCourseActivities", n => { LearningCourseActivities = n.GetCollectionOfObjectValues(LearningCourseActivity.CreateFromDiscriminatorValue)?.ToList(); } }, {"learningProviders", n => { LearningProviders = n.GetCollectionOfObjectValues(LearningProvider.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("learningCourseActivities", LearningCourseActivities); writer.WriteCollectionOfObjectValues("learningProviders", LearningProviders); diff --git a/src/Microsoft.Graph/Generated/Models/EmployeeExperienceUser.cs b/src/Microsoft.Graph/Generated/Models/EmployeeExperienceUser.cs index 1096cfea2c0..18f0c3ac996 100644 --- a/src/Microsoft.Graph/Generated/Models/EmployeeExperienceUser.cs +++ b/src/Microsoft.Graph/Generated/Models/EmployeeExperienceUser.cs @@ -31,7 +31,7 @@ public List LearningCourseActivities { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"learningCourseActivities", n => { LearningCourseActivities = n.GetCollectionOfObjectValues(LearningCourseActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List LearningCourseActivities { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("learningCourseActivities", LearningCourseActivities); diff --git a/src/Microsoft.Graph/Generated/Models/EmployeeOrgData.cs b/src/Microsoft.Graph/Generated/Models/EmployeeOrgData.cs index bd0eb944c7b..8b25af93994 100644 --- a/src/Microsoft.Graph/Generated/Models/EmployeeOrgData.cs +++ b/src/Microsoft.Graph/Generated/Models/EmployeeOrgData.cs @@ -74,7 +74,7 @@ public static EmployeeOrgData CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"costCenter", n => { CostCenter = n.GetStringValue(); } }, {"division", n => { Division = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("costCenter", CostCenter); writer.WriteStringValue("division", Division); diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs index 6b98f18a352..0c37903cc6d 100644 --- a/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotification.cs @@ -126,7 +126,7 @@ public List SupportedLocales { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -145,7 +145,7 @@ public List SupportedLocales { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs index 9a67d28900d..512aac196a0 100644 --- a/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EndUserNotification.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs index 1cccac057d4..4ae0cf2d92f 100644 --- a/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetail.cs @@ -92,7 +92,7 @@ public string Subject { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"emailContent", n => { EmailContent = n.GetStringValue(); } }, {"isDefaultLangauge", n => { IsDefaultLangauge = n.GetBoolValue(); } }, @@ -106,7 +106,7 @@ public string Subject { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("emailContent", EmailContent); diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs index 3fbd3de6da3..120b34cb4e1 100644 --- a/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationDetailCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EndUserNotificationDetail.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs b/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs index 97207791ec2..9135fb3fe2a 100644 --- a/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/EndUserNotificationSetting.cs @@ -75,7 +75,7 @@ public static EndUserNotificationSetting CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"notificationPreference", n => { NotificationPreference = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -87,7 +87,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("notificationPreference", NotificationPreference); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Endpoint.cs b/src/Microsoft.Graph/Generated/Models/Endpoint.cs index 1e67614c858..c1580bc14c3 100644 --- a/src/Microsoft.Graph/Generated/Models/Endpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/Endpoint.cs @@ -93,7 +93,7 @@ public Endpoint() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"capability", n => { Capability = n.GetStringValue(); } }, {"providerId", n => { ProviderId = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public Endpoint() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("capability", Capability); diff --git a/src/Microsoft.Graph/Generated/Models/EndpointCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EndpointCollectionResponse.cs index e6a684930b4..e7a31068821 100644 --- a/src/Microsoft.Graph/Generated/Models/EndpointCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EndpointCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Endpoint.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignment.cs b/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignment.cs index 641f8cf5a89..58da1255d24 100644 --- a/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignmentCollectionResponse.cs index a8622684c7c..620bcf6ac32 100644 --- a/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EnrollmentConfigurationAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EnrollmentTroubleshootingEvent.cs b/src/Microsoft.Graph/Generated/Models/EnrollmentTroubleshootingEvent.cs index 9bd31beea85..56c348c65b4 100644 --- a/src/Microsoft.Graph/Generated/Models/EnrollmentTroubleshootingEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/EnrollmentTroubleshootingEvent.cs @@ -114,7 +114,7 @@ public string UserId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceId", n => { DeviceId = n.GetStringValue(); } }, {"enrollmentType", n => { EnrollmentType = n.GetEnumValue(); } }, @@ -130,7 +130,7 @@ public string UserId { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("deviceId", DeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs b/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs index a3aa3c2e4c1..dea8c9a1ed4 100644 --- a/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs @@ -102,7 +102,7 @@ public DateTimeOffset? UploadDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, @@ -118,7 +118,7 @@ public DateTimeOffset? UploadDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs b/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs index 35e3f3454bd..df1542d3c02 100644 --- a/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs @@ -160,7 +160,7 @@ public List Resources { set { BackingStore?.Set("resources", value); } } #endif - /// The settings that control the behavior of Azure AD entitlement management. + /// The settings that control the behavior of Microsoft Entra entitlement management. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EntitlementManagementSettings? Settings { @@ -185,7 +185,7 @@ public EntitlementManagementSettings Settings { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessPackageAssignmentApprovals", n => { AccessPackageAssignmentApprovals = n.GetCollectionOfObjectValues(Approval.CreateFromDiscriminatorValue)?.ToList(); } }, {"accessPackages", n => { AccessPackages = n.GetCollectionOfObjectValues(AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -205,7 +205,7 @@ public EntitlementManagementSettings Settings { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("accessPackageAssignmentApprovals", AccessPackageAssignmentApprovals); diff --git a/src/Microsoft.Graph/Generated/Models/EntitlementManagementSchedule.cs b/src/Microsoft.Graph/Generated/Models/EntitlementManagementSchedule.cs index 63eac288f93..df1b6bb3856 100644 --- a/src/Microsoft.Graph/Generated/Models/EntitlementManagementSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/EntitlementManagementSchedule.cs @@ -79,7 +79,7 @@ public static EntitlementManagementSchedule CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expiration", n => { Expiration = n.GetObjectValue(ExpirationPattern.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("expiration", Expiration); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/EntitlementManagementSettings.cs b/src/Microsoft.Graph/Generated/Models/EntitlementManagementSettings.cs index d6746ffa36d..e31dc3da007 100644 --- a/src/Microsoft.Graph/Generated/Models/EntitlementManagementSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/EntitlementManagementSettings.cs @@ -27,7 +27,7 @@ public AccessPackageExternalUserLifecycleAction? ExternalUserLifecycleAction { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"durationUntilExternalUserDeletedAfterBlocked", n => { DurationUntilExternalUserDeletedAfterBlocked = n.GetTimeSpanValue(); } }, {"externalUserLifecycleAction", n => { ExternalUserLifecycleAction = n.GetEnumValue(); } }, @@ -37,7 +37,7 @@ public AccessPackageExternalUserLifecycleAction? ExternalUserLifecycleAction { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteTimeSpanValue("durationUntilExternalUserDeletedAfterBlocked", DurationUntilExternalUserDeletedAfterBlocked); diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 26cc0bdbc96..a88d3f549a2 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -557,6 +557,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.recordOperation" => new RecordOperation(), "#microsoft.graph.referenceAttachment" => new ReferenceAttachment(), "#microsoft.graph.remoteAssistancePartner" => new RemoteAssistancePartner(), + "#microsoft.graph.remoteDesktopSecurityConfiguration" => new RemoteDesktopSecurityConfiguration(), "#microsoft.graph.request" => new Request(), "#microsoft.graph.resellerDelegatedAdminRelationship" => new ResellerDelegatedAdminRelationship(), "#microsoft.graph.resourceOperation" => new ResourceOperation(), @@ -684,6 +685,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.synchronizationJob" => new SynchronizationJob(), "#microsoft.graph.synchronizationSchema" => new SynchronizationSchema(), "#microsoft.graph.synchronizationTemplate" => new SynchronizationTemplate(), + "#microsoft.graph.targetDeviceGroup" => new TargetDeviceGroup(), "#microsoft.graph.targetedManagedAppConfiguration" => new TargetedManagedAppConfiguration(), "#microsoft.graph.targetedManagedAppPolicyAssignment" => new TargetedManagedAppPolicyAssignment(), "#microsoft.graph.targetedManagedAppProtection" => new TargetedManagedAppProtection(), @@ -877,7 +879,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -887,7 +889,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Event.cs b/src/Microsoft.Graph/Generated/Models/Event.cs index c8049ada472..69a0fc4e2d2 100644 --- a/src/Microsoft.Graph/Generated/Models/Event.cs +++ b/src/Microsoft.Graph/Generated/Models/Event.cs @@ -458,7 +458,7 @@ public Event() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowNewTimeProposals", n => { AllowNewTimeProposals = n.GetBoolValue(); } }, {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -508,7 +508,7 @@ public Event() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowNewTimeProposals", AllowNewTimeProposals); diff --git a/src/Microsoft.Graph/Generated/Models/EventCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EventCollectionResponse.cs index 6fc88592b77..313002be02f 100644 --- a/src/Microsoft.Graph/Generated/Models/EventCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EventCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/EventMessage.cs b/src/Microsoft.Graph/Generated/Models/EventMessage.cs index 77919bb16a3..1cbec1d16fa 100644 --- a/src/Microsoft.Graph/Generated/Models/EventMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/EventMessage.cs @@ -123,7 +123,7 @@ public EventMessage() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"event", n => { Event = n.GetObjectValue(Microsoft.Graph.Models.Event.CreateFromDiscriminatorValue); } }, @@ -141,7 +141,7 @@ public EventMessage() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/EventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/EventMessageDetail.cs index 19767154b9d..aae61a18566 100644 --- a/src/Microsoft.Graph/Generated/Models/EventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/EventMessageDetail.cs @@ -79,7 +79,7 @@ public static EventMessageDetail CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/EventMessageRequest.cs b/src/Microsoft.Graph/Generated/Models/EventMessageRequest.cs index 7c49ab8c2f0..640cde30ca7 100644 --- a/src/Microsoft.Graph/Generated/Models/EventMessageRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/EventMessageRequest.cs @@ -80,7 +80,7 @@ public EventMessageRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowNewTimeProposals", n => { AllowNewTimeProposals = n.GetBoolValue(); } }, {"meetingRequestType", n => { MeetingRequestType = n.GetEnumValue(); } }, @@ -94,7 +94,7 @@ public EventMessageRequest() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowNewTimeProposals", AllowNewTimeProposals); diff --git a/src/Microsoft.Graph/Generated/Models/EventMessageResponse.cs b/src/Microsoft.Graph/Generated/Models/EventMessageResponse.cs index a59460f6440..5b2df1db60b 100644 --- a/src/Microsoft.Graph/Generated/Models/EventMessageResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/EventMessageResponse.cs @@ -42,7 +42,7 @@ public EventMessageResponse() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"proposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, {"responseType", n => { ResponseType = n.GetEnumValue(); } }, @@ -52,7 +52,7 @@ public EventMessageResponse() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("proposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Models/ExcludeTarget.cs b/src/Microsoft.Graph/Generated/Models/ExcludeTarget.cs index 6ed05efe137..0eda3f16258 100644 --- a/src/Microsoft.Graph/Generated/Models/ExcludeTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/ExcludeTarget.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The object identifier of an Azure Active Directory user or group. + /// The object identifier of a Microsoft Entra user or group. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Id { @@ -65,7 +65,7 @@ public static ExcludeTarget CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExclusionGroupAssignmentTarget.cs b/src/Microsoft.Graph/Generated/Models/ExclusionGroupAssignmentTarget.cs index 50bec887835..2cfbe9c149f 100644 --- a/src/Microsoft.Graph/Generated/Models/ExclusionGroupAssignmentTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/ExclusionGroupAssignmentTarget.cs @@ -26,7 +26,7 @@ public ExclusionGroupAssignmentTarget() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public ExclusionGroupAssignmentTarget() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ExpirationPattern.cs b/src/Microsoft.Graph/Generated/Models/ExpirationPattern.cs index 9f84da459bd..d93427e7f2a 100644 --- a/src/Microsoft.Graph/Generated/Models/ExpirationPattern.cs +++ b/src/Microsoft.Graph/Generated/Models/ExpirationPattern.cs @@ -61,7 +61,7 @@ public static ExpirationPattern CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"duration", n => { Duration = n.GetTimeSpanValue(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("duration", Duration); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ExpressionInputObject.cs b/src/Microsoft.Graph/Generated/Models/ExpressionInputObject.cs index 04fdd96bd68..ec52bc2040a 100644 --- a/src/Microsoft.Graph/Generated/Models/ExpressionInputObject.cs +++ b/src/Microsoft.Graph/Generated/Models/ExpressionInputObject.cs @@ -74,7 +74,7 @@ public static ExpressionInputObject CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"definition", n => { Definition = n.GetObjectValue(ObjectDefinition.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("definition", Definition); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Extension.cs b/src/Microsoft.Graph/Generated/Models/Extension.cs index f1638e13b14..e282bfb6ca1 100644 --- a/src/Microsoft.Graph/Generated/Models/Extension.cs +++ b/src/Microsoft.Graph/Generated/Models/Extension.cs @@ -21,7 +21,7 @@ public class Extension : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -29,7 +29,7 @@ public class Extension : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ExtensionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExtensionCollectionResponse.cs index ca9594de5ac..378ad85b3d4 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtensionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtensionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Extension.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs b/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs index 485774f40ae..2686da975bb 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs @@ -34,7 +34,7 @@ public string DataType { set { BackingStore?.Set("dataType", value); } } #endif - /// Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only. + /// Indicates if this extension property was synced from on-premises active directory using Microsoft Entra Connect. Read-only. public bool? IsSyncedFromOnPremises { get { return BackingStore?.Get("isSyncedFromOnPremises"); } set { BackingStore?.Set("isSyncedFromOnPremises", value); } @@ -84,7 +84,7 @@ public ExtensionProperty() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, {"dataType", n => { DataType = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public ExtensionProperty() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appDisplayName", AppDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ExtensionPropertyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExtensionPropertyCollectionResponse.cs index fffbe65d89a..45a19f8fdd1 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtensionPropertyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtensionPropertyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExtensionSchemaProperty.cs b/src/Microsoft.Graph/Generated/Models/ExtensionSchemaProperty.cs index 0640ebe988d..c4c5070b84b 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtensionSchemaProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtensionSchemaProperty.cs @@ -74,7 +74,7 @@ public static ExtensionSchemaProperty CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs index f4e6d9b59a7..7b2b6797c3d 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Acl.cs @@ -38,7 +38,7 @@ public AclType? Type { get { return BackingStore?.Get("type"); } set { BackingStore?.Set("type", value); } } - /// The unique identifer of the identity. For Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup + /// The unique identifer of the identity. For Microsoft Entra identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups value is set to the ID of the externalGroup #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Value { @@ -70,7 +70,7 @@ public static Acl CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accessType", n => { AccessType = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("accessType", AccessType); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ActivitySettings.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ActivitySettings.cs index b2132d27ed8..847a1abc903 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ActivitySettings.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ActivitySettings.cs @@ -60,7 +60,7 @@ public static ActivitySettings CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"urlToItemResolvers", n => { UrlToItemResolvers = n.GetCollectionOfObjectValues(UrlToItemResolverBase.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("urlToItemResolvers", UrlToItemResolvers); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Configuration.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Configuration.cs index c2d160dd021..0161819a7fb 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Configuration.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Configuration.cs @@ -12,7 +12,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("AdditionalData"); } set { BackingStore?.Set("AdditionalData", value); } } - /// A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection. + /// A collection of application IDs for registered Microsoft Entra apps that are allowed to manage the externalConnection and to index content in the externalConnection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AuthorizedAppIds { @@ -60,7 +60,7 @@ public static Configuration CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authorizedAppIds", n => { AuthorizedAppIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("authorizedAppIds", AuthorizedAppIds); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperation.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperation.cs index 98abe25b30a..818461db0df 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperation.cs @@ -36,7 +36,7 @@ public ConnectionOperationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"error", n => { Error = n.GetObjectValue(Microsoft.Graph.Models.PublicError.CreateFromDiscriminatorValue); } }, {"status", n => { Status = n.GetEnumValue(); } }, @@ -46,7 +46,7 @@ public ConnectionOperationStatus? Status { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationCollectionResponse.cs index 8d2cf373832..a419c10402e 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ConnectionOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConnectionOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/DisplayTemplate.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/DisplayTemplate.cs index 8d8de144283..21b76bf9bf2 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/DisplayTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/DisplayTemplate.cs @@ -93,7 +93,7 @@ public static DisplayTemplate CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"layout", n => { Layout = n.GetObjectValue(Microsoft.Graph.Models.Json.CreateFromDiscriminatorValue); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteObjectValue("layout", Layout); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/External.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/External.cs index bd2ed49849b..ae5b4b13848 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/External.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/External.cs @@ -60,7 +60,7 @@ public static External CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"connections", n => { Connections = n.GetCollectionOfObjectValues(ExternalConnection.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("connections", Connections); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivity.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivity.cs index 0205a2a0280..d33cf331f54 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivity.cs @@ -45,7 +45,7 @@ public ExternalActivityType? Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"performedBy", n => { PerformedBy = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, @@ -56,7 +56,7 @@ public ExternalActivityType? Type { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("performedBy", PerformedBy); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityCollectionResponse.cs index cf815c5375c..4f8abc5ca0b 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityResult.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityResult.cs index 8aa7862d676..494f59f0e55 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalActivityResult.cs @@ -31,7 +31,7 @@ public Microsoft.Graph.Models.PublicError Error { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"error", n => { Error = n.GetObjectValue(Microsoft.Graph.Models.PublicError.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public Microsoft.Graph.Models.PublicError Error { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnection.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnection.cs index a892ba16fa7..cdb88c4b384 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnection.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnection.cs @@ -148,7 +148,7 @@ public ConnectionState? State { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activitySettings", n => { ActivitySettings = n.GetObjectValue(Microsoft.Graph.Models.ExternalConnectors.ActivitySettings.CreateFromDiscriminatorValue); } }, {"configuration", n => { Configuration = n.GetObjectValue(Microsoft.Graph.Models.ExternalConnectors.Configuration.CreateFromDiscriminatorValue); } }, @@ -166,7 +166,7 @@ public ConnectionState? State { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("activitySettings", ActivitySettings); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs index 58e223da087..a43147b7e54 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalConnectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalConnection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs index af4bcdf87c6..986225278f5 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroup.cs @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// A member added to an externalGroup. You can add Azure Active Directory users, Azure Active Directory groups, or an externalGroup as members. + /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Members { @@ -59,7 +59,7 @@ public List Members { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public List Members { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroupCollectionResponse.cs index 981c9e04f00..16875cee74d 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalGroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalGroup.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs index 90d4ecfe8bf..8a029f7f168 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItem.cs @@ -73,7 +73,7 @@ public Microsoft.Graph.Models.ExternalConnectors.Properties Properties { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"acl", n => { Acl = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.ExternalConnectors.Acl.CreateFromDiscriminatorValue)?.ToList(); } }, {"activities", n => { Activities = n.GetCollectionOfObjectValues(ExternalActivity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public Microsoft.Graph.Models.ExternalConnectors.Properties Properties { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("acl", Acl); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemCollectionResponse.cs index e31e37d3232..c4067c72c6b 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExternalItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContent.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContent.cs index 5bf199c7d31..c19df200573 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContent.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ExternalItemContent.cs @@ -65,7 +65,7 @@ public static ExternalItemContent CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("type", Type); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Identity.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Identity.cs index 7ad235c13ad..063effe8eee 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Identity.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Identity.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models.ExternalConnectors { public class Identity : Entity, IParsable { - /// The type of identity. Possible values are: user or group for Azure AD identities and externalgroup for groups in an external system. + /// The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. public IdentityType? Type { get { return BackingStore?.Get("type"); } set { BackingStore?.Set("type", value); } @@ -22,7 +22,7 @@ public IdentityType? Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"type", n => { Type = n.GetEnumValue(); } }, }; @@ -31,7 +31,7 @@ public IdentityType? Type { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("type", Type); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/IdentityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/IdentityCollectionResponse.cs index 5bfae692714..9dc53de2b8e 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/IdentityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/IdentityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Identity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ItemIdResolver.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ItemIdResolver.cs index ed96f55cf2b..70564dd6a53 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ItemIdResolver.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/ItemIdResolver.cs @@ -51,7 +51,7 @@ public ItemIdResolver() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"itemId", n => { ItemId = n.GetStringValue(); } }, {"urlMatchInfo", n => { UrlMatchInfo = n.GetObjectValue(Microsoft.Graph.Models.ExternalConnectors.UrlMatchInfo.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public ItemIdResolver() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("itemId", ItemId); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Properties.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Properties.cs index 611b9393e85..d91574d9e5c 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Properties.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Properties.cs @@ -46,7 +46,7 @@ public static Properties CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs index bbdc8eea81e..a3dc4d401eb 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Property.cs @@ -113,7 +113,7 @@ public static Property CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"aliases", n => { Aliases = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"isQueryable", n => { IsQueryable = n.GetBoolValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("aliases", Aliases); writer.WriteBoolValue("isQueryable", IsQueryable); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyRule.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyRule.cs index c298ffa8ac1..2353bb02f4e 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyRule.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/PropertyRule.cs @@ -84,7 +84,7 @@ public static PropertyRule CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"operation", n => { Operation = n.GetEnumValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("operation", Operation); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Schema.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Schema.cs index 7322c9660fc..35b56d3ebf6 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Schema.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/Schema.cs @@ -45,7 +45,7 @@ public List Properties { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"baseType", n => { BaseType = n.GetStringValue(); } }, {"properties", n => { Properties = n.GetCollectionOfObjectValues(Property.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public List Properties { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("baseType", BaseType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/SearchSettings.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/SearchSettings.cs index 0854012d498..560ea07bb2b 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/SearchSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/SearchSettings.cs @@ -60,7 +60,7 @@ public static SearchSettings CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"searchResultTemplates", n => { SearchResultTemplates = n.GetCollectionOfObjectValues(DisplayTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("searchResultTemplates", SearchResultTemplates); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlMatchInfo.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlMatchInfo.cs index c23db56175d..34a32e0de7c 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlMatchInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlMatchInfo.cs @@ -74,7 +74,7 @@ public static UrlMatchInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"baseUrls", n => { BaseUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("baseUrls", BaseUrls); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlToItemResolverBase.cs b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlToItemResolverBase.cs index 3beebc7425b..58a7eeafacd 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlToItemResolverBase.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalConnectors/UrlToItemResolverBase.cs @@ -55,7 +55,7 @@ public static UrlToItemResolverBase CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"priority", n => { Priority = n.GetIntValue(); } }, @@ -65,7 +65,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("priority", Priority); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalDomainFederation.cs b/src/Microsoft.Graph/Generated/Models/ExternalDomainFederation.cs index 855233c6dd9..982d2d7a917 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalDomainFederation.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalDomainFederation.cs @@ -65,7 +65,7 @@ public ExternalDomainFederation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"domainName", n => { DomainName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ExternalDomainFederation() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs b/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs index 292461aab3d..56ae0a99bb6 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalDomainName.cs @@ -17,7 +17,7 @@ public class ExternalDomainName : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class ExternalDomainName : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ExternalLink.cs b/src/Microsoft.Graph/Generated/Models/ExternalLink.cs index fb61dfaa410..27837d3cbdd 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalLink.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalLink.cs @@ -60,7 +60,7 @@ public static ExternalLink CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"href", n => { Href = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("href", Href); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ExternalSponsors.cs b/src/Microsoft.Graph/Generated/Models/ExternalSponsors.cs index a66e2a795e1..ad1b56b11ea 100644 --- a/src/Microsoft.Graph/Generated/Models/ExternalSponsors.cs +++ b/src/Microsoft.Graph/Generated/Models/ExternalSponsors.cs @@ -23,7 +23,7 @@ public ExternalSponsors() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ExternalSponsors() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ExtractSensitivityLabelsResult.cs b/src/Microsoft.Graph/Generated/Models/ExtractSensitivityLabelsResult.cs index ead1e87fe8b..0ec310bfe2b 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtractSensitivityLabelsResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtractSensitivityLabelsResult.cs @@ -60,7 +60,7 @@ public static ExtractSensitivityLabelsResult CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"labels", n => { Labels = n.GetCollectionOfObjectValues(SensitivityLabelAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("labels", Labels); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs b/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs index 564ecc1aba6..e36b44f8896 100644 --- a/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicy.cs @@ -74,7 +74,7 @@ public bool? IsEnabled { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appliesTo", n => { AppliesTo = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public bool? IsEnabled { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("appliesTo", AppliesTo); diff --git a/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicyCollectionResponse.cs index 78a3625b344..57dca7abd56 100644 --- a/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/FeatureRolloutPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FeatureRolloutPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/FeatureTarget.cs b/src/Microsoft.Graph/Generated/Models/FeatureTarget.cs index 1b3f3c8fca1..9c8bf72a9b8 100644 --- a/src/Microsoft.Graph/Generated/Models/FeatureTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/FeatureTarget.cs @@ -65,7 +65,7 @@ public static FeatureTarget CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs index ff9920017d7..a6739e006d0 100644 --- a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs +++ b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredential.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class FederatedIdentityCredential : Entity, IParsable { - /// The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Azure AD. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Azure AD in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. + /// The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Audiences { @@ -20,7 +20,7 @@ public List Audiences { set { BackingStore?.Set("audiences", value); } } #endif - /// The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional. + /// The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -34,7 +34,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required. + /// The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Issuer { @@ -48,7 +48,7 @@ public string Issuer { set { BackingStore?.Set("issuer", value); } } #endif - /// is the unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Required. Not nullable. Supports $filter (eq). + /// The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Required. Not nullable. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { @@ -62,7 +62,7 @@ public string Name { set { BackingStore?.Set("name", value); } } #endif - /// Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Azure AD. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. Supports $filter (eq). + /// Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Subject { @@ -87,7 +87,7 @@ public string Subject { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"audiences", n => { Audiences = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public string Subject { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("audiences", Audiences); diff --git a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs index c7a9af35509..650e64a74bd 100644 --- a/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/FederatedIdentityCredentialCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FederatedIdentityCredential.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs index 7356dfc9085..ba3be3d9a9e 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs @@ -89,7 +89,7 @@ public Fido2AuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"aaGuid", n => { AaGuid = n.GetStringValue(); } }, {"attestationCertificates", n => { AttestationCertificates = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -103,7 +103,7 @@ public Fido2AuthenticationMethod() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("aaGuid", AaGuid); diff --git a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodCollectionResponse.cs index cfb7ad9c119..33bb451ee71 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Fido2AuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodConfiguration.cs index 9d2d74409ba..dc33e45a5bd 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethodConfiguration.cs @@ -61,7 +61,7 @@ public Fido2AuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(AuthenticationMethodTarget.CreateFromDiscriminatorValue)?.ToList(); } }, {"isAttestationEnforced", n => { IsAttestationEnforced = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public Fido2AuthenticationMethodConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("includeTargets", IncludeTargets); diff --git a/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs index 7b99921cadc..0c39fbfae63 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs @@ -37,7 +37,7 @@ public Fido2CombinationConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedAAGUIDs", n => { AllowedAAGUIDs = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public Fido2CombinationConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("allowedAAGUIDs", AllowedAAGUIDs); diff --git a/src/Microsoft.Graph/Generated/Models/Fido2KeyRestrictions.cs b/src/Microsoft.Graph/Generated/Models/Fido2KeyRestrictions.cs index 6e58bed1fd1..f697c02a17e 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2KeyRestrictions.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2KeyRestrictions.cs @@ -70,7 +70,7 @@ public static Fido2KeyRestrictions CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"aaGuids", n => { AaGuids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"enforcementType", n => { EnforcementType = n.GetEnumValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("aaGuids", AaGuids); writer.WriteEnumValue("enforcementType", EnforcementType); diff --git a/src/Microsoft.Graph/Generated/Models/FieldValueSet.cs b/src/Microsoft.Graph/Generated/Models/FieldValueSet.cs index 7e25c402c6d..0016bfd2d9a 100644 --- a/src/Microsoft.Graph/Generated/Models/FieldValueSet.cs +++ b/src/Microsoft.Graph/Generated/Models/FieldValueSet.cs @@ -17,7 +17,7 @@ public class FieldValueSet : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class FieldValueSet : Entity, IParsable { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs index 7c997c7c067..447f51ba903 100644 --- a/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/FileAssessmentRequest.cs @@ -51,7 +51,7 @@ public FileAssessmentRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentData", n => { ContentData = n.GetStringValue(); } }, {"fileName", n => { FileName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public FileAssessmentRequest() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contentData", ContentData); diff --git a/src/Microsoft.Graph/Generated/Models/FileAttachment.cs b/src/Microsoft.Graph/Generated/Models/FileAttachment.cs index 6b160876a96..569f47468d1 100644 --- a/src/Microsoft.Graph/Generated/Models/FileAttachment.cs +++ b/src/Microsoft.Graph/Generated/Models/FileAttachment.cs @@ -65,7 +65,7 @@ public FileAttachment() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentBytes", n => { ContentBytes = n.GetByteArrayValue(); } }, {"contentId", n => { ContentId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public FileAttachment() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("contentBytes", ContentBytes); diff --git a/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs b/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs index 9200092654c..f6ed3838aeb 100644 --- a/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/FileEncryptionInfo.cs @@ -147,7 +147,7 @@ public static FileEncryptionInfo CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"encryptionKey", n => { EncryptionKey = n.GetByteArrayValue(); } }, {"fileDigest", n => { FileDigest = n.GetByteArrayValue(); } }, @@ -163,7 +163,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("encryptionKey", EncryptionKey); writer.WriteByteArrayValue("fileDigest", FileDigest); diff --git a/src/Microsoft.Graph/Generated/Models/FileHash.cs b/src/Microsoft.Graph/Generated/Models/FileHash.cs index 1943293e930..4b44585720a 100644 --- a/src/Microsoft.Graph/Generated/Models/FileHash.cs +++ b/src/Microsoft.Graph/Generated/Models/FileHash.cs @@ -65,7 +65,7 @@ public static FileHash CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hashType", n => { HashType = n.GetEnumValue(); } }, {"hashValue", n => { HashValue = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("hashType", HashType); writer.WriteStringValue("hashValue", HashValue); diff --git a/src/Microsoft.Graph/Generated/Models/FileObject.cs b/src/Microsoft.Graph/Generated/Models/FileObject.cs index 7a74f86f61a..bb417427e5e 100644 --- a/src/Microsoft.Graph/Generated/Models/FileObject.cs +++ b/src/Microsoft.Graph/Generated/Models/FileObject.cs @@ -79,7 +79,7 @@ public static FileObject CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hashes", n => { Hashes = n.GetObjectValue(Microsoft.Graph.Models.Hashes.CreateFromDiscriminatorValue); } }, {"mimeType", n => { MimeType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("hashes", Hashes); writer.WriteStringValue("mimeType", MimeType); diff --git a/src/Microsoft.Graph/Generated/Models/FileSecurityState.cs b/src/Microsoft.Graph/Generated/Models/FileSecurityState.cs index 933b8408f19..3a82d2a4df9 100644 --- a/src/Microsoft.Graph/Generated/Models/FileSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/FileSecurityState.cs @@ -102,7 +102,7 @@ public static FileSecurityState CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileHash", n => { FileHash = n.GetObjectValue(Microsoft.Graph.Models.FileHash.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("fileHash", FileHash); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/FileSystemInfo.cs b/src/Microsoft.Graph/Generated/Models/FileSystemInfo.cs index 619fbbfd0b5..bf635d3c18e 100644 --- a/src/Microsoft.Graph/Generated/Models/FileSystemInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/FileSystemInfo.cs @@ -61,7 +61,7 @@ public static FileSystemInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"lastAccessedDateTime", n => { LastAccessedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteDateTimeOffsetValue("lastAccessedDateTime", LastAccessedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Filter.cs b/src/Microsoft.Graph/Generated/Models/Filter.cs index e9c9a7d837e..1e2d32a192b 100644 --- a/src/Microsoft.Graph/Generated/Models/Filter.cs +++ b/src/Microsoft.Graph/Generated/Models/Filter.cs @@ -88,7 +88,7 @@ public static Filter CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"categoryFilterGroups", n => { CategoryFilterGroups = n.GetCollectionOfObjectValues(FilterGroup.CreateFromDiscriminatorValue)?.ToList(); } }, {"groups", n => { Groups = n.GetCollectionOfObjectValues(FilterGroup.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("categoryFilterGroups", CategoryFilterGroups); writer.WriteCollectionOfObjectValues("groups", Groups); diff --git a/src/Microsoft.Graph/Generated/Models/FilterClause.cs b/src/Microsoft.Graph/Generated/Models/FilterClause.cs index 9bd63477744..e2a9df028d6 100644 --- a/src/Microsoft.Graph/Generated/Models/FilterClause.cs +++ b/src/Microsoft.Graph/Generated/Models/FilterClause.cs @@ -88,7 +88,7 @@ public static FilterClause CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"operatorName", n => { OperatorName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("operatorName", OperatorName); diff --git a/src/Microsoft.Graph/Generated/Models/FilterGroup.cs b/src/Microsoft.Graph/Generated/Models/FilterGroup.cs index 10eed055d41..f4292a53377 100644 --- a/src/Microsoft.Graph/Generated/Models/FilterGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/FilterGroup.cs @@ -74,7 +74,7 @@ public static FilterGroup CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clauses", n => { Clauses = n.GetCollectionOfObjectValues(FilterClause.CreateFromDiscriminatorValue)?.ToList(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("clauses", Clauses); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/FilterOperand.cs b/src/Microsoft.Graph/Generated/Models/FilterOperand.cs index 96f050746fd..af6a8d54e7b 100644 --- a/src/Microsoft.Graph/Generated/Models/FilterOperand.cs +++ b/src/Microsoft.Graph/Generated/Models/FilterOperand.cs @@ -60,7 +60,7 @@ public static FilterOperand CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"values", n => { Values = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfPrimitiveValues("values", Values); diff --git a/src/Microsoft.Graph/Generated/Models/FilterOperatorSchema.cs b/src/Microsoft.Graph/Generated/Models/FilterOperatorSchema.cs index 7b4d905cd90..dbfc3f99910 100644 --- a/src/Microsoft.Graph/Generated/Models/FilterOperatorSchema.cs +++ b/src/Microsoft.Graph/Generated/Models/FilterOperatorSchema.cs @@ -41,7 +41,7 @@ public List SupportedAttributeTypes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"arity", n => { Arity = n.GetEnumValue(); } }, {"multivaluedComparisonType", n => { MultivaluedComparisonType = n.GetEnumValue(); } }, @@ -52,7 +52,7 @@ public List SupportedAttributeTypes { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("arity", Arity); diff --git a/src/Microsoft.Graph/Generated/Models/FilterOperatorSchemaCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/FilterOperatorSchemaCollectionResponse.cs index 8c8a035535f..e9c826a0f83 100644 --- a/src/Microsoft.Graph/Generated/Models/FilterOperatorSchemaCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/FilterOperatorSchemaCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Folder.cs b/src/Microsoft.Graph/Generated/Models/Folder.cs index f8a3d42da61..f1dedcc645e 100644 --- a/src/Microsoft.Graph/Generated/Models/Folder.cs +++ b/src/Microsoft.Graph/Generated/Models/Folder.cs @@ -65,7 +65,7 @@ public static Folder CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"childCount", n => { ChildCount = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("childCount", ChildCount); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/FolderView.cs b/src/Microsoft.Graph/Generated/Models/FolderView.cs index 92206360d8e..0e99579d134 100644 --- a/src/Microsoft.Graph/Generated/Models/FolderView.cs +++ b/src/Microsoft.Graph/Generated/Models/FolderView.cs @@ -88,7 +88,7 @@ public static FolderView CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"sortBy", n => { SortBy = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("sortBy", SortBy); diff --git a/src/Microsoft.Graph/Generated/Models/FollowupFlag.cs b/src/Microsoft.Graph/Generated/Models/FollowupFlag.cs index c9f2c43069e..9364bd8cd81 100644 --- a/src/Microsoft.Graph/Generated/Models/FollowupFlag.cs +++ b/src/Microsoft.Graph/Generated/Models/FollowupFlag.cs @@ -93,7 +93,7 @@ public static FollowupFlag CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"completedDateTime", n => { CompletedDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"dueDateTime", n => { DueDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("completedDateTime", CompletedDateTime); writer.WriteObjectValue("dueDateTime", DueDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/FreeBusyError.cs b/src/Microsoft.Graph/Generated/Models/FreeBusyError.cs index c1c6015fa27..ad8fb622f0c 100644 --- a/src/Microsoft.Graph/Generated/Models/FreeBusyError.cs +++ b/src/Microsoft.Graph/Generated/Models/FreeBusyError.cs @@ -74,7 +74,7 @@ public static FreeBusyError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"message", n => { Message = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("message", Message); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/GenericError.cs b/src/Microsoft.Graph/Generated/Models/GenericError.cs index 15a23157a73..687a84276ec 100644 --- a/src/Microsoft.Graph/Generated/Models/GenericError.cs +++ b/src/Microsoft.Graph/Generated/Models/GenericError.cs @@ -74,7 +74,7 @@ public static GenericError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/GeoCoordinates.cs b/src/Microsoft.Graph/Generated/Models/GeoCoordinates.cs index f93bf4684cb..5b106560c79 100644 --- a/src/Microsoft.Graph/Generated/Models/GeoCoordinates.cs +++ b/src/Microsoft.Graph/Generated/Models/GeoCoordinates.cs @@ -61,7 +61,7 @@ public static GeoCoordinates CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"altitude", n => { Altitude = n.GetDoubleValue(); } }, {"latitude", n => { Latitude = n.GetDoubleValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("altitude", Altitude); writer.WriteDoubleValue("latitude", Latitude); diff --git a/src/Microsoft.Graph/Generated/Models/GeolocationColumn.cs b/src/Microsoft.Graph/Generated/Models/GeolocationColumn.cs index f384c4d6b29..dbb18838920 100644 --- a/src/Microsoft.Graph/Generated/Models/GeolocationColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/GeolocationColumn.cs @@ -46,7 +46,7 @@ public static GeolocationColumn CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/GovernanceInsight.cs b/src/Microsoft.Graph/Generated/Models/GovernanceInsight.cs index 5858ff79dfe..5f34265b502 100644 --- a/src/Microsoft.Graph/Generated/Models/GovernanceInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/GovernanceInsight.cs @@ -27,7 +27,7 @@ public DateTimeOffset? InsightCreatedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"insightCreatedDateTime", n => { InsightCreatedDateTime = n.GetDateTimeOffsetValue(); } }, }; @@ -36,7 +36,7 @@ public DateTimeOffset? InsightCreatedDateTime { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("insightCreatedDateTime", InsightCreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/GovernanceInsightCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/GovernanceInsightCollectionResponse.cs index e10627e2500..9ee62bfc195 100644 --- a/src/Microsoft.Graph/Generated/Models/GovernanceInsightCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/GovernanceInsightCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(GovernanceInsight.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Group.cs b/src/Microsoft.Graph/Generated/Models/Group.cs index f0076dee045..58581ef9cff 100644 --- a/src/Microsoft.Graph/Generated/Models/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/Group.cs @@ -284,7 +284,7 @@ public bool? IsArchived { get { return BackingStore?.Get("isArchived"); } set { BackingStore?.Set("isArchived", value); } } - /// Indicates whether this group can be assigned to an Azure Active Directory role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Azure AD role assignmentsUsing this feature requires a Azure AD Premium P1 license. Returned by default. Supports $filter (eq, ne, not). + /// Indicates whether this group can be assigned to a Microsoft Entra role or not. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership). Only callers in Global Administrator and Privileged Role Administrator roles can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not). public bool? IsAssignableToRole { get { return BackingStore?.Get("isAssignableToRole"); } set { BackingStore?.Set("isAssignableToRole", value); } @@ -472,7 +472,7 @@ public List OnPremisesProvisioningErrors { set { BackingStore?.Set("onPremisesProvisioningErrors", value); } } #endif - /// Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. + /// Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesSamAccountName { @@ -575,7 +575,7 @@ public PlannerGroup Planner { set { BackingStore?.Set("planner", value); } } #endif - /// The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Azure AD roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. + /// The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling user must be assigned one of the following Microsoft Entra roles: Global Administrator User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PreferredDataLocation { @@ -803,7 +803,7 @@ public Group() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"acceptedSenders", n => { AcceptedSenders = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"allowExternalSenders", n => { AllowExternalSenders = n.GetBoolValue(); } }, @@ -877,7 +877,7 @@ public Group() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("acceptedSenders", AcceptedSenders); diff --git a/src/Microsoft.Graph/Generated/Models/GroupAssignmentTarget.cs b/src/Microsoft.Graph/Generated/Models/GroupAssignmentTarget.cs index 3cc54420cdf..aa4128c264e 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupAssignmentTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupAssignmentTarget.cs @@ -44,7 +44,7 @@ public GroupAssignmentTarget() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"groupId", n => { GroupId = n.GetStringValue(); } }, }; @@ -53,7 +53,7 @@ public GroupAssignmentTarget() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("groupId", GroupId); diff --git a/src/Microsoft.Graph/Generated/Models/GroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/GroupCollectionResponse.cs index 2bfca2c8608..63f1203c432 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Group.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/GroupFilter.cs b/src/Microsoft.Graph/Generated/Models/GroupFilter.cs index 10f05a77529..9168f5c3ab4 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupFilter.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupFilter.cs @@ -60,7 +60,7 @@ public static GroupFilter CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"includedGroups", n => { IncludedGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("includedGroups", IncludedGroups); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs b/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs index 4f0a298549f..7af62632d0d 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicy.cs @@ -50,7 +50,7 @@ public string ManagedGroupTypes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"alternateNotificationEmails", n => { AlternateNotificationEmails = n.GetStringValue(); } }, {"groupLifetimeInDays", n => { GroupLifetimeInDays = n.GetIntValue(); } }, @@ -61,7 +61,7 @@ public string ManagedGroupTypes { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("alternateNotificationEmails", AlternateNotificationEmails); diff --git a/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicyCollectionResponse.cs index 2cb7e514ac1..b2e6fd9af6a 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupLifecyclePolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(GroupLifecyclePolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/GroupMembers.cs b/src/Microsoft.Graph/Generated/Models/GroupMembers.cs index 919eb39fbaf..bef76d61604 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupMembers.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupMembers.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class GroupMembers : SubjectSet, IParsable { - /// The name of the group in Azure AD. Read only. + /// The name of the group in Microsoft Entra ID. Read only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -20,7 +20,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The ID of the group in Azure AD. + /// The ID of the group in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? GroupId { @@ -51,7 +51,7 @@ public GroupMembers() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"groupId", n => { GroupId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public GroupMembers() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/GroupPeerOutlierRecommendationInsightSettings.cs b/src/Microsoft.Graph/Generated/Models/GroupPeerOutlierRecommendationInsightSettings.cs index 9cee7231560..9434f873c28 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPeerOutlierRecommendationInsightSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPeerOutlierRecommendationInsightSettings.cs @@ -23,7 +23,7 @@ public GroupPeerOutlierRecommendationInsightSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public GroupPeerOutlierRecommendationInsightSettings() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/GroupSetting.cs b/src/Microsoft.Graph/Generated/Models/GroupSetting.cs index 2b03017a55a..9bd8204ece0 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupSetting.cs @@ -59,7 +59,7 @@ public List Values { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"templateId", n => { TemplateId = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public List Values { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/GroupSettingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/GroupSettingCollectionResponse.cs index d075ca7616f..eebbd782100 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupSettingCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupSettingCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(GroupSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/GroupSettingTemplate.cs b/src/Microsoft.Graph/Generated/Models/GroupSettingTemplate.cs index ca5b2602185..a0e06a11c71 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupSettingTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupSettingTemplate.cs @@ -65,7 +65,7 @@ public GroupSettingTemplate() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public GroupSettingTemplate() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/GroupSettingTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/GroupSettingTemplateCollectionResponse.cs index a46b11038e2..72ff56db99c 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupSettingTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupSettingTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(GroupSettingTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Hashes.cs b/src/Microsoft.Graph/Generated/Models/Hashes.cs index ff678073a67..8b21cc5766e 100644 --- a/src/Microsoft.Graph/Generated/Models/Hashes.cs +++ b/src/Microsoft.Graph/Generated/Models/Hashes.cs @@ -102,7 +102,7 @@ public static Hashes CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"crc32Hash", n => { Crc32Hash = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("crc32Hash", Crc32Hash); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicy.cs b/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicy.cs index 81142baa476..ed600228e1e 100644 --- a/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicy.cs @@ -23,7 +23,7 @@ public HomeRealmDiscoveryPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public HomeRealmDiscoveryPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicyCollectionResponse.cs index bd2920acb81..390cf613bb9 100644 --- a/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/HomeRealmDiscoveryPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(HomeRealmDiscoveryPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs b/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs index dcf3cd48434..e9601a2b8ba 100644 --- a/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/HostSecurityState.cs @@ -145,7 +145,7 @@ public static HostSecurityState CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fqdn", n => { Fqdn = n.GetStringValue(); } }, {"isAzureAdJoined", n => { IsAzureAdJoined = n.GetBoolValue(); } }, @@ -163,7 +163,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fqdn", Fqdn); writer.WriteBoolValue("isAzureAdJoined", IsAzureAdJoined); diff --git a/src/Microsoft.Graph/Generated/Models/HyperlinkOrPictureColumn.cs b/src/Microsoft.Graph/Generated/Models/HyperlinkOrPictureColumn.cs index 23a238a317e..0b6572e1ac8 100644 --- a/src/Microsoft.Graph/Generated/Models/HyperlinkOrPictureColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/HyperlinkOrPictureColumn.cs @@ -51,7 +51,7 @@ public static HyperlinkOrPictureColumn CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isPicture", n => { IsPicture = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isPicture", IsPicture); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IPv4CidrRange.cs b/src/Microsoft.Graph/Generated/Models/IPv4CidrRange.cs index 65c114f06b1..385be1094ee 100644 --- a/src/Microsoft.Graph/Generated/Models/IPv4CidrRange.cs +++ b/src/Microsoft.Graph/Generated/Models/IPv4CidrRange.cs @@ -37,7 +37,7 @@ public IPv4CidrRange() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cidrAddress", n => { CidrAddress = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public IPv4CidrRange() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("cidrAddress", CidrAddress); diff --git a/src/Microsoft.Graph/Generated/Models/IPv4Range.cs b/src/Microsoft.Graph/Generated/Models/IPv4Range.cs index f313ff10635..a61c38957ee 100644 --- a/src/Microsoft.Graph/Generated/Models/IPv4Range.cs +++ b/src/Microsoft.Graph/Generated/Models/IPv4Range.cs @@ -54,7 +54,7 @@ public IPv4Range() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lowerAddress", n => { LowerAddress = n.GetStringValue(); } }, {"upperAddress", n => { UpperAddress = n.GetStringValue(); } }, @@ -64,7 +64,7 @@ public IPv4Range() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("lowerAddress", LowerAddress); diff --git a/src/Microsoft.Graph/Generated/Models/IPv6CidrRange.cs b/src/Microsoft.Graph/Generated/Models/IPv6CidrRange.cs index 4d2582c4299..c9ae0e7b3b2 100644 --- a/src/Microsoft.Graph/Generated/Models/IPv6CidrRange.cs +++ b/src/Microsoft.Graph/Generated/Models/IPv6CidrRange.cs @@ -37,7 +37,7 @@ public IPv6CidrRange() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cidrAddress", n => { CidrAddress = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public IPv6CidrRange() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("cidrAddress", CidrAddress); diff --git a/src/Microsoft.Graph/Generated/Models/IPv6Range.cs b/src/Microsoft.Graph/Generated/Models/IPv6Range.cs index 32c356df79e..52272cd38bf 100644 --- a/src/Microsoft.Graph/Generated/Models/IPv6Range.cs +++ b/src/Microsoft.Graph/Generated/Models/IPv6Range.cs @@ -54,7 +54,7 @@ public IPv6Range() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lowerAddress", n => { LowerAddress = n.GetStringValue(); } }, {"upperAddress", n => { UpperAddress = n.GetStringValue(); } }, @@ -64,7 +64,7 @@ public IPv6Range() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("lowerAddress", LowerAddress); diff --git a/src/Microsoft.Graph/Generated/Models/Identity.cs b/src/Microsoft.Graph/Generated/Models/Identity.cs index 4a6607d38a8..65306108ae2 100644 --- a/src/Microsoft.Graph/Generated/Models/Identity.cs +++ b/src/Microsoft.Graph/Generated/Models/Identity.cs @@ -71,6 +71,13 @@ public static Identity CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.azureCommunicationServicesUserIdentity" => new AzureCommunicationServicesUserIdentity(), + "#microsoft.graph.communicationsApplicationIdentity" => new CommunicationsApplicationIdentity(), + "#microsoft.graph.communicationsApplicationInstanceIdentity" => new CommunicationsApplicationInstanceIdentity(), + "#microsoft.graph.communicationsEncryptedIdentity" => new CommunicationsEncryptedIdentity(), + "#microsoft.graph.communicationsGuestIdentity" => new CommunicationsGuestIdentity(), + "#microsoft.graph.communicationsPhoneIdentity" => new CommunicationsPhoneIdentity(), + "#microsoft.graph.communicationsUserIdentity" => new CommunicationsUserIdentity(), "#microsoft.graph.emailIdentity" => new EmailIdentity(), "#microsoft.graph.initiator" => new Initiator(), "#microsoft.graph.provisionedIdentity" => new ProvisionedIdentity(), @@ -89,7 +96,7 @@ public static Identity CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +107,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityApiConnector.cs b/src/Microsoft.Graph/Generated/Models/IdentityApiConnector.cs index 1b7fa96da4c..f9352288c9e 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityApiConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityApiConnector.cs @@ -59,7 +59,7 @@ public string TargetUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationConfiguration", n => { AuthenticationConfiguration = n.GetObjectValue(ApiAuthenticationConfigurationBase.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public string TargetUrl { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("authenticationConfiguration", AuthenticationConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityApiConnectorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityApiConnectorCollectionResponse.cs index 16353a34650..10134c92e5e 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityApiConnectorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityApiConnectorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IdentityApiConnector.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityBuiltInUserFlowAttribute.cs b/src/Microsoft.Graph/Generated/Models/IdentityBuiltInUserFlowAttribute.cs index fa3310becd4..7b35bfbe571 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityBuiltInUserFlowAttribute.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityBuiltInUserFlowAttribute.cs @@ -23,7 +23,7 @@ public IdentityBuiltInUserFlowAttribute() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public IdentityBuiltInUserFlowAttribute() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs b/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs index b805ea3575f..2322a900111 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs @@ -87,7 +87,7 @@ public List UserFlowAttributes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"apiConnectors", n => { ApiConnectors = n.GetCollectionOfObjectValues(IdentityApiConnector.CreateFromDiscriminatorValue)?.ToList(); } }, {"b2xUserFlows", n => { B2xUserFlows = n.GetCollectionOfObjectValues(B2xIdentityUserFlow.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public List UserFlowAttributes { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("apiConnectors", ApiConnectors); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityCustomUserFlowAttribute.cs b/src/Microsoft.Graph/Generated/Models/IdentityCustomUserFlowAttribute.cs index dd4d15e6368..efb0e52c6de 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityCustomUserFlowAttribute.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityCustomUserFlowAttribute.cs @@ -23,7 +23,7 @@ public IdentityCustomUserFlowAttribute() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public IdentityCustomUserFlowAttribute() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtension.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtension.cs index 0ea1ea98d25..5a7c7e5b30b 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtension.cs @@ -20,7 +20,7 @@ public Microsoft.Graph.Models.CustomExtensionCallbackConfiguration CallbackConfi set { BackingStore?.Set("callbackConfiguration", value); } } #endif - /// The unique identifier of the Azure AD user that created the custom task extension.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.User? CreatedBy { @@ -39,7 +39,7 @@ public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } } - /// The unique identifier of the Azure AD user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. + /// The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.User? LastModifiedBy { @@ -75,7 +75,7 @@ public CustomTaskExtension() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"callbackConfiguration", n => { CallbackConfiguration = n.GetObjectValue(Microsoft.Graph.Models.CustomExtensionCallbackConfiguration.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue); } }, @@ -88,7 +88,7 @@ public CustomTaskExtension() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("callbackConfiguration", CallbackConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackConfiguration.cs index 52e6a944c62..014f1a946aa 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackConfiguration.cs @@ -37,7 +37,7 @@ public CustomTaskExtensionCallbackConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authorizedApps", n => { AuthorizedApps = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public CustomTaskExtensionCallbackConfiguration() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("authorizedApps", AuthorizedApps); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackData.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackData.cs index 4e4473f3c10..5e3950d9b13 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackData.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCallbackData.cs @@ -28,7 +28,7 @@ public CustomTaskExtensionCallbackData() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"operationStatus", n => { OperationStatus = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public CustomTaskExtensionCallbackData() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("operationStatus", OperationStatus); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs index 5929c602319..a52b0de1c6a 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs @@ -79,7 +79,7 @@ public CustomTaskExtensionCalloutData() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"subject", n => { Subject = n.GetObjectValue(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue); } }, {"task", n => { Task = n.GetObjectValue(TaskObject.CreateFromDiscriminatorValue); } }, @@ -91,7 +91,7 @@ public CustomTaskExtensionCalloutData() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("subject", Subject); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCollectionResponse.cs index f60c1b1c85b..ce7e7ba0508 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/CustomTaskExtensionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CustomTaskExtension.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs index 1e2b8d72df9..6a3c469e631 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/IdentityGovernance.cs @@ -130,7 +130,7 @@ public static IdentityGovernance CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accessReviews", n => { AccessReviews = n.GetObjectValue(Microsoft.Graph.Models.AccessReviewSet.CreateFromDiscriminatorValue); } }, {"appConsent", n => { AppConsent = n.GetObjectValue(Microsoft.Graph.Models.AppConsentApprovalRoute.CreateFromDiscriminatorValue); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("accessReviews", AccessReviews); writer.WriteObjectValue("appConsent", AppConsent); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleManagementSettings.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleManagementSettings.cs index 70336e0bb87..2110e3bb326 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleManagementSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleManagementSettings.cs @@ -36,7 +36,7 @@ public int? WorkflowScheduleIntervalInHours { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"emailSettings", n => { EmailSettings = n.GetObjectValue(Microsoft.Graph.Models.EmailSettings.CreateFromDiscriminatorValue); } }, {"workflowScheduleIntervalInHours", n => { WorkflowScheduleIntervalInHours = n.GetIntValue(); } }, @@ -46,7 +46,7 @@ public int? WorkflowScheduleIntervalInHours { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("emailSettings", EmailSettings); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs index 14c7ac89284..6ac85c625a8 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleWorkflowsContainer.cs @@ -101,7 +101,7 @@ public List WorkflowTemplates { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"customTaskExtensions", n => { CustomTaskExtensions = n.GetCollectionOfObjectValues(CustomTaskExtension.CreateFromDiscriminatorValue)?.ToList(); } }, {"deletedItems", n => { DeletedItems = n.GetObjectValue(Microsoft.Graph.Models.DeletedItemContainer.CreateFromDiscriminatorValue); } }, @@ -115,7 +115,7 @@ public List WorkflowTemplates { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("customTaskExtensions", CustomTaskExtensions); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/OnDemandExecutionOnly.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/OnDemandExecutionOnly.cs index 045f8eca99c..6564c60ae3b 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/OnDemandExecutionOnly.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/OnDemandExecutionOnly.cs @@ -23,7 +23,7 @@ public OnDemandExecutionOnly() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public OnDemandExecutionOnly() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs index 65a4921ae23..a3a11f7a57b 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Parameter.cs @@ -79,7 +79,7 @@ public static Parameter CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RuleBasedSubjectSet.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RuleBasedSubjectSet.cs index 393a25b1ed0..5e2a0559c49 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RuleBasedSubjectSet.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RuleBasedSubjectSet.cs @@ -37,7 +37,7 @@ public RuleBasedSubjectSet() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"rule", n => { Rule = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public RuleBasedSubjectSet() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("rule", Rule); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Run.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Run.cs index fe0dcee754b..f83f1e46b31 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Run.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Run.cs @@ -105,7 +105,7 @@ public Microsoft.Graph.Models.IdentityGovernance.WorkflowExecutionType? Workflow /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"failedTasksCount", n => { FailedTasksCount = n.GetIntValue(); } }, @@ -127,7 +127,7 @@ public Microsoft.Graph.Models.IdentityGovernance.WorkflowExecutionType? Workflow /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunCollectionResponse.cs index 9ef35185708..3fd41957078 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Run.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunSummary.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunSummary.cs index 278c6d780df..4f633e62f77 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/RunSummary.cs @@ -76,7 +76,7 @@ public static RunSummary CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"failedRuns", n => { FailedRuns = n.GetIntValue(); } }, {"failedTasks", n => { FailedTasks = n.GetIntValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("failedRuns", FailedRuns); writer.WriteIntValue("failedTasks", FailedTasks); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskCollectionResponse.cs index 5985a15432b..19bf8937676 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TaskObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinition.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinition.cs index 76f2d7e7036..ba1a1b08bbd 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinition.cs @@ -74,7 +74,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"category", n => { Category = n.GetEnumValue(); } }, {"continueOnError", n => { ContinueOnError = n.GetBoolValue(); } }, @@ -88,7 +88,7 @@ public int? Version { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("category", Category); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinitionCollectionResponse.cs index 7f2f46b3f26..8a0f7394a76 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TaskDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskObject.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskObject.cs index 0ad27990358..8e924ad4987 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskObject.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskObject.cs @@ -107,7 +107,7 @@ public List TaskProcessingResults { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"arguments", n => { Arguments = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"category", n => { Category = n.GetEnumValue(); } }, @@ -124,7 +124,7 @@ public List TaskProcessingResults { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("arguments", Arguments); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResult.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResult.cs index 076cf05d1f9..0a538df1f50 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResult.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResult.cs @@ -79,7 +79,7 @@ public TaskObject Task { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -94,7 +94,7 @@ public TaskObject Task { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResultCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResultCollectionResponse.cs index c7ece9a687c..e1643b8d82d 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResultCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskProcessingResultCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TaskProcessingResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReport.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReport.cs index cb7000b5dd6..795403d0667 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReport.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReport.cs @@ -113,7 +113,7 @@ public int? UnprocessedUsersCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"failedUsersCount", n => { FailedUsersCount = n.GetIntValue(); } }, @@ -133,7 +133,7 @@ public int? UnprocessedUsersCount { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportCollectionResponse.cs index c7379d0a5b0..261432ba1c1 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TaskReport.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportSummary.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportSummary.cs index 8c1c84da970..de52ef0cde4 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TaskReportSummary.cs @@ -66,7 +66,7 @@ public static TaskReportSummary CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"failedTasks", n => { FailedTasks = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("failedTasks", FailedTasks); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TimeBasedAttributeTrigger.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TimeBasedAttributeTrigger.cs index 55129f084d1..e5e4244f947 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TimeBasedAttributeTrigger.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TimeBasedAttributeTrigger.cs @@ -33,7 +33,7 @@ public TimeBasedAttributeTrigger() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"offsetInDays", n => { OffsetInDays = n.GetIntValue(); } }, {"timeBasedAttribute", n => { TimeBasedAttribute = n.GetEnumValue(); } }, @@ -43,7 +43,7 @@ public TimeBasedAttributeTrigger() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("offsetInDays", OffsetInDays); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TriggerAndScopeBasedConditions.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TriggerAndScopeBasedConditions.cs index fc0748bc008..3897876e16e 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TriggerAndScopeBasedConditions.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/TriggerAndScopeBasedConditions.cs @@ -51,7 +51,7 @@ public TriggerAndScopeBasedConditions() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"scope", n => { Scope = n.GetObjectValue(Microsoft.Graph.Models.SubjectSet.CreateFromDiscriminatorValue); } }, {"trigger", n => { Trigger = n.GetObjectValue(WorkflowExecutionTrigger.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public TriggerAndScopeBasedConditions() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("scope", Scope); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResult.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResult.cs index 0b25ef79cae..e38ef9597c2 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResult.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResult.cs @@ -90,7 +90,7 @@ public int? WorkflowVersion { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"failedTasksCount", n => { FailedTasksCount = n.GetIntValue(); } }, @@ -109,7 +109,7 @@ public int? WorkflowVersion { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResultCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResultCollectionResponse.cs index 29a1aad2b08..0009d00d16b 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResultCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserProcessingResultCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserProcessingResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserSummary.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserSummary.cs index a1c61c12738..425c80e63a5 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/UserSummary.cs @@ -71,7 +71,7 @@ public static UserSummary CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"failedTasks", n => { FailedTasks = n.GetIntValue(); } }, {"failedUsers", n => { FailedUsers = n.GetIntValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("failedTasks", FailedTasks); writer.WriteIntValue("failedUsers", FailedUsers); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Workflow.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Workflow.cs index d47e49a0bc3..d85f44a4e86 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Workflow.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/Workflow.cs @@ -11,7 +11,7 @@ public DateTimeOffset? DeletedDateTime { get { return BackingStore?.Get("deletedDateTime"); } set { BackingStore?.Set("deletedDateTime", value); } } - /// The unique identifier of the Azure AD identity that last modified the workflow object. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow object. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ExecutionScope { @@ -122,7 +122,7 @@ public Workflow() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deletedDateTime", n => { DeletedDateTime = n.GetDateTimeOffsetValue(); } }, {"executionScope", n => { ExecutionScope = n.GetCollectionOfObjectValues(UserProcessingResult.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -139,7 +139,7 @@ public Workflow() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("deletedDateTime", DeletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowBase.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowBase.cs index a1164f2a15a..3b8a7a3cf3e 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowBase.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowBase.cs @@ -90,7 +90,7 @@ public bool? IsSchedulingEnabled { get { return BackingStore?.Get("isSchedulingEnabled"); } set { BackingStore?.Set("isSchedulingEnabled", value); } } - /// The unique identifier of the Azure Active Directory identity that last modified the workflow. + /// The unique identifier of the Microsoft Entra identity that last modified the workflow. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.User? LastModifiedBy { @@ -160,7 +160,7 @@ public static WorkflowBase CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"category", n => { Category = n.GetEnumValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue); } }, @@ -180,7 +180,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("category", Category); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowCollectionResponse.cs index 2de89061d47..3454b35374d 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Workflow.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionConditions.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionConditions.cs index 212b009769d..ea05094bd59 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionConditions.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionConditions.cs @@ -51,7 +51,7 @@ public static WorkflowExecutionConditions CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionTrigger.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionTrigger.cs index 4dcf6fd779b..2a453591229 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionTrigger.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowExecutionTrigger.cs @@ -50,7 +50,7 @@ public static WorkflowExecutionTrigger CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplate.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplate.cs index 2a5525c6455..990e12f7489 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplate.cs @@ -78,7 +78,7 @@ public List Tasks { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"category", n => { Category = n.GetEnumValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public List Tasks { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("category", Category); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplateCollectionResponse.cs index b8a9663477d..2b401ec1a22 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkflowTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersion.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersion.cs index c7e0a9250bc..f34b597ff2a 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersion.cs @@ -28,7 +28,7 @@ public WorkflowVersion() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"versionNumber", n => { VersionNumber = n.GetIntValue(); } }, }; @@ -37,7 +37,7 @@ public WorkflowVersion() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("versionNumber", VersionNumber); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersionCollectionResponse.cs index 599049b8481..19df71550ee 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/WorkflowVersionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkflowVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProtectionRoot.cs b/src/Microsoft.Graph/Generated/Models/IdentityProtectionRoot.cs index 0e3d6092133..a2d6d483278 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProtectionRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProtectionRoot.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Risk detection in Azure AD Identity Protection and the associated information about the detection. + /// Risk detection in Microsoft Entra ID Protection and the associated information about the detection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RiskDetections { @@ -42,7 +42,7 @@ public List RiskDetections { set { BackingStore?.Set("riskDetections", value); } } #endif - /// Azure AD service principals that are at risk. + /// Microsoft Entra service principals that are at risk. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RiskyServicePrincipals { @@ -56,7 +56,7 @@ public List RiskyServicePrincipals { set { BackingStore?.Set("riskyServicePrincipals", value); } } #endif - /// Users that are flagged as at-risk by Azure AD Identity Protection. + /// Users that are flagged as at-risk by Microsoft Entra ID Protection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RiskyUsers { @@ -70,7 +70,7 @@ public List RiskyUsers { set { BackingStore?.Set("riskyUsers", value); } } #endif - /// Represents information about detected at-risk service principals in an Azure AD tenant. + /// Represents information about detected at-risk service principals in a Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ServicePrincipalRiskDetections { @@ -102,7 +102,7 @@ public static IdentityProtectionRoot CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"riskDetections", n => { RiskDetections = n.GetCollectionOfObjectValues(RiskDetection.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("riskDetections", RiskDetections); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs b/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs index 71954e8aae0..b06fd1ecf19 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProvider.cs @@ -73,7 +73,7 @@ public string Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"clientSecret", n => { ClientSecret = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public string Type { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("clientId", ClientId); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs b/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs index aee2c3e5222..30bc5051c83 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs @@ -40,7 +40,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public string DisplayName { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProviderBaseCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityProviderBaseCollectionResponse.cs index ab82bf8220b..ab01489f8d1 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProviderBaseCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProviderBaseCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IdentityProviderBase.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProviderCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityProviderCollectionResponse.cs index 4887ab8c67b..181b0029b76 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProviderCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProviderCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IdentityProvider.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs b/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs index 63b1d454acc..1c85b614046 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentitySecurityDefaultsEnforcementPolicy.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class IdentitySecurityDefaultsEnforcementPolicy : PolicyBase, IParsable { - /// If set to true, Azure Active Directory security defaults are enabled for the tenant. + /// If set to true, Microsoft Entra security defaults are enabled for the tenant. public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } @@ -28,7 +28,7 @@ public IdentitySecurityDefaultsEnforcementPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, }; @@ -37,7 +37,7 @@ public IdentitySecurityDefaultsEnforcementPolicy() : base() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isEnabled", IsEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/IdentitySet.cs b/src/Microsoft.Graph/Generated/Models/IdentitySet.cs index 64d8f83c489..ea99c739579 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentitySet.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentitySet.cs @@ -88,6 +88,7 @@ public static IdentitySet CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.chatMessageFromIdentitySet" => new ChatMessageFromIdentitySet(), "#microsoft.graph.chatMessageMentionedIdentitySet" => new ChatMessageMentionedIdentitySet(), "#microsoft.graph.chatMessageReactionIdentitySet" => new ChatMessageReactionIdentitySet(), + "#microsoft.graph.communicationsIdentitySet" => new CommunicationsIdentitySet(), "#microsoft.graph.sharePointIdentitySet" => new SharePointIdentitySet(), _ => new IdentitySet(), }; @@ -95,7 +96,7 @@ public static IdentitySet CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"application", n => { Application = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"device", n => { Device = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, @@ -107,7 +108,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("application", Application); writer.WriteObjectValue("device", Device); diff --git a/src/Microsoft.Graph/Generated/Models/IdentitySource.cs b/src/Microsoft.Graph/Generated/Models/IdentitySource.cs index 8e1d5d4e293..1d019b54478 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentitySource.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentitySource.cs @@ -53,7 +53,7 @@ public static IdentitySource CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlow.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlow.cs index 904f7342139..a1a8a6521c5 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlow.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlow.cs @@ -31,7 +31,7 @@ public float? UserFlowTypeVersion { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userFlowType", n => { UserFlowType = n.GetEnumValue(); } }, {"userFlowTypeVersion", n => { UserFlowTypeVersion = n.GetFloatValue(); } }, @@ -41,7 +41,7 @@ public float? UserFlowTypeVersion { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("userFlowType", UserFlowType); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs index 535c7aedd61..892d55d9037 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttribute.cs @@ -60,7 +60,7 @@ public IdentityUserFlowAttributeType? UserFlowAttributeType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"dataType", n => { DataType = n.GetEnumValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -72,7 +72,7 @@ public IdentityUserFlowAttributeType? UserFlowAttributeType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("dataType", DataType); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs index d4e3c7f2ef2..5e0dea3339e 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignment.cs @@ -74,7 +74,7 @@ public IdentityUserFlowAttributeInputType? UserInputType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"isOptional", n => { IsOptional = n.GetBoolValue(); } }, @@ -88,7 +88,7 @@ public IdentityUserFlowAttributeInputType? UserInputType { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignmentCollectionResponse.cs index 0002f4e5c2b..9aa8a7cf785 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IdentityUserFlowAttributeAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeCollectionResponse.cs index 4cf3ce616a0..80d1ec140fa 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityUserFlowAttributeCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IdentityUserFlowAttribute.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IdleSessionSignOut.cs b/src/Microsoft.Graph/Generated/Models/IdleSessionSignOut.cs index 63d30569d6f..c735fa0a837 100644 --- a/src/Microsoft.Graph/Generated/Models/IdleSessionSignOut.cs +++ b/src/Microsoft.Graph/Generated/Models/IdleSessionSignOut.cs @@ -61,7 +61,7 @@ public static IdleSessionSignOut CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isEnabled", IsEnabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Image.cs b/src/Microsoft.Graph/Generated/Models/Image.cs index 27968ae5019..e0e13f2b1f8 100644 --- a/src/Microsoft.Graph/Generated/Models/Image.cs +++ b/src/Microsoft.Graph/Generated/Models/Image.cs @@ -56,7 +56,7 @@ public static Image CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"height", n => { Height = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("height", Height); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ImageInfo.cs b/src/Microsoft.Graph/Generated/Models/ImageInfo.cs index 05cc5bf8700..9239d18e8a0 100644 --- a/src/Microsoft.Graph/Generated/Models/ImageInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ImageInfo.cs @@ -93,7 +93,7 @@ public static ImageInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addImageQuery", n => { AddImageQuery = n.GetBoolValue(); } }, {"alternateText", n => { AlternateText = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("addImageQuery", AddImageQuery); writer.WriteStringValue("alternateText", AlternateText); diff --git a/src/Microsoft.Graph/Generated/Models/ImplicitGrantSettings.cs b/src/Microsoft.Graph/Generated/Models/ImplicitGrantSettings.cs index 64bf1309663..8a3db89afe0 100644 --- a/src/Microsoft.Graph/Generated/Models/ImplicitGrantSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/ImplicitGrantSettings.cs @@ -56,7 +56,7 @@ public static ImplicitGrantSettings CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"enableAccessTokenIssuance", n => { EnableAccessTokenIssuance = n.GetBoolValue(); } }, {"enableIdTokenIssuance", n => { EnableIdTokenIssuance = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("enableAccessTokenIssuance", EnableAccessTokenIssuance); writer.WriteBoolValue("enableIdTokenIssuance", EnableIdTokenIssuance); diff --git a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs index 1e730622a9e..8b3e0b58c4d 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentity.cs @@ -118,7 +118,7 @@ public ImportedWindowsAutopilotDeviceIdentityState State { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedUserPrincipalName", n => { AssignedUserPrincipalName = n.GetStringValue(); } }, {"groupTag", n => { GroupTag = n.GetStringValue(); } }, @@ -133,7 +133,7 @@ public ImportedWindowsAutopilotDeviceIdentityState State { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("assignedUserPrincipalName", AssignedUserPrincipalName); diff --git a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityCollectionResponse.cs index 1e3113ae6a2..21667ab7fcb 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityState.cs b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityState.cs index ffe9de1bfaf..9646bb2380c 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityState.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityState.cs @@ -84,7 +84,7 @@ public static ImportedWindowsAutopilotDeviceIdentityState CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceErrorCode", n => { DeviceErrorCode = n.GetIntValue(); } }, {"deviceErrorName", n => { DeviceErrorName = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceErrorCode", DeviceErrorCode); writer.WriteStringValue("deviceErrorName", DeviceErrorName); diff --git a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUpload.cs b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUpload.cs index 3de1fc0f828..26746e4f442 100644 --- a/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUpload.cs +++ b/src/Microsoft.Graph/Generated/Models/ImportedWindowsAutopilotDeviceIdentityUpload.cs @@ -44,7 +44,7 @@ public ImportedWindowsAutopilotDeviceIdentityUploadStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTimeUtc", n => { CreatedDateTimeUtc = n.GetDateTimeOffsetValue(); } }, {"deviceIdentities", n => { DeviceIdentities = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public ImportedWindowsAutopilotDeviceIdentityUploadStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTimeUtc", CreatedDateTimeUtc); diff --git a/src/Microsoft.Graph/Generated/Models/InboundOutboundPolicyConfiguration.cs b/src/Microsoft.Graph/Generated/Models/InboundOutboundPolicyConfiguration.cs index 3a158a7f039..eac72a2e885 100644 --- a/src/Microsoft.Graph/Generated/Models/InboundOutboundPolicyConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/InboundOutboundPolicyConfiguration.cs @@ -56,7 +56,7 @@ public static InboundOutboundPolicyConfiguration CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"inboundAllowed", n => { InboundAllowed = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("inboundAllowed", InboundAllowed); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs b/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs index ab2fdf10790..e7b3ca84d44 100644 --- a/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs +++ b/src/Microsoft.Graph/Generated/Models/IncludeAllAccountTargetContent.cs @@ -23,7 +23,7 @@ public IncludeAllAccountTargetContent() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public IncludeAllAccountTargetContent() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IncomingCallOptions.cs b/src/Microsoft.Graph/Generated/Models/IncomingCallOptions.cs index 61848fd219a..cc98c013de0 100644 --- a/src/Microsoft.Graph/Generated/Models/IncomingCallOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/IncomingCallOptions.cs @@ -23,7 +23,7 @@ public IncomingCallOptions() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public IncomingCallOptions() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IncomingContext.cs b/src/Microsoft.Graph/Generated/Models/IncomingContext.cs index e003da51dda..c651971e11a 100644 --- a/src/Microsoft.Graph/Generated/Models/IncomingContext.cs +++ b/src/Microsoft.Graph/Generated/Models/IncomingContext.cs @@ -102,7 +102,7 @@ public static IncomingContext CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"observedParticipantId", n => { ObservedParticipantId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("observedParticipantId", ObservedParticipantId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IncompleteData.cs b/src/Microsoft.Graph/Generated/Models/IncompleteData.cs index e2b160d2019..91c70227d40 100644 --- a/src/Microsoft.Graph/Generated/Models/IncompleteData.cs +++ b/src/Microsoft.Graph/Generated/Models/IncompleteData.cs @@ -56,7 +56,7 @@ public static IncompleteData CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"missingDataBeforeDateTime", n => { MissingDataBeforeDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("missingDataBeforeDateTime", MissingDataBeforeDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/InferenceClassification.cs b/src/Microsoft.Graph/Generated/Models/InferenceClassification.cs index c00deead5c1..29dac1e9f4c 100644 --- a/src/Microsoft.Graph/Generated/Models/InferenceClassification.cs +++ b/src/Microsoft.Graph/Generated/Models/InferenceClassification.cs @@ -31,7 +31,7 @@ public List Overrides { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"overrides", n => { Overrides = n.GetCollectionOfObjectValues(InferenceClassificationOverride.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Overrides { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("overrides", Overrides); diff --git a/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs b/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs index ecc937ea69c..100e34b7069 100644 --- a/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs +++ b/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverride.cs @@ -36,7 +36,7 @@ public EmailAddress SenderEmailAddress { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"classifyAs", n => { ClassifyAs = n.GetEnumValue(); } }, {"senderEmailAddress", n => { SenderEmailAddress = n.GetObjectValue(EmailAddress.CreateFromDiscriminatorValue); } }, @@ -46,7 +46,7 @@ public EmailAddress SenderEmailAddress { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("classifyAs", ClassifyAs); diff --git a/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverrideCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverrideCollectionResponse.cs index d913beb5260..5a364bb83af 100644 --- a/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverrideCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/InferenceClassificationOverrideCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(InferenceClassificationOverride.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/InformationProtection.cs b/src/Microsoft.Graph/Generated/Models/InformationProtection.cs index 1b928f32716..f8fe66c5240 100644 --- a/src/Microsoft.Graph/Generated/Models/InformationProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/InformationProtection.cs @@ -74,7 +74,7 @@ public static InformationProtection CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bitlocker", n => { Bitlocker = n.GetObjectValue(Microsoft.Graph.Models.Bitlocker.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("bitlocker", Bitlocker); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/InformationalUrl.cs b/src/Microsoft.Graph/Generated/Models/InformationalUrl.cs index 77465b0f5ae..d4685f5c275 100644 --- a/src/Microsoft.Graph/Generated/Models/InformationalUrl.cs +++ b/src/Microsoft.Graph/Generated/Models/InformationalUrl.cs @@ -116,7 +116,7 @@ public static InformationalUrl CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"logoUrl", n => { LogoUrl = n.GetStringValue(); } }, {"marketingUrl", n => { MarketingUrl = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("logoUrl", LogoUrl); writer.WriteStringValue("marketingUrl", MarketingUrl); diff --git a/src/Microsoft.Graph/Generated/Models/Initiator.cs b/src/Microsoft.Graph/Generated/Models/Initiator.cs index 16b68855b95..6072b4275ac 100644 --- a/src/Microsoft.Graph/Generated/Models/Initiator.cs +++ b/src/Microsoft.Graph/Generated/Models/Initiator.cs @@ -28,7 +28,7 @@ public Initiator() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiatorType", n => { InitiatorType = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public Initiator() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("initiatorType", InitiatorType); diff --git a/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs b/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs index 9f0fc1d38b8..700ac963913 100644 --- a/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/InsightIdentity.cs @@ -88,7 +88,7 @@ public static InsightIdentity CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/InsightValueDouble.cs b/src/Microsoft.Graph/Generated/Models/InsightValueDouble.cs index 7c19c3cb8a9..63dd3970296 100644 --- a/src/Microsoft.Graph/Generated/Models/InsightValueDouble.cs +++ b/src/Microsoft.Graph/Generated/Models/InsightValueDouble.cs @@ -31,7 +31,7 @@ public InsightValueDouble() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetDoubleValue(); } }, }; @@ -40,7 +40,7 @@ public InsightValueDouble() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/InsightValueInt.cs b/src/Microsoft.Graph/Generated/Models/InsightValueInt.cs index 730537f206a..851a17cc039 100644 --- a/src/Microsoft.Graph/Generated/Models/InsightValueInt.cs +++ b/src/Microsoft.Graph/Generated/Models/InsightValueInt.cs @@ -31,7 +31,7 @@ public InsightValueInt() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -40,7 +40,7 @@ public InsightValueInt() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IntegerRange.cs b/src/Microsoft.Graph/Generated/Models/IntegerRange.cs index 9513dba7347..6898c961274 100644 --- a/src/Microsoft.Graph/Generated/Models/IntegerRange.cs +++ b/src/Microsoft.Graph/Generated/Models/IntegerRange.cs @@ -56,7 +56,7 @@ public static IntegerRange CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"end", n => { End = n.GetLongValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("end", End); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs b/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs index 347ba355a65..2dcc159de14 100644 --- a/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs +++ b/src/Microsoft.Graph/Generated/Models/InternalDomainFederation.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class InternalDomainFederation : SamlOrWsFedProvider, IParsable { - /// URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Azure Active Directory (Azure AD). Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. + /// URL of the endpoint used by active clients when authenticating with federated domains set up for single sign-on in Microsoft Entra ID. Corresponds to the ActiveLogOnUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ActiveSignInUri { @@ -20,12 +20,12 @@ public string ActiveSignInUri { set { BackingStore?.Set("activeSignInUri", value); } } #endif - /// Determines whether Azure AD accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. + /// Determines whether Microsoft Entra ID accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. public Microsoft.Graph.Models.FederatedIdpMfaBehavior? FederatedIdpMfaBehavior { get { return BackingStore?.Get("federatedIdpMfaBehavior"); } set { BackingStore?.Set("federatedIdpMfaBehavior", value); } } - /// If true, when SAML authentication requests are sent to the federated SAML IdP, Azure AD will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. + /// If true, when SAML authentication requests are sent to the federated SAML IdP, Microsoft Entra ID will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. public bool? IsSignedAuthenticationRequestRequired { get { return BackingStore?.Get("isSignedAuthenticationRequestRequired"); } set { BackingStore?.Set("isSignedAuthenticationRequestRequired", value); } @@ -63,7 +63,7 @@ public Microsoft.Graph.Models.SigningCertificateUpdateStatus SigningCertificateU set { BackingStore?.Set("signingCertificateUpdateStatus", value); } } #endif - /// URI that clients are redirected to when they sign out of Azure AD services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. + /// URI that clients are redirected to when they sign out of Microsoft Entra services. Corresponds to the LogOffUri property of the Set-MsolDomainFederationSettings MSOnline v1 PowerShell cmdlet. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SignOutUri { @@ -94,7 +94,7 @@ public InternalDomainFederation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeSignInUri", n => { ActiveSignInUri = n.GetStringValue(); } }, {"federatedIdpMfaBehavior", n => { FederatedIdpMfaBehavior = n.GetEnumValue(); } }, @@ -109,7 +109,7 @@ public InternalDomainFederation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("activeSignInUri", ActiveSignInUri); diff --git a/src/Microsoft.Graph/Generated/Models/InternalDomainFederationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/InternalDomainFederationCollectionResponse.cs index c53c4f0eefb..3073d7f8992 100644 --- a/src/Microsoft.Graph/Generated/Models/InternalDomainFederationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/InternalDomainFederationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(InternalDomainFederation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/InternalSponsors.cs b/src/Microsoft.Graph/Generated/Models/InternalSponsors.cs index 2595b206983..58b4ee023ff 100644 --- a/src/Microsoft.Graph/Generated/Models/InternalSponsors.cs +++ b/src/Microsoft.Graph/Generated/Models/InternalSponsors.cs @@ -23,7 +23,7 @@ public InternalSponsors() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public InternalSponsors() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/InternetExplorerMode.cs b/src/Microsoft.Graph/Generated/Models/InternetExplorerMode.cs index b3a5b567b5b..1a79c51cfc5 100644 --- a/src/Microsoft.Graph/Generated/Models/InternetExplorerMode.cs +++ b/src/Microsoft.Graph/Generated/Models/InternetExplorerMode.cs @@ -31,7 +31,7 @@ public List SiteLists { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"siteLists", n => { SiteLists = n.GetCollectionOfObjectValues(BrowserSiteList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List SiteLists { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("siteLists", SiteLists); diff --git a/src/Microsoft.Graph/Generated/Models/InternetMessageHeader.cs b/src/Microsoft.Graph/Generated/Models/InternetMessageHeader.cs index 8381ae17327..1aa9ca39578 100644 --- a/src/Microsoft.Graph/Generated/Models/InternetMessageHeader.cs +++ b/src/Microsoft.Graph/Generated/Models/InternetMessageHeader.cs @@ -74,7 +74,7 @@ public static InternetMessageHeader CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IntuneBrand.cs b/src/Microsoft.Graph/Generated/Models/IntuneBrand.cs index 808ddd0a03c..d18a630cfc2 100644 --- a/src/Microsoft.Graph/Generated/Models/IntuneBrand.cs +++ b/src/Microsoft.Graph/Generated/Models/IntuneBrand.cs @@ -218,7 +218,7 @@ public static IntuneBrand CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contactITEmailAddress", n => { ContactITEmailAddress = n.GetStringValue(); } }, {"contactITName", n => { ContactITName = n.GetStringValue(); } }, @@ -241,7 +241,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contactITEmailAddress", ContactITEmailAddress); writer.WriteStringValue("contactITName", ContactITName); diff --git a/src/Microsoft.Graph/Generated/Models/InvestigationSecurityState.cs b/src/Microsoft.Graph/Generated/Models/InvestigationSecurityState.cs index 35dc6f9c69c..1eaa331b04a 100644 --- a/src/Microsoft.Graph/Generated/Models/InvestigationSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/InvestigationSecurityState.cs @@ -74,7 +74,7 @@ public static InvestigationSecurityState CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Invitation.cs b/src/Microsoft.Graph/Generated/Models/Invitation.cs index aab575b5eb4..d1e59ff55bb 100644 --- a/src/Microsoft.Graph/Generated/Models/Invitation.cs +++ b/src/Microsoft.Graph/Generated/Models/Invitation.cs @@ -139,7 +139,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"inviteRedeemUrl", n => { InviteRedeemUrl = n.GetStringValue(); } }, {"inviteRedirectUrl", n => { InviteRedirectUrl = n.GetStringValue(); } }, @@ -157,7 +157,7 @@ public string Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("invitedUser", InvitedUser); diff --git a/src/Microsoft.Graph/Generated/Models/InvitationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/InvitationCollectionResponse.cs index 4d8d0a4ced0..09e89e0fa56 100644 --- a/src/Microsoft.Graph/Generated/Models/InvitationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/InvitationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Invitation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/InvitationParticipantInfo.cs b/src/Microsoft.Graph/Generated/Models/InvitationParticipantInfo.cs index 3ce130f61e8..c4aa1ce523d 100644 --- a/src/Microsoft.Graph/Generated/Models/InvitationParticipantInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/InvitationParticipantInfo.cs @@ -98,7 +98,7 @@ public static InvitationParticipantInfo CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hidden", n => { Hidden = n.GetBoolValue(); } }, {"identity", n => { Identity = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("hidden", Hidden); writer.WriteObjectValue("identity", Identity); diff --git a/src/Microsoft.Graph/Generated/Models/InviteParticipantsOperation.cs b/src/Microsoft.Graph/Generated/Models/InviteParticipantsOperation.cs index cfcc2aecdd9..56eeb7e947e 100644 --- a/src/Microsoft.Graph/Generated/Models/InviteParticipantsOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/InviteParticipantsOperation.cs @@ -31,7 +31,7 @@ public List Participants { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"participants", n => { Participants = n.GetCollectionOfObjectValues(InvitationParticipantInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Participants { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("participants", Participants); diff --git a/src/Microsoft.Graph/Generated/Models/InvitedUserMessageInfo.cs b/src/Microsoft.Graph/Generated/Models/InvitedUserMessageInfo.cs index 1f61a9c29f7..98eab695f11 100644 --- a/src/Microsoft.Graph/Generated/Models/InvitedUserMessageInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/InvitedUserMessageInfo.cs @@ -88,7 +88,7 @@ public static InvitedUserMessageInfo CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ccRecipients", n => { CcRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"customizedMessageBody", n => { CustomizedMessageBody = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("ccRecipients", CcRecipients); writer.WriteStringValue("customizedMessageBody", CustomizedMessageBody); diff --git a/src/Microsoft.Graph/Generated/Models/IosCertificateProfile.cs b/src/Microsoft.Graph/Generated/Models/IosCertificateProfile.cs index df70fc60c52..b0aee653ebd 100644 --- a/src/Microsoft.Graph/Generated/Models/IosCertificateProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/IosCertificateProfile.cs @@ -26,7 +26,7 @@ public IosCertificateProfile() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public IosCertificateProfile() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IosCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/IosCompliancePolicy.cs index 9f6d7830d96..2d08d5e5058 100644 --- a/src/Microsoft.Graph/Generated/Models/IosCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/IosCompliancePolicy.cs @@ -114,7 +114,7 @@ public IosCompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceThreatProtectionEnabled", n => { DeviceThreatProtectionEnabled = n.GetBoolValue(); } }, {"deviceThreatProtectionRequiredSecurityLevel", n => { DeviceThreatProtectionRequiredSecurityLevel = n.GetEnumValue(); } }, @@ -136,7 +136,7 @@ public IosCompliancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("deviceThreatProtectionEnabled", DeviceThreatProtectionEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/IosCustomConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IosCustomConfiguration.cs index 2a1226d7461..a963c0f5ebb 100644 --- a/src/Microsoft.Graph/Generated/Models/IosCustomConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosCustomConfiguration.cs @@ -68,7 +68,7 @@ public IosCustomConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"payload", n => { Payload = n.GetByteArrayValue(); } }, {"payloadFileName", n => { PayloadFileName = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public IosCustomConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("payload", Payload); diff --git a/src/Microsoft.Graph/Generated/Models/IosDeviceFeaturesConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IosDeviceFeaturesConfiguration.cs index a215a50f0bb..6375667e09e 100644 --- a/src/Microsoft.Graph/Generated/Models/IosDeviceFeaturesConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosDeviceFeaturesConfiguration.cs @@ -96,7 +96,7 @@ public IosDeviceFeaturesConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assetTagTemplate", n => { AssetTagTemplate = n.GetStringValue(); } }, {"homeScreenDockIcons", n => { HomeScreenDockIcons = n.GetCollectionOfObjectValues(IosHomeScreenItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -109,7 +109,7 @@ public IosDeviceFeaturesConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("assetTagTemplate", AssetTagTemplate); diff --git a/src/Microsoft.Graph/Generated/Models/IosDeviceType.cs b/src/Microsoft.Graph/Generated/Models/IosDeviceType.cs index 90d83843ee0..af6b53dde85 100644 --- a/src/Microsoft.Graph/Generated/Models/IosDeviceType.cs +++ b/src/Microsoft.Graph/Generated/Models/IosDeviceType.cs @@ -59,7 +59,7 @@ public static IosDeviceType CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"iPad", n => { IPad = n.GetBoolValue(); } }, {"iPhoneAndIPod", n => { IPhoneAndIPod = n.GetBoolValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("iPad", IPad); writer.WriteBoolValue("iPhoneAndIPod", IPhoneAndIPod); diff --git a/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs index 274fb69452b..d0c85b9b762 100644 --- a/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosGeneralDeviceConfiguration.cs @@ -852,7 +852,7 @@ public IosGeneralDeviceConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountBlockModification", n => { AccountBlockModification = n.GetBoolValue(); } }, {"activationLockAllowWhenSupervised", n => { ActivationLockAllowWhenSupervised = n.GetBoolValue(); } }, @@ -991,7 +991,7 @@ public IosGeneralDeviceConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("accountBlockModification", AccountBlockModification); diff --git a/src/Microsoft.Graph/Generated/Models/IosHomeScreenApp.cs b/src/Microsoft.Graph/Generated/Models/IosHomeScreenApp.cs index c198802c3f5..844ba4e71fd 100644 --- a/src/Microsoft.Graph/Generated/Models/IosHomeScreenApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosHomeScreenApp.cs @@ -40,7 +40,7 @@ public IosHomeScreenApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bundleID", n => { BundleID = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public IosHomeScreenApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("bundleID", BundleID); diff --git a/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolder.cs b/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolder.cs index 66f2760415b..9d6eb77f883 100644 --- a/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolder.cs @@ -40,7 +40,7 @@ public IosHomeScreenFolder() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"pages", n => { Pages = n.GetCollectionOfObjectValues(IosHomeScreenFolderPage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -49,7 +49,7 @@ public IosHomeScreenFolder() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("pages", Pages); diff --git a/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolderPage.cs b/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolderPage.cs index 44a4b56cf09..c0b72e2d7dd 100644 --- a/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolderPage.cs +++ b/src/Microsoft.Graph/Generated/Models/IosHomeScreenFolderPage.cs @@ -77,7 +77,7 @@ public static IosHomeScreenFolderPage CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"apps", n => { Apps = n.GetCollectionOfObjectValues(IosHomeScreenApp.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/IosHomeScreenItem.cs b/src/Microsoft.Graph/Generated/Models/IosHomeScreenItem.cs index 8f21d8b076d..05a9c8fe06d 100644 --- a/src/Microsoft.Graph/Generated/Models/IosHomeScreenItem.cs +++ b/src/Microsoft.Graph/Generated/Models/IosHomeScreenItem.cs @@ -68,7 +68,7 @@ public static IosHomeScreenItem CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -78,7 +78,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/IosHomeScreenPage.cs b/src/Microsoft.Graph/Generated/Models/IosHomeScreenPage.cs index 857d545cec0..926e3622483 100644 --- a/src/Microsoft.Graph/Generated/Models/IosHomeScreenPage.cs +++ b/src/Microsoft.Graph/Generated/Models/IosHomeScreenPage.cs @@ -77,7 +77,7 @@ public static IosHomeScreenPage CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"icons", n => { Icons = n.GetCollectionOfObjectValues(IosHomeScreenItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteCollectionOfObjectValues("icons", Icons); diff --git a/src/Microsoft.Graph/Generated/Models/IosLobApp.cs b/src/Microsoft.Graph/Generated/Models/IosLobApp.cs index 124a2a0b2c2..46033566f12 100644 --- a/src/Microsoft.Graph/Generated/Models/IosLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosLobApp.cs @@ -101,7 +101,7 @@ public IosLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"buildNumber", n => { BuildNumber = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IosLobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applicableDeviceType", ApplicableDeviceType); diff --git a/src/Microsoft.Graph/Generated/Models/IosLobAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/IosLobAppAssignmentSettings.cs index eacea8f9a26..4f1f0faf9f9 100644 --- a/src/Microsoft.Graph/Generated/Models/IosLobAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/IosLobAppAssignmentSettings.cs @@ -50,7 +50,7 @@ public IosLobAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isRemovable", n => { IsRemovable = n.GetBoolValue(); } }, {"uninstallOnDeviceRemoval", n => { UninstallOnDeviceRemoval = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IosLobAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isRemovable", IsRemovable); diff --git a/src/Microsoft.Graph/Generated/Models/IosLobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IosLobAppCollectionResponse.cs index 4885f73c286..ad763325007 100644 --- a/src/Microsoft.Graph/Generated/Models/IosLobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IosLobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IosLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs b/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs index dcbd2f0c4a7..e36f9200049 100644 --- a/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/IosManagedAppProtection.cs b/src/Microsoft.Graph/Generated/Models/IosManagedAppProtection.cs index bed95b3ec92..b8ed0e251d9 100644 --- a/src/Microsoft.Graph/Generated/Models/IosManagedAppProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/IosManagedAppProtection.cs @@ -97,7 +97,7 @@ public IosManagedAppProtection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDataEncryptionType", n => { AppDataEncryptionType = n.GetEnumValue(); } }, {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -112,7 +112,7 @@ public IosManagedAppProtection() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("appDataEncryptionType", AppDataEncryptionType); diff --git a/src/Microsoft.Graph/Generated/Models/IosManagedAppProtectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IosManagedAppProtectionCollectionResponse.cs index 6fba056e92e..e85f72abc42 100644 --- a/src/Microsoft.Graph/Generated/Models/IosManagedAppProtectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IosManagedAppProtectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IosManagedAppProtection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IosManagedAppRegistration.cs b/src/Microsoft.Graph/Generated/Models/IosManagedAppRegistration.cs index 4f7c85eb193..e38c5fb1159 100644 --- a/src/Microsoft.Graph/Generated/Models/IosManagedAppRegistration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosManagedAppRegistration.cs @@ -26,7 +26,7 @@ public IosManagedAppRegistration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public IosManagedAppRegistration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs index 0e747c0efcb..d4f2e168747 100644 --- a/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/IosMinimumOperatingSystem.cs @@ -89,7 +89,7 @@ public static IosMinimumOperatingSystem CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"v10_0", n => { V100 = n.GetBoolValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteBoolValue("v10_0", V100); diff --git a/src/Microsoft.Graph/Generated/Models/IosMobileAppConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IosMobileAppConfiguration.cs index c41bba1b86c..4989bdab1bf 100644 --- a/src/Microsoft.Graph/Generated/Models/IosMobileAppConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosMobileAppConfiguration.cs @@ -54,7 +54,7 @@ public IosMobileAppConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"encodedSettingXml", n => { EncodedSettingXml = n.GetByteArrayValue(); } }, {"settings", n => { Settings = n.GetCollectionOfObjectValues(AppConfigurationSettingItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -64,7 +64,7 @@ public IosMobileAppConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("encodedSettingXml", EncodedSettingXml); diff --git a/src/Microsoft.Graph/Generated/Models/IosMobileAppIdentifier.cs b/src/Microsoft.Graph/Generated/Models/IosMobileAppIdentifier.cs index f0503cbaf11..c876805d6f1 100644 --- a/src/Microsoft.Graph/Generated/Models/IosMobileAppIdentifier.cs +++ b/src/Microsoft.Graph/Generated/Models/IosMobileAppIdentifier.cs @@ -40,7 +40,7 @@ public IosMobileAppIdentifier() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bundleId", n => { BundleId = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public IosMobileAppIdentifier() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("bundleId", BundleId); diff --git a/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs b/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs index 1d1faae3954..24fe7705760 100644 --- a/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs +++ b/src/Microsoft.Graph/Generated/Models/IosNetworkUsageRule.cs @@ -73,7 +73,7 @@ public static IosNetworkUsageRule CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cellularDataBlockWhenRoaming", n => { CellularDataBlockWhenRoaming = n.GetBoolValue(); } }, {"cellularDataBlocked", n => { CellularDataBlocked = n.GetBoolValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("cellularDataBlocked", CellularDataBlocked); writer.WriteBoolValue("cellularDataBlockWhenRoaming", CellularDataBlockWhenRoaming); diff --git a/src/Microsoft.Graph/Generated/Models/IosNotificationSettings.cs b/src/Microsoft.Graph/Generated/Models/IosNotificationSettings.cs index 58761919529..4db13cab504 100644 --- a/src/Microsoft.Graph/Generated/Models/IosNotificationSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/IosNotificationSettings.cs @@ -121,7 +121,7 @@ public static IosNotificationSettings CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alertType", n => { AlertType = n.GetEnumValue(); } }, {"appName", n => { AppName = n.GetStringValue(); } }, @@ -139,7 +139,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("alertType", AlertType); writer.WriteStringValue("appName", AppName); diff --git a/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs b/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs index 7ce55becfba..ad316809a28 100644 --- a/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosStoreApp.cs @@ -82,7 +82,7 @@ public IosStoreApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, @@ -94,7 +94,7 @@ public IosStoreApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applicableDeviceType", ApplicableDeviceType); diff --git a/src/Microsoft.Graph/Generated/Models/IosStoreAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/IosStoreAppAssignmentSettings.cs index f18be2d1c82..0bddd6a10b2 100644 --- a/src/Microsoft.Graph/Generated/Models/IosStoreAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/IosStoreAppAssignmentSettings.cs @@ -50,7 +50,7 @@ public IosStoreAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isRemovable", n => { IsRemovable = n.GetBoolValue(); } }, {"uninstallOnDeviceRemoval", n => { UninstallOnDeviceRemoval = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IosStoreAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isRemovable", IsRemovable); diff --git a/src/Microsoft.Graph/Generated/Models/IosStoreAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IosStoreAppCollectionResponse.cs index ec212da9c2a..c420cc0376e 100644 --- a/src/Microsoft.Graph/Generated/Models/IosStoreAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IosStoreAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IosStoreApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IosUpdateConfiguration.cs b/src/Microsoft.Graph/Generated/Models/IosUpdateConfiguration.cs index f6ab3e737f3..37da3ee7065 100644 --- a/src/Microsoft.Graph/Generated/Models/IosUpdateConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/IosUpdateConfiguration.cs @@ -56,7 +56,7 @@ public IosUpdateConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeHoursEnd", n => { ActiveHoursEnd = n.GetTimeValue(); } }, {"activeHoursStart", n => { ActiveHoursStart = n.GetTimeValue(); } }, @@ -68,7 +68,7 @@ public IosUpdateConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteTimeValue("activeHoursEnd", ActiveHoursEnd); diff --git a/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs index 0718bc2d41a..36d68eea009 100644 --- a/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatus.cs @@ -135,7 +135,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"complianceGracePeriodExpirationDateTime", n => { ComplianceGracePeriodExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"deviceDisplayName", n => { DeviceDisplayName = n.GetStringValue(); } }, @@ -154,7 +154,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("complianceGracePeriodExpirationDateTime", ComplianceGracePeriodExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatusCollectionResponse.cs index 37e76aa1655..e994cc368d0 100644 --- a/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IosUpdateDeviceStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IosUpdateDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IosVppApp.cs b/src/Microsoft.Graph/Generated/Models/IosVppApp.cs index 6863fb20d4c..c86ef84be26 100644 --- a/src/Microsoft.Graph/Generated/Models/IosVppApp.cs +++ b/src/Microsoft.Graph/Generated/Models/IosVppApp.cs @@ -130,7 +130,7 @@ public IosVppApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, @@ -148,7 +148,7 @@ public IosVppApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applicableDeviceType", ApplicableDeviceType); diff --git a/src/Microsoft.Graph/Generated/Models/IosVppAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/IosVppAppAssignmentSettings.cs index aa83174a87a..cd92f208d15 100644 --- a/src/Microsoft.Graph/Generated/Models/IosVppAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/IosVppAppAssignmentSettings.cs @@ -45,7 +45,7 @@ public IosVppAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"useDeviceLicensing", n => { UseDeviceLicensing = n.GetBoolValue(); } }, {"vpnConfigurationId", n => { VpnConfigurationId = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public IosVppAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("useDeviceLicensing", UseDeviceLicensing); diff --git a/src/Microsoft.Graph/Generated/Models/IosVppAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/IosVppAppCollectionResponse.cs index 571cda11df1..1ae0624ed4b 100644 --- a/src/Microsoft.Graph/Generated/Models/IosVppAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/IosVppAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IosVppApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/IosVppEBook.cs b/src/Microsoft.Graph/Generated/Models/IosVppEBook.cs index 3a36692a69a..8ea768e59ff 100644 --- a/src/Microsoft.Graph/Generated/Models/IosVppEBook.cs +++ b/src/Microsoft.Graph/Generated/Models/IosVppEBook.cs @@ -111,7 +111,7 @@ public IosVppEBook() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appleId", n => { AppleId = n.GetStringValue(); } }, {"genres", n => { Genres = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -127,7 +127,7 @@ public IosVppEBook() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appleId", AppleId); diff --git a/src/Microsoft.Graph/Generated/Models/IosVppEBookAssignment.cs b/src/Microsoft.Graph/Generated/Models/IosVppEBookAssignment.cs index ca963ebb94b..348ae02b98f 100644 --- a/src/Microsoft.Graph/Generated/Models/IosVppEBookAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/IosVppEBookAssignment.cs @@ -20,7 +20,7 @@ public class IosVppEBookAssignment : ManagedEBookAssignment, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -28,7 +28,7 @@ public class IosVppEBookAssignment : ManagedEBookAssignment, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/IosiPadOSWebClip.cs b/src/Microsoft.Graph/Generated/Models/IosiPadOSWebClip.cs index 50cc2ead6d1..1f0a693b681 100644 --- a/src/Microsoft.Graph/Generated/Models/IosiPadOSWebClip.cs +++ b/src/Microsoft.Graph/Generated/Models/IosiPadOSWebClip.cs @@ -45,7 +45,7 @@ public IosiPadOSWebClip() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appUrl", n => { AppUrl = n.GetStringValue(); } }, {"useManagedBrowser", n => { UseManagedBrowser = n.GetBoolValue(); } }, @@ -55,7 +55,7 @@ public IosiPadOSWebClip() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appUrl", AppUrl); diff --git a/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs b/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs index 1fc72009117..56cd89686de 100644 --- a/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/IpNamedLocation.cs @@ -36,7 +36,7 @@ public bool? IsTrusted { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ipRanges", n => { IpRanges = n.GetCollectionOfObjectValues(IpRange.CreateFromDiscriminatorValue)?.ToList(); } }, {"isTrusted", n => { IsTrusted = n.GetBoolValue(); } }, @@ -46,7 +46,7 @@ public bool? IsTrusted { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("ipRanges", IpRanges); diff --git a/src/Microsoft.Graph/Generated/Models/IpRange.cs b/src/Microsoft.Graph/Generated/Models/IpRange.cs index 4f511a8d516..474bfc8e487 100644 --- a/src/Microsoft.Graph/Generated/Models/IpRange.cs +++ b/src/Microsoft.Graph/Generated/Models/IpRange.cs @@ -53,7 +53,7 @@ public static IpRange CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ItemActionStat.cs b/src/Microsoft.Graph/Generated/Models/ItemActionStat.cs index 61b2c127804..84bccf1d20f 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemActionStat.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemActionStat.cs @@ -56,7 +56,7 @@ public static ItemActionStat CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"actionCount", n => { ActionCount = n.GetIntValue(); } }, {"actorCount", n => { ActorCount = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("actionCount", ActionCount); writer.WriteIntValue("actorCount", ActorCount); diff --git a/src/Microsoft.Graph/Generated/Models/ItemActivity.cs b/src/Microsoft.Graph/Generated/Models/ItemActivity.cs index c99a8c99785..4e433cc3351 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemActivity.cs @@ -64,7 +64,7 @@ public Microsoft.Graph.Models.DriveItem DriveItem { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"access", n => { Access = n.GetObjectValue(AccessAction.CreateFromDiscriminatorValue); } }, {"activityDateTime", n => { ActivityDateTime = n.GetDateTimeOffsetValue(); } }, @@ -76,7 +76,7 @@ public Microsoft.Graph.Models.DriveItem DriveItem { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("access", Access); diff --git a/src/Microsoft.Graph/Generated/Models/ItemActivityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ItemActivityCollectionResponse.cs index 538bb4e2d81..90c0383c64b 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemActivityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemActivityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ItemActivityStat.cs b/src/Microsoft.Graph/Generated/Models/ItemActivityStat.cs index ce366d45652..ab664aa8a3b 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemActivityStat.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemActivityStat.cs @@ -130,7 +130,7 @@ public DateTimeOffset? StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"access", n => { Access = n.GetObjectValue(ItemActionStat.CreateFromDiscriminatorValue); } }, {"activities", n => { Activities = n.GetCollectionOfObjectValues(ItemActivity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -148,7 +148,7 @@ public DateTimeOffset? StartDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("access", Access); diff --git a/src/Microsoft.Graph/Generated/Models/ItemActivityStatCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ItemActivityStatCollectionResponse.cs index d1ec1959160..79632935671 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemActivityStatCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemActivityStatCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ItemAnalytics.cs b/src/Microsoft.Graph/Generated/Models/ItemAnalytics.cs index 6ac6b9bfbe7..20dfba947c0 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemAnalytics.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemAnalytics.cs @@ -59,7 +59,7 @@ public ItemActivityStat LastSevenDays { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allTime", n => { AllTime = n.GetObjectValue(ItemActivityStat.CreateFromDiscriminatorValue); } }, {"itemActivityStats", n => { ItemActivityStats = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public ItemActivityStat LastSevenDays { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("allTime", AllTime); diff --git a/src/Microsoft.Graph/Generated/Models/ItemAttachment.cs b/src/Microsoft.Graph/Generated/Models/ItemAttachment.cs index 4bd2a9a9c6a..3b65a2e3cbe 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemAttachment.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemAttachment.cs @@ -37,7 +37,7 @@ public ItemAttachment() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"item", n => { Item = n.GetObjectValue(OutlookItem.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public ItemAttachment() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("item", Item); diff --git a/src/Microsoft.Graph/Generated/Models/ItemBody.cs b/src/Microsoft.Graph/Generated/Models/ItemBody.cs index 52e70fd5e61..b9c94b3a2fb 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemBody.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemBody.cs @@ -65,7 +65,7 @@ public static ItemBody CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); writer.WriteEnumValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/ItemPreviewInfo.cs b/src/Microsoft.Graph/Generated/Models/ItemPreviewInfo.cs index 028f339bf7c..8758f825246 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemPreviewInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemPreviewInfo.cs @@ -88,7 +88,7 @@ public static ItemPreviewInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"getUrl", n => { GetUrl = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("getUrl", GetUrl); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ItemReference.cs b/src/Microsoft.Graph/Generated/Models/ItemReference.cs index ee2ee2afa8f..03abdb7be84 100644 --- a/src/Microsoft.Graph/Generated/Models/ItemReference.cs +++ b/src/Microsoft.Graph/Generated/Models/ItemReference.cs @@ -158,7 +158,7 @@ public static ItemReference CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"driveId", n => { DriveId = n.GetStringValue(); } }, {"driveType", n => { DriveType = n.GetStringValue(); } }, @@ -175,7 +175,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("driveId", DriveId); writer.WriteStringValue("driveType", DriveType); diff --git a/src/Microsoft.Graph/Generated/Models/JoinMeetingIdMeetingInfo.cs b/src/Microsoft.Graph/Generated/Models/JoinMeetingIdMeetingInfo.cs index 22c0245d554..b55b72a2393 100644 --- a/src/Microsoft.Graph/Generated/Models/JoinMeetingIdMeetingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/JoinMeetingIdMeetingInfo.cs @@ -51,7 +51,7 @@ public JoinMeetingIdMeetingInfo() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"joinMeetingId", n => { JoinMeetingId = n.GetStringValue(); } }, {"passcode", n => { Passcode = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public JoinMeetingIdMeetingInfo() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("joinMeetingId", JoinMeetingId); diff --git a/src/Microsoft.Graph/Generated/Models/JoinMeetingIdSettings.cs b/src/Microsoft.Graph/Generated/Models/JoinMeetingIdSettings.cs index 0280b01420c..95515d05a79 100644 --- a/src/Microsoft.Graph/Generated/Models/JoinMeetingIdSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/JoinMeetingIdSettings.cs @@ -79,7 +79,7 @@ public static JoinMeetingIdSettings CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isPasscodeRequired", n => { IsPasscodeRequired = n.GetBoolValue(); } }, {"joinMeetingId", n => { JoinMeetingId = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isPasscodeRequired", IsPasscodeRequired); writer.WriteStringValue("joinMeetingId", JoinMeetingId); diff --git a/src/Microsoft.Graph/Generated/Models/Json.cs b/src/Microsoft.Graph/Generated/Models/Json.cs index 934336ebf83..143318be738 100644 --- a/src/Microsoft.Graph/Generated/Models/Json.cs +++ b/src/Microsoft.Graph/Generated/Models/Json.cs @@ -46,7 +46,7 @@ public static Json CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/KeyCredential.cs b/src/Microsoft.Graph/Generated/Models/KeyCredential.cs index 70883a36381..2b8f548197f 100644 --- a/src/Microsoft.Graph/Generated/Models/KeyCredential.cs +++ b/src/Microsoft.Graph/Generated/Models/KeyCredential.cs @@ -131,7 +131,7 @@ public static KeyCredential CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"customKeyIdentifier", n => { CustomKeyIdentifier = n.GetByteArrayValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -148,7 +148,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("customKeyIdentifier", CustomKeyIdentifier); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/KeyCredentialConfiguration.cs b/src/Microsoft.Graph/Generated/Models/KeyCredentialConfiguration.cs index b99d1714bcf..cfd74f64f23 100644 --- a/src/Microsoft.Graph/Generated/Models/KeyCredentialConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/KeyCredentialConfiguration.cs @@ -61,7 +61,7 @@ public static KeyCredentialConfiguration CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"maxLifetime", n => { MaxLifetime = n.GetTimeSpanValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("maxLifetime", MaxLifetime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/KeyValue.cs b/src/Microsoft.Graph/Generated/Models/KeyValue.cs index 27c85a9c903..f2a198a0916 100644 --- a/src/Microsoft.Graph/Generated/Models/KeyValue.cs +++ b/src/Microsoft.Graph/Generated/Models/KeyValue.cs @@ -74,7 +74,7 @@ public static KeyValue CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/KeyValuePair.cs b/src/Microsoft.Graph/Generated/Models/KeyValuePair.cs index 0e2a1f6fccf..a1ff1079bd1 100644 --- a/src/Microsoft.Graph/Generated/Models/KeyValuePair.cs +++ b/src/Microsoft.Graph/Generated/Models/KeyValuePair.cs @@ -74,7 +74,7 @@ public static KeyValuePair CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/LandingPage.cs b/src/Microsoft.Graph/Generated/Models/LandingPage.cs index 459f1074b7b..66e68e0edd1 100644 --- a/src/Microsoft.Graph/Generated/Models/LandingPage.cs +++ b/src/Microsoft.Graph/Generated/Models/LandingPage.cs @@ -135,7 +135,7 @@ public List SupportedLocales { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -154,7 +154,7 @@ public List SupportedLocales { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs index 5f0f25b3294..fa31569028a 100644 --- a/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LandingPageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LandingPage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs b/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs index 21c9f0d9e0b..2bcaa433085 100644 --- a/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/LandingPageDetail.cs @@ -50,7 +50,7 @@ public string Language { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetStringValue(); } }, {"isDefaultLangauge", n => { IsDefaultLangauge = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public string Language { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs index c8eb0b788ad..346db256a2e 100644 --- a/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LandingPageDetailCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LandingPageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LearningAssignment.cs b/src/Microsoft.Graph/Generated/Models/LearningAssignment.cs index 4fc88fcd24d..b45a28aeb00 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningAssignment.cs @@ -69,7 +69,7 @@ public ItemBody Notes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"assignerUserId", n => { AssignerUserId = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public ItemBody Notes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("assignedDateTime", AssignedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/LearningContent.cs b/src/Microsoft.Graph/Generated/Models/LearningContent.cs index 168fe2b5fdc..02dd5ff0bcf 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningContent.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningContent.cs @@ -206,7 +206,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalTags", n => { AdditionalTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"contentWebUrl", n => { ContentWebUrl = n.GetStringValue(); } }, @@ -232,7 +232,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("additionalTags", AdditionalTags); diff --git a/src/Microsoft.Graph/Generated/Models/LearningContentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LearningContentCollectionResponse.cs index fd4bd8cc14f..04bef9a657f 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningContentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningContentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LearningContent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LearningCourseActivity.cs b/src/Microsoft.Graph/Generated/Models/LearningCourseActivity.cs index 8b3f463536e..00f05992eab 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningCourseActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningCourseActivity.cs @@ -93,7 +93,7 @@ public CourseStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"completionPercentage", n => { CompletionPercentage = n.GetIntValue(); } }, @@ -108,7 +108,7 @@ public CourseStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/LearningCourseActivityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LearningCourseActivityCollectionResponse.cs index fad72c58a8b..08ef2e02d4f 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningCourseActivityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningCourseActivityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LearningCourseActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LearningProvider.cs b/src/Microsoft.Graph/Generated/Models/LearningProvider.cs index de5eb131741..2688e5847a1 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningProvider.cs @@ -134,7 +134,7 @@ public string SquareLogoWebUrlForLightTheme { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"isCourseActivitySyncEnabled", n => { IsCourseActivitySyncEnabled = n.GetBoolValue(); } }, @@ -151,7 +151,7 @@ public string SquareLogoWebUrlForLightTheme { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/LearningProviderCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LearningProviderCollectionResponse.cs index 4970ef9bd36..d40111e43a2 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningProviderCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningProviderCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LearningProvider.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs b/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs index 4bcaa7e6a61..f59d1dd2a31 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs @@ -22,7 +22,7 @@ public DateTimeOffset? StartedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"startedDateTime", n => { StartedDateTime = n.GetDateTimeOffsetValue(); } }, }; @@ -31,7 +31,7 @@ public DateTimeOffset? StartedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("startedDateTime", StartedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/LicenseAssignmentState.cs b/src/Microsoft.Graph/Generated/Models/LicenseAssignmentState.cs index 020004392e8..dfb9893e147 100644 --- a/src/Microsoft.Graph/Generated/Models/LicenseAssignmentState.cs +++ b/src/Microsoft.Graph/Generated/Models/LicenseAssignmentState.cs @@ -112,7 +112,7 @@ public static LicenseAssignmentState CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedByGroup", n => { AssignedByGroup = n.GetStringValue(); } }, {"disabledPlans", n => { DisabledPlans = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("assignedByGroup", AssignedByGroup); writer.WriteCollectionOfPrimitiveValues("disabledPlans", DisabledPlans); diff --git a/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs b/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs index 4504fbda160..158bb3ef757 100644 --- a/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/LicenseDetails.cs @@ -50,7 +50,7 @@ public string SkuPartNumber { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"servicePlans", n => { ServicePlans = n.GetCollectionOfObjectValues(ServicePlanInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"skuId", n => { SkuId = n.GetGuidValue(); } }, @@ -61,7 +61,7 @@ public string SkuPartNumber { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("servicePlans", ServicePlans); diff --git a/src/Microsoft.Graph/Generated/Models/LicenseDetailsCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LicenseDetailsCollectionResponse.cs index be77d845c93..31b25676b0c 100644 --- a/src/Microsoft.Graph/Generated/Models/LicenseDetailsCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LicenseDetailsCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LicenseDetails.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LicenseProcessingState.cs b/src/Microsoft.Graph/Generated/Models/LicenseProcessingState.cs index 098405f520f..c3ac1608e3e 100644 --- a/src/Microsoft.Graph/Generated/Models/LicenseProcessingState.cs +++ b/src/Microsoft.Graph/Generated/Models/LicenseProcessingState.cs @@ -60,7 +60,7 @@ public static LicenseProcessingState CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"state", n => { State = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("state", State); diff --git a/src/Microsoft.Graph/Generated/Models/LicenseUnitsDetail.cs b/src/Microsoft.Graph/Generated/Models/LicenseUnitsDetail.cs index 39dd8861aff..cb75dd09a43 100644 --- a/src/Microsoft.Graph/Generated/Models/LicenseUnitsDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/LicenseUnitsDetail.cs @@ -66,7 +66,7 @@ public static LicenseUnitsDetail CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"enabled", n => { Enabled = n.GetIntValue(); } }, {"lockedOut", n => { LockedOut = n.GetIntValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("enabled", Enabled); writer.WriteIntValue("lockedOut", LockedOut); diff --git a/src/Microsoft.Graph/Generated/Models/LinkedResource.cs b/src/Microsoft.Graph/Generated/Models/LinkedResource.cs index 887ac808ba8..ce05564ddcf 100644 --- a/src/Microsoft.Graph/Generated/Models/LinkedResource.cs +++ b/src/Microsoft.Graph/Generated/Models/LinkedResource.cs @@ -73,7 +73,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicationName", n => { ApplicationName = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public string WebUrl { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("applicationName", ApplicationName); diff --git a/src/Microsoft.Graph/Generated/Models/LinkedResourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LinkedResourceCollectionResponse.cs index cbdb339d7ee..6171884f7a8 100644 --- a/src/Microsoft.Graph/Generated/Models/LinkedResourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LinkedResourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LinkedResource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/List.cs b/src/Microsoft.Graph/Generated/Models/List.cs index f84e29b95e8..0eda0650bbd 100644 --- a/src/Microsoft.Graph/Generated/Models/List.cs +++ b/src/Microsoft.Graph/Generated/Models/List.cs @@ -163,7 +163,7 @@ public List() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"columns", n => { Columns = n.GetCollectionOfObjectValues(ColumnDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"contentTypes", n => { ContentTypes = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -181,7 +181,7 @@ public List() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("columns", Columns); diff --git a/src/Microsoft.Graph/Generated/Models/ListCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ListCollectionResponse.cs index 5029fd476e3..e6753f670c4 100644 --- a/src/Microsoft.Graph/Generated/Models/ListCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ListCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(List.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ListInfo.cs b/src/Microsoft.Graph/Generated/Models/ListInfo.cs index b9800bc3937..f617784a942 100644 --- a/src/Microsoft.Graph/Generated/Models/ListInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ListInfo.cs @@ -70,7 +70,7 @@ public static ListInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypesEnabled", n => { ContentTypesEnabled = n.GetBoolValue(); } }, {"hidden", n => { Hidden = n.GetBoolValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("contentTypesEnabled", ContentTypesEnabled); writer.WriteBoolValue("hidden", Hidden); diff --git a/src/Microsoft.Graph/Generated/Models/ListItem.cs b/src/Microsoft.Graph/Generated/Models/ListItem.cs index fa93bf53d37..93748e8f45d 100644 --- a/src/Microsoft.Graph/Generated/Models/ListItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ListItem.cs @@ -121,7 +121,7 @@ public ListItem() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"analytics", n => { Analytics = n.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); } }, {"contentType", n => { ContentType = n.GetObjectValue(ContentTypeInfo.CreateFromDiscriminatorValue); } }, @@ -136,7 +136,7 @@ public ListItem() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("analytics", Analytics); diff --git a/src/Microsoft.Graph/Generated/Models/ListItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ListItemCollectionResponse.cs index 6b796e100da..1877035fc65 100644 --- a/src/Microsoft.Graph/Generated/Models/ListItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ListItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ListItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs b/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs index 6a06c5fac61..a21964d0af2 100644 --- a/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/ListItemVersion.cs @@ -41,7 +41,7 @@ public ListItemVersion() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fields", n => { Fields = n.GetObjectValue(FieldValueSet.CreateFromDiscriminatorValue); } }, }; @@ -50,7 +50,7 @@ public ListItemVersion() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fields", Fields); diff --git a/src/Microsoft.Graph/Generated/Models/ListItemVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ListItemVersionCollectionResponse.cs index 479533e8f59..fa1097ea19d 100644 --- a/src/Microsoft.Graph/Generated/Models/ListItemVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ListItemVersionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ListItemVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs b/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs index eabc3d50186..7aff22b8880 100644 --- a/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs @@ -56,7 +56,7 @@ public static LobbyBypassSettings CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isDialInBypassEnabled", n => { IsDialInBypassEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isDialInBypassEnabled", IsDialInBypassEnabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/LocaleInfo.cs b/src/Microsoft.Graph/Generated/Models/LocaleInfo.cs index 51e529fa231..5bfc2eb0ee4 100644 --- a/src/Microsoft.Graph/Generated/Models/LocaleInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/LocaleInfo.cs @@ -74,7 +74,7 @@ public static LocaleInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"locale", n => { Locale = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("locale", Locale); diff --git a/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessage.cs b/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessage.cs index 1db61f884ae..caddb0910bf 100644 --- a/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessage.cs @@ -72,7 +72,7 @@ public string Subject { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -85,7 +85,7 @@ public string Subject { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isDefault", IsDefault); diff --git a/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessageCollectionResponse.cs index 221aa20694c..a6d5259efcc 100644 --- a/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LocalizedNotificationMessageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LocalizedNotificationMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LocateDeviceActionResult.cs b/src/Microsoft.Graph/Generated/Models/LocateDeviceActionResult.cs index a87a004558b..d42e2275b21 100644 --- a/src/Microsoft.Graph/Generated/Models/LocateDeviceActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/LocateDeviceActionResult.cs @@ -34,7 +34,7 @@ public DeviceGeoLocation DeviceLocation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceLocation", n => { DeviceLocation = n.GetObjectValue(DeviceGeoLocation.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceGeoLocation DeviceLocation { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("deviceLocation", DeviceLocation); diff --git a/src/Microsoft.Graph/Generated/Models/Location.cs b/src/Microsoft.Graph/Generated/Models/Location.cs index 7bffdd51675..707385c30c0 100644 --- a/src/Microsoft.Graph/Generated/Models/Location.cs +++ b/src/Microsoft.Graph/Generated/Models/Location.cs @@ -144,7 +144,7 @@ public static Location CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"coordinates", n => { Coordinates = n.GetObjectValue(OutlookGeoCoordinates.CreateFromDiscriminatorValue); } }, @@ -161,7 +161,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("address", Address); writer.WriteObjectValue("coordinates", Coordinates); diff --git a/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs b/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs index 0195970c48c..40af0465ce7 100644 --- a/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs +++ b/src/Microsoft.Graph/Generated/Models/LocationConstraint.cs @@ -70,7 +70,7 @@ public static LocationConstraint CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isRequired", n => { IsRequired = n.GetBoolValue(); } }, {"locations", n => { Locations = n.GetCollectionOfObjectValues(LocationConstraintItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isRequired", IsRequired); writer.WriteCollectionOfObjectValues("locations", Locations); diff --git a/src/Microsoft.Graph/Generated/Models/LocationConstraintItem.cs b/src/Microsoft.Graph/Generated/Models/LocationConstraintItem.cs index 0cdb14727d9..ffeb9e0c2e6 100644 --- a/src/Microsoft.Graph/Generated/Models/LocationConstraintItem.cs +++ b/src/Microsoft.Graph/Generated/Models/LocationConstraintItem.cs @@ -28,7 +28,7 @@ public LocationConstraintItem() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"resolveAvailability", n => { ResolveAvailability = n.GetBoolValue(); } }, }; @@ -37,7 +37,7 @@ public LocationConstraintItem() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("resolveAvailability", ResolveAvailability); diff --git a/src/Microsoft.Graph/Generated/Models/LogicAppTriggerEndpointConfiguration.cs b/src/Microsoft.Graph/Generated/Models/LogicAppTriggerEndpointConfiguration.cs index f11d9f0c7b5..9ab7c2c2130 100644 --- a/src/Microsoft.Graph/Generated/Models/LogicAppTriggerEndpointConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/LogicAppTriggerEndpointConfiguration.cs @@ -79,7 +79,7 @@ public LogicAppTriggerEndpointConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"logicAppWorkflowName", n => { LogicAppWorkflowName = n.GetStringValue(); } }, {"resourceGroupName", n => { ResourceGroupName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public LogicAppTriggerEndpointConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("logicAppWorkflowName", LogicAppWorkflowName); diff --git a/src/Microsoft.Graph/Generated/Models/LoginPage.cs b/src/Microsoft.Graph/Generated/Models/LoginPage.cs index 4743a30bb9f..9793de19e7e 100644 --- a/src/Microsoft.Graph/Generated/Models/LoginPage.cs +++ b/src/Microsoft.Graph/Generated/Models/LoginPage.cs @@ -121,7 +121,7 @@ public SimulationContentStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, @@ -139,7 +139,7 @@ public SimulationContentStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs index 2befe35bbf0..2965384bc1b 100644 --- a/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LoginPageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LoginPage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LoginPageLayoutConfiguration.cs b/src/Microsoft.Graph/Generated/Models/LoginPageLayoutConfiguration.cs index d88a7433c3f..3e104b1540b 100644 --- a/src/Microsoft.Graph/Generated/Models/LoginPageLayoutConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/LoginPageLayoutConfiguration.cs @@ -61,7 +61,7 @@ public static LoginPageLayoutConfiguration CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isFooterShown", n => { IsFooterShown = n.GetBoolValue(); } }, {"isHeaderShown", n => { IsHeaderShown = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isFooterShown", IsFooterShown); writer.WriteBoolValue("isHeaderShown", IsHeaderShown); diff --git a/src/Microsoft.Graph/Generated/Models/LoginPageTextVisibilitySettings.cs b/src/Microsoft.Graph/Generated/Models/LoginPageTextVisibilitySettings.cs index d17738b46f0..aafeafbe287 100644 --- a/src/Microsoft.Graph/Generated/Models/LoginPageTextVisibilitySettings.cs +++ b/src/Microsoft.Graph/Generated/Models/LoginPageTextVisibilitySettings.cs @@ -76,7 +76,7 @@ public static LoginPageTextVisibilitySettings CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hideAccountResetCredentials", n => { HideAccountResetCredentials = n.GetBoolValue(); } }, {"hideCannotAccessYourAccount", n => { HideCannotAccessYourAccount = n.GetBoolValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("hideAccountResetCredentials", HideAccountResetCredentials); writer.WriteBoolValue("hideCannotAccessYourAccount", HideCannotAccessYourAccount); diff --git a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs index d777c74fb04..ae137bde1c2 100644 --- a/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/LongRunningOperation.cs @@ -65,7 +65,7 @@ public string StatusDetail { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"lastActionDateTime", n => { LastActionDateTime = n.GetDateTimeOffsetValue(); } }, @@ -78,7 +78,7 @@ public string StatusDetail { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/LongRunningOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/LongRunningOperationCollectionResponse.cs index 0eadb9aac93..90ffc7529b8 100644 --- a/src/Microsoft.Graph/Generated/Models/LongRunningOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/LongRunningOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LongRunningOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/LookupColumn.cs b/src/Microsoft.Graph/Generated/Models/LookupColumn.cs index bb9d9366dcd..ef222424ea1 100644 --- a/src/Microsoft.Graph/Generated/Models/LookupColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/LookupColumn.cs @@ -98,7 +98,7 @@ public static LookupColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowMultipleValues", n => { AllowMultipleValues = n.GetBoolValue(); } }, {"allowUnlimitedLength", n => { AllowUnlimitedLength = n.GetBoolValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowMultipleValues", AllowMultipleValues); writer.WriteBoolValue("allowUnlimitedLength", AllowUnlimitedLength); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs index 2dd7b96cae6..6c1bd84bb0d 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSCompliancePolicy.cs @@ -129,7 +129,7 @@ public MacOSCompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceThreatProtectionEnabled", n => { DeviceThreatProtectionEnabled = n.GetBoolValue(); } }, {"deviceThreatProtectionRequiredSecurityLevel", n => { DeviceThreatProtectionRequiredSecurityLevel = n.GetEnumValue(); } }, @@ -154,7 +154,7 @@ public MacOSCompliancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("deviceThreatProtectionEnabled", DeviceThreatProtectionEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSCustomConfiguration.cs b/src/Microsoft.Graph/Generated/Models/MacOSCustomConfiguration.cs index dafd27d1269..f274ab54d9f 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSCustomConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSCustomConfiguration.cs @@ -68,7 +68,7 @@ public MacOSCustomConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"payload", n => { Payload = n.GetByteArrayValue(); } }, {"payloadFileName", n => { PayloadFileName = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public MacOSCustomConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("payload", Payload); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSDeviceFeaturesConfiguration.cs b/src/Microsoft.Graph/Generated/Models/MacOSDeviceFeaturesConfiguration.cs index 7257149e5c8..9a00bcdd8a2 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSDeviceFeaturesConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSDeviceFeaturesConfiguration.cs @@ -26,7 +26,7 @@ public MacOSDeviceFeaturesConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public MacOSDeviceFeaturesConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/MacOSDmgApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSDmgApp.cs index 1582c860d52..31414704e39 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSDmgApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSDmgApp.cs @@ -87,7 +87,7 @@ public MacOSDmgApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ignoreVersionDetection", n => { IgnoreVersionDetection = n.GetBoolValue(); } }, {"includedApps", n => { IncludedApps = n.GetCollectionOfObjectValues(MacOSIncludedApp.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public MacOSDmgApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("ignoreVersionDetection", IgnoreVersionDetection); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSDmgAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MacOSDmgAppCollectionResponse.cs index c7b163a3327..0df8a484d9e 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSDmgAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSDmgAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MacOSDmgApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSGeneralDeviceConfiguration.cs b/src/Microsoft.Graph/Generated/Models/MacOSGeneralDeviceConfiguration.cs index 559686d24e6..dc7579686c7 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSGeneralDeviceConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSGeneralDeviceConfiguration.cs @@ -104,7 +104,7 @@ public MacOSGeneralDeviceConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"compliantAppListType", n => { CompliantAppListType = n.GetEnumValue(); } }, {"compliantAppsList", n => { CompliantAppsList = n.GetCollectionOfObjectValues(AppListItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -124,7 +124,7 @@ public MacOSGeneralDeviceConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("compliantAppListType", CompliantAppListType); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSIncludedApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSIncludedApp.cs index 684287215e6..b1986a60a7a 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSIncludedApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSIncludedApp.cs @@ -77,7 +77,7 @@ public static MacOSIncludedApp CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bundleId", n => { BundleId = n.GetStringValue(); } }, {"bundleVersion", n => { BundleVersion = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("bundleId", BundleId); writer.WriteStringValue("bundleVersion", BundleVersion); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs index 41eb42b005a..c070487fc84 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs @@ -125,7 +125,7 @@ public MacOSLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"buildNumber", n => { BuildNumber = n.GetStringValue(); } }, {"bundleId", n => { BundleId = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public MacOSLobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("buildNumber", BuildNumber); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSLobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MacOSLobAppCollectionResponse.cs index f2bb5f8b23b..ea2e39963aa 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSLobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSLobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MacOSLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSLobChildApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSLobChildApp.cs index 1c36a9409c6..03507edce8b 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSLobChildApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSLobChildApp.cs @@ -91,7 +91,7 @@ public static MacOSLobChildApp CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"buildNumber", n => { BuildNumber = n.GetStringValue(); } }, {"bundleId", n => { BundleId = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("buildNumber", BuildNumber); writer.WriteStringValue("bundleId", BundleId); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftDefenderApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftDefenderApp.cs index dfe75d69b8a..97d438c6fb2 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftDefenderApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftDefenderApp.cs @@ -26,7 +26,7 @@ public MacOSMicrosoftDefenderApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public MacOSMicrosoftDefenderApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftEdgeApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftEdgeApp.cs index f2e1f8c429b..c3bc46dd374 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftEdgeApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSMicrosoftEdgeApp.cs @@ -31,7 +31,7 @@ public MacOSMicrosoftEdgeApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channel", n => { Channel = n.GetEnumValue(); } }, }; @@ -40,7 +40,7 @@ public MacOSMicrosoftEdgeApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("channel", Channel); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/MacOSMinimumOperatingSystem.cs index ba5d67c7e77..776cd0d7109 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSMinimumOperatingSystem.cs @@ -109,7 +109,7 @@ public static MacOSMinimumOperatingSystem CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"v10_10", n => { V1010 = n.GetBoolValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteBoolValue("v10_10", V1010); diff --git a/src/Microsoft.Graph/Generated/Models/MacOSOfficeSuiteApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSOfficeSuiteApp.cs index dd91f2fcd03..2a297809cbf 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSOfficeSuiteApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSOfficeSuiteApp.cs @@ -26,7 +26,7 @@ public MacOSOfficeSuiteApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public MacOSOfficeSuiteApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs index a087f2e000b..a6c09277f85 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs @@ -31,7 +31,7 @@ public MacOsLobAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"uninstallOnDeviceRemoval", n => { UninstallOnDeviceRemoval = n.GetBoolValue(); } }, }; @@ -40,7 +40,7 @@ public MacOsLobAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("uninstallOnDeviceRemoval", UninstallOnDeviceRemoval); diff --git a/src/Microsoft.Graph/Generated/Models/MailAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/MailAssessmentRequest.cs index 6860907275e..dde1f6a3972 100644 --- a/src/Microsoft.Graph/Generated/Models/MailAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/MailAssessmentRequest.cs @@ -56,7 +56,7 @@ public MailAssessmentRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"destinationRoutingReason", n => { DestinationRoutingReason = n.GetEnumValue(); } }, {"messageUri", n => { MessageUri = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public MailAssessmentRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("destinationRoutingReason", DestinationRoutingReason); diff --git a/src/Microsoft.Graph/Generated/Models/MailFolder.cs b/src/Microsoft.Graph/Generated/Models/MailFolder.cs index 80020e0e2e4..a190f04c8ea 100644 --- a/src/Microsoft.Graph/Generated/Models/MailFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/MailFolder.cs @@ -139,7 +139,7 @@ public int? UnreadItemCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"childFolderCount", n => { ChildFolderCount = n.GetIntValue(); } }, {"childFolders", n => { ChildFolders = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -158,7 +158,7 @@ public int? UnreadItemCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("childFolderCount", ChildFolderCount); diff --git a/src/Microsoft.Graph/Generated/Models/MailFolderCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MailFolderCollectionResponse.cs index 4972d119f8e..8929188473b 100644 --- a/src/Microsoft.Graph/Generated/Models/MailFolderCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MailFolderCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MailSearchFolder.cs b/src/Microsoft.Graph/Generated/Models/MailSearchFolder.cs index 8857a5276fe..c2e47c64c99 100644 --- a/src/Microsoft.Graph/Generated/Models/MailSearchFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/MailSearchFolder.cs @@ -61,7 +61,7 @@ public MailSearchFolder() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"filterQuery", n => { FilterQuery = n.GetStringValue(); } }, {"includeNestedFolders", n => { IncludeNestedFolders = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public MailSearchFolder() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("filterQuery", FilterQuery); diff --git a/src/Microsoft.Graph/Generated/Models/MailTips.cs b/src/Microsoft.Graph/Generated/Models/MailTips.cs index 9b7e55bb20f..29d24367d0c 100644 --- a/src/Microsoft.Graph/Generated/Models/MailTips.cs +++ b/src/Microsoft.Graph/Generated/Models/MailTips.cs @@ -151,7 +151,7 @@ public static MailTips CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"automaticReplies", n => { AutomaticReplies = n.GetObjectValue(AutomaticRepliesMailTips.CreateFromDiscriminatorValue); } }, {"customMailTip", n => { CustomMailTip = n.GetStringValue(); } }, @@ -172,7 +172,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("automaticReplies", AutomaticReplies); writer.WriteStringValue("customMailTip", CustomMailTip); diff --git a/src/Microsoft.Graph/Generated/Models/MailTipsError.cs b/src/Microsoft.Graph/Generated/Models/MailTipsError.cs index 2171482f1c0..5680d0345d0 100644 --- a/src/Microsoft.Graph/Generated/Models/MailTipsError.cs +++ b/src/Microsoft.Graph/Generated/Models/MailTipsError.cs @@ -74,7 +74,7 @@ public static MailTipsError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs b/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs index e49f8020eee..12df3b38368 100644 --- a/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs @@ -154,7 +154,7 @@ public static MailboxSettings CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"archiveFolder", n => { ArchiveFolder = n.GetStringValue(); } }, {"automaticRepliesSetting", n => { AutomaticRepliesSetting = n.GetObjectValue(Microsoft.Graph.Models.AutomaticRepliesSetting.CreateFromDiscriminatorValue); } }, @@ -172,7 +172,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("archiveFolder", ArchiveFolder); writer.WriteObjectValue("automaticRepliesSetting", AutomaticRepliesSetting); diff --git a/src/Microsoft.Graph/Generated/Models/Malware.cs b/src/Microsoft.Graph/Generated/Models/Malware.cs index 3abbda6c939..b2b10ebb19a 100644 --- a/src/Microsoft.Graph/Generated/Models/Malware.cs +++ b/src/Microsoft.Graph/Generated/Models/Malware.cs @@ -60,7 +60,7 @@ public static Malware CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MalwareState.cs b/src/Microsoft.Graph/Generated/Models/MalwareState.cs index 003fd5c8b02..a502cd84083 100644 --- a/src/Microsoft.Graph/Generated/Models/MalwareState.cs +++ b/src/Microsoft.Graph/Generated/Models/MalwareState.cs @@ -107,7 +107,7 @@ public static MalwareState CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"category", n => { Category = n.GetStringValue(); } }, {"family", n => { Family = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("category", Category); writer.WriteStringValue("family", Family); diff --git a/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDevice.cs b/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDevice.cs index a0158e23e20..327197d2e94 100644 --- a/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDevice.cs @@ -59,7 +59,7 @@ public WindowsMalwareThreatState? ThreatState { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"detectionCount", n => { DetectionCount = n.GetIntValue(); } }, {"deviceName", n => { DeviceName = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public WindowsMalwareThreatState? ThreatState { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("detectionCount", DetectionCount); diff --git a/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDeviceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDeviceCollectionResponse.cs index 2cde8499a66..27c9099b1cb 100644 --- a/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDeviceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MalwareStateForWindowsDeviceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MalwareStateForWindowsDevice.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs index 965f065e2a6..5be5410745c 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs @@ -82,7 +82,7 @@ public ManagedAndroidLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(AndroidMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, {"packageId", n => { PackageId = n.GetStringValue(); } }, @@ -94,7 +94,7 @@ public ManagedAndroidLobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("minimumSupportedOperatingSystem", MinimumSupportedOperatingSystem); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobAppCollectionResponse.cs index 8e36004fce0..f1e1914236c 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAndroidLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAndroidStoreApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedAndroidStoreApp.cs index c485ff5242c..b48a6d38945 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAndroidStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAndroidStoreApp.cs @@ -68,7 +68,7 @@ public ManagedAndroidStoreApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, {"minimumSupportedOperatingSystem", n => { MinimumSupportedOperatingSystem = n.GetObjectValue(AndroidMinimumOperatingSystem.CreateFromDiscriminatorValue); } }, @@ -79,7 +79,7 @@ public ManagedAndroidStoreApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appStoreUrl", AppStoreUrl); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedApp.cs index 7144a2ba3e7..349c29ca2f8 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedApp.cs @@ -53,7 +53,7 @@ public ManagedApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appAvailability", n => { AppAvailability = n.GetEnumValue(); } }, {"version", n => { Version = n.GetStringValue(); } }, @@ -63,7 +63,7 @@ public ManagedApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("appAvailability", AppAvailability); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppConfiguration.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppConfiguration.cs index 14efba8072e..e4407f89093 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppConfiguration.cs @@ -44,7 +44,7 @@ public ManagedAppConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"customSettings", n => { CustomSettings = n.GetCollectionOfObjectValues(KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -53,7 +53,7 @@ public ManagedAppConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("customSettings", CustomSettings); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppDiagnosticStatus.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppDiagnosticStatus.cs index 07cf1770af9..8f66214f816 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppDiagnosticStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppDiagnosticStatus.cs @@ -91,7 +91,7 @@ public static ManagedAppDiagnosticStatus CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"mitigationInstruction", n => { MitigationInstruction = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("mitigationInstruction", MitigationInstruction); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppOperation.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppOperation.cs index 55b9ba51b2d..c6164852e78 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppOperation.cs @@ -67,7 +67,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -79,7 +79,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppOperationCollectionResponse.cs index 80da2ccc8ac..0de076db812 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicy.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicy.cs index 717f8fdae70..182a5a838d3 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicy.cs @@ -85,7 +85,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -98,7 +98,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyCollectionResponse.cs index 2a5042d389c..097cbfe15d9 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummary.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummary.cs index 2c689a291b8..6b73182e4f2 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummary.cs @@ -72,7 +72,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationDeployedUserCount", n => { ConfigurationDeployedUserCount = n.GetIntValue(); } }, {"configurationDeploymentSummaryPerApp", n => { ConfigurationDeploymentSummaryPerApp = n.GetCollectionOfObjectValues(ManagedAppPolicyDeploymentSummaryPerApp.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationDeployedUserCount", ConfigurationDeployedUserCount); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummaryPerApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummaryPerApp.cs index 668465b3b05..333cb5b1d31 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummaryPerApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppPolicyDeploymentSummaryPerApp.cs @@ -68,7 +68,7 @@ public static ManagedAppPolicyDeploymentSummaryPerApp CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"configurationAppliedUserCount", n => { ConfigurationAppliedUserCount = n.GetIntValue(); } }, {"mobileAppIdentifier", n => { MobileAppIdentifier = n.GetObjectValue(Microsoft.Graph.Models.MobileAppIdentifier.CreateFromDiscriminatorValue); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("configurationAppliedUserCount", ConfigurationAppliedUserCount); writer.WriteObjectValue("mobileAppIdentifier", MobileAppIdentifier); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppProtection.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppProtection.cs index a57cb97394f..d58a8264745 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppProtection.cs @@ -213,7 +213,7 @@ public ManagedAppProtection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedDataStorageLocations", n => { AllowedDataStorageLocations = n.GetCollectionOfEnumValues()?.ToList(); } }, {"allowedInboundDataTransferSources", n => { AllowedInboundDataTransferSources = n.GetEnumValue(); } }, @@ -248,7 +248,7 @@ public ManagedAppProtection() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("allowedDataStorageLocations", AllowedDataStorageLocations); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs index 4af2bc7407d..12e3a8e2995 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs @@ -217,7 +217,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appIdentifier", n => { AppIdentifier = n.GetObjectValue(MobileAppIdentifier.CreateFromDiscriminatorValue); } }, {"applicationVersion", n => { ApplicationVersion = n.GetStringValue(); } }, @@ -240,7 +240,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("appIdentifier", AppIdentifier); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistrationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistrationCollectionResponse.cs index d67cc1b0fd6..c435ad01eb0 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistrationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistrationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppRegistration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppStatus.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppStatus.cs index 9dab41886ac..d1e90adcdf6 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppStatus.cs @@ -52,7 +52,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"version", n => { Version = n.GetStringValue(); } }, @@ -62,7 +62,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppStatusCollectionResponse.cs index 3b89748ad8a..5e07e7cdf69 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppStatusRaw.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppStatusRaw.cs index 7d812fe3f56..2bd3feb39c1 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppStatusRaw.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppStatusRaw.cs @@ -40,7 +40,7 @@ public ManagedAppStatusRaw() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; @@ -49,7 +49,7 @@ public ManagedAppStatusRaw() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs index 655236672f7..b6dca9a63cd 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs @@ -648,7 +648,7 @@ public Microsoft.Graph.Models.WindowsProtectionState WindowsProtectionState { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activationLockBypassCode", n => { ActivationLockBypassCode = n.GetStringValue(); } }, {"androidSecurityPatchLevel", n => { AndroidSecurityPatchLevel = n.GetStringValue(); } }, @@ -715,7 +715,7 @@ public Microsoft.Graph.Models.WindowsProtectionState WindowsProtectionState { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("complianceState", ComplianceState); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceCollectionResponse.cs index bb3d87ae6a0..08266589281 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedDevice.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs index f19b771b98a..bdd8cf5aca6 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfiguration.cs @@ -151,7 +151,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -170,7 +170,7 @@ public int? Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignment.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignment.cs index 72a2cb6ddc6..e0353508554 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse.cs index 2090db575df..df9e0f5f35d 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationCollectionResponse.cs index 0b0e833d8a2..2e1c3f772bb 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatus.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatus.cs index 645fc10a83b..091a850904a 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatus.cs @@ -91,7 +91,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"complianceGracePeriodExpirationDateTime", n => { ComplianceGracePeriodExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"deviceDisplayName", n => { DeviceDisplayName = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("complianceGracePeriodExpirationDateTime", ComplianceGracePeriodExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse.cs index edecf43fe10..fe8554d9dce 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceSummary.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceSummary.cs index cbcb62a04eb..c39c3ea5544 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationDeviceSummary.cs @@ -55,7 +55,7 @@ public int? SuccessCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationVersion", n => { ConfigurationVersion = n.GetIntValue(); } }, {"errorCount", n => { ErrorCount = n.GetIntValue(); } }, @@ -70,7 +70,7 @@ public int? SuccessCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationVersion", ConfigurationVersion); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatus.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatus.cs index df90261f140..780def49af0 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatus.cs @@ -63,7 +63,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"devicesCount", n => { DevicesCount = n.GetIntValue(); } }, {"lastReportedDateTime", n => { LastReportedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -76,7 +76,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("devicesCount", DevicesCount); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse.cs index a68f21737fd..d123a1dfd2e 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserSummary.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserSummary.cs index ba7d496a8d1..a8eb757ce7c 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceMobileAppConfigurationUserSummary.cs @@ -55,7 +55,7 @@ public int? SuccessCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configurationVersion", n => { ConfigurationVersion = n.GetIntValue(); } }, {"errorCount", n => { ErrorCount = n.GetIntValue(); } }, @@ -70,7 +70,7 @@ public int? SuccessCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("configurationVersion", ConfigurationVersion); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDeviceOverview.cs b/src/Microsoft.Graph/Generated/Models/ManagedDeviceOverview.cs index e1eee528d58..d6956a5bf3c 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDeviceOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDeviceOverview.cs @@ -63,7 +63,7 @@ public int? MdmEnrolledCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceExchangeAccessStateSummary", n => { DeviceExchangeAccessStateSummary = n.GetObjectValue(Microsoft.Graph.Models.DeviceExchangeAccessStateSummary.CreateFromDiscriminatorValue); } }, {"deviceOperatingSystemSummary", n => { DeviceOperatingSystemSummary = n.GetObjectValue(Microsoft.Graph.Models.DeviceOperatingSystemSummary.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public int? MdmEnrolledCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("deviceExchangeAccessStateSummary", DeviceExchangeAccessStateSummary); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedEBook.cs b/src/Microsoft.Graph/Generated/Models/ManagedEBook.cs index ed0320d3b59..61c6376a975 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedEBook.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedEBook.cs @@ -179,7 +179,7 @@ public List UserStateSummary { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(ManagedEBookAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -200,7 +200,7 @@ public List UserStateSummary { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignment.cs b/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignment.cs index 1cb500e5ae9..91889ad04f8 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignment.cs @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"installIntent", n => { InstallIntent = n.GetEnumValue(); } }, {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, @@ -53,7 +53,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("installIntent", InstallIntent); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignmentCollectionResponse.cs index 656100ceaa3..3d90805148d 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedEBookAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedEBookAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedEBookCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedEBookCollectionResponse.cs index de98cb9ee82..a3ceddb8691 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedEBookCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedEBookCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedEBook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedIOSLobApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedIOSLobApp.cs index 3b355dfdcaf..c9e06e995c4 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedIOSLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedIOSLobApp.cs @@ -101,7 +101,7 @@ public ManagedIOSLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, {"buildNumber", n => { BuildNumber = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public ManagedIOSLobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applicableDeviceType", ApplicableDeviceType); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedIOSLobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedIOSLobAppCollectionResponse.cs index e1bba6e9c0b..41f6f065644 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedIOSLobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedIOSLobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedIOSLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs index fcac1d9e9f1..8e6933d078c 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedIOSStoreApp.cs @@ -82,7 +82,7 @@ public ManagedIOSStoreApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, {"applicableDeviceType", n => { ApplicableDeviceType = n.GetObjectValue(IosDeviceType.CreateFromDiscriminatorValue); } }, @@ -94,7 +94,7 @@ public ManagedIOSStoreApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applicableDeviceType", ApplicableDeviceType); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedMobileApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedMobileApp.cs index fd5de8bd587..a58160218f8 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedMobileApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedMobileApp.cs @@ -48,7 +48,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"mobileAppIdentifier", n => { MobileAppIdentifier = n.GetObjectValue(Microsoft.Graph.Models.MobileAppIdentifier.CreateFromDiscriminatorValue); } }, {"version", n => { Version = n.GetStringValue(); } }, @@ -58,7 +58,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("mobileAppIdentifier", MobileAppIdentifier); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedMobileAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedMobileAppCollectionResponse.cs index c46ac6996a4..106d7c4a1e8 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedMobileAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedMobileAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedMobileLobApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedMobileLobApp.cs index 92a8b6a7e32..18710601562 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedMobileLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedMobileLobApp.cs @@ -78,7 +78,7 @@ public ManagedMobileLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"committedContentVersion", n => { CommittedContentVersion = n.GetStringValue(); } }, {"contentVersions", n => { ContentVersions = n.GetCollectionOfObjectValues(MobileAppContent.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -90,7 +90,7 @@ public ManagedMobileLobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("committedContentVersion", CommittedContentVersion); diff --git a/src/Microsoft.Graph/Generated/Models/ManagedMobileLobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ManagedMobileLobAppCollectionResponse.cs index 1cd084d7f1f..ebfe7f09ebf 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedMobileLobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedMobileLobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedMobileLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicy.cs b/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicy.cs index edf9de9eeed..1cf32da2b73 100644 --- a/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicy.cs @@ -26,7 +26,7 @@ public MdmWindowsInformationProtectionPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public MdmWindowsInformationProtectionPolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicyCollectionResponse.cs index 760260844b6..fe48f40814f 100644 --- a/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MdmWindowsInformationProtectionPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MdmWindowsInformationProtectionPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MediaConfig.cs b/src/Microsoft.Graph/Generated/Models/MediaConfig.cs index fecd997c5e7..927a9eca6bf 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaConfig.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaConfig.cs @@ -51,7 +51,7 @@ public static MediaConfig CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingAustralia.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingAustralia.cs index 31c50f08b76..1b78ce19bfc 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingAustralia.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingAustralia.cs @@ -56,7 +56,7 @@ public static MediaContentRatingAustralia CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingCanada.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingCanada.cs index 87cb0a9424b..6098d4abcc3 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingCanada.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingCanada.cs @@ -56,7 +56,7 @@ public static MediaContentRatingCanada CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingFrance.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingFrance.cs index 621ec9edebc..32f9106671b 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingFrance.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingFrance.cs @@ -56,7 +56,7 @@ public static MediaContentRatingFrance CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingGermany.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingGermany.cs index a4bdb47da51..d4ac305f3aa 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingGermany.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingGermany.cs @@ -56,7 +56,7 @@ public static MediaContentRatingGermany CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingIreland.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingIreland.cs index f17a9b0c6be..c5aa42eb56f 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingIreland.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingIreland.cs @@ -56,7 +56,7 @@ public static MediaContentRatingIreland CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingJapan.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingJapan.cs index 8dba2e27596..7bea7fb2a70 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingJapan.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingJapan.cs @@ -56,7 +56,7 @@ public static MediaContentRatingJapan CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingNewZealand.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingNewZealand.cs index ef77d7c340b..cdde9dcc4e6 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingNewZealand.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingNewZealand.cs @@ -56,7 +56,7 @@ public static MediaContentRatingNewZealand CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedKingdom.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedKingdom.cs index d6280d4c7db..9f4f5602cec 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedKingdom.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedKingdom.cs @@ -56,7 +56,7 @@ public static MediaContentRatingUnitedKingdom CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedStates.cs b/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedStates.cs index c33bb9ed6d9..8506f5b6dc2 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedStates.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaContentRatingUnitedStates.cs @@ -56,7 +56,7 @@ public static MediaContentRatingUnitedStates CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"movieRating", n => { MovieRating = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("movieRating", MovieRating); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MediaInfo.cs b/src/Microsoft.Graph/Generated/Models/MediaInfo.cs index 58902c2d9ac..212ee0115df 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaInfo.cs @@ -74,7 +74,7 @@ public static MediaInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resourceId", n => { ResourceId = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("resourceId", ResourceId); diff --git a/src/Microsoft.Graph/Generated/Models/MediaPrompt.cs b/src/Microsoft.Graph/Generated/Models/MediaPrompt.cs index 6d88d66ffd6..03884453b34 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaPrompt.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaPrompt.cs @@ -37,7 +37,7 @@ public MediaPrompt() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"mediaInfo", n => { MediaInfo = n.GetObjectValue(Microsoft.Graph.Models.MediaInfo.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public MediaPrompt() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("mediaInfo", MediaInfo); diff --git a/src/Microsoft.Graph/Generated/Models/MediaStream.cs b/src/Microsoft.Graph/Generated/Models/MediaStream.cs index 6f5cc246c90..70580869a84 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaStream.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaStream.cs @@ -89,7 +89,7 @@ public static MediaStream CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"direction", n => { Direction = n.GetEnumValue(); } }, {"label", n => { Label = n.GetStringValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("direction", Direction); writer.WriteStringValue("label", Label); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs b/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs index d50d37abca9..018225cd9d2 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReport.cs @@ -46,7 +46,7 @@ public int? TotalParticipantCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attendanceRecords", n => { AttendanceRecords = n.GetCollectionOfObjectValues(AttendanceRecord.CreateFromDiscriminatorValue)?.ToList(); } }, {"meetingEndDateTime", n => { MeetingEndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -58,7 +58,7 @@ public int? TotalParticipantCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("attendanceRecords", AttendanceRecords); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReportCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReportCollectionResponse.cs index e9b98e05796..1ed51045635 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReportCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingAttendanceReportCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MeetingAttendanceReport.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingInfo.cs b/src/Microsoft.Graph/Generated/Models/MeetingInfo.cs index 3184ea39546..e921e406e7f 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingInfo.cs @@ -52,7 +52,7 @@ public static MeetingInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingParticipantInfo.cs b/src/Microsoft.Graph/Generated/Models/MeetingParticipantInfo.cs index fcd185864c7..716f13acf9f 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingParticipantInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingParticipantInfo.cs @@ -79,7 +79,7 @@ public static MeetingParticipantInfo CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"identity", n => { Identity = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("identity", Identity); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingParticipants.cs b/src/Microsoft.Graph/Generated/Models/MeetingParticipants.cs index 24776e9b4fa..43daec633f6 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingParticipants.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingParticipants.cs @@ -74,7 +74,7 @@ public static MeetingParticipants CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attendees", n => { Attendees = n.GetCollectionOfObjectValues(MeetingParticipantInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attendees", Attendees); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingPolicyUpdatedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MeetingPolicyUpdatedEventMessageDetail.cs index df0795b940a..ba6ebcd7588 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingPolicyUpdatedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingPolicyUpdatedEventMessageDetail.cs @@ -56,7 +56,7 @@ public MeetingPolicyUpdatedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"meetingChatEnabled", n => { MeetingChatEnabled = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public MeetingPolicyUpdatedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestion.cs b/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestion.cs index b3513b2ee39..34224f41512 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestion.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestion.cs @@ -117,7 +117,7 @@ public static MeetingTimeSuggestion CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attendeeAvailability", n => { AttendeeAvailability = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.AttendeeAvailability.CreateFromDiscriminatorValue)?.ToList(); } }, {"confidence", n => { Confidence = n.GetDoubleValue(); } }, @@ -133,7 +133,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attendeeAvailability", AttendeeAvailability); writer.WriteDoubleValue("confidence", Confidence); diff --git a/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestionsResult.cs b/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestionsResult.cs index 9509f3ceee6..58f3130ec16 100644 --- a/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestionsResult.cs +++ b/src/Microsoft.Graph/Generated/Models/MeetingTimeSuggestionsResult.cs @@ -74,7 +74,7 @@ public static MeetingTimeSuggestionsResult CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"emptySuggestionsReason", n => { EmptySuggestionsReason = n.GetStringValue(); } }, {"meetingTimeSuggestions", n => { MeetingTimeSuggestions = n.GetCollectionOfObjectValues(MeetingTimeSuggestion.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("emptySuggestionsReason", EmptySuggestionsReason); writer.WriteCollectionOfObjectValues("meetingTimeSuggestions", MeetingTimeSuggestions); diff --git a/src/Microsoft.Graph/Generated/Models/MembersAddedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MembersAddedEventMessageDetail.cs index 231072927e9..0b14e4f8c7d 100644 --- a/src/Microsoft.Graph/Generated/Models/MembersAddedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MembersAddedEventMessageDetail.cs @@ -56,7 +56,7 @@ public MembersAddedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(TeamworkUserIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -67,7 +67,7 @@ public MembersAddedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/MembersDeletedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MembersDeletedEventMessageDetail.cs index adafad84a44..df084285dd0 100644 --- a/src/Microsoft.Graph/Generated/Models/MembersDeletedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MembersDeletedEventMessageDetail.cs @@ -51,7 +51,7 @@ public MembersDeletedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(TeamworkUserIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -61,7 +61,7 @@ public MembersDeletedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/MembersJoinedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MembersJoinedEventMessageDetail.cs index c70cb8f87db..c039f1aa0e4 100644 --- a/src/Microsoft.Graph/Generated/Models/MembersJoinedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MembersJoinedEventMessageDetail.cs @@ -51,7 +51,7 @@ public MembersJoinedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(TeamworkUserIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -61,7 +61,7 @@ public MembersJoinedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/MembersLeftEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MembersLeftEventMessageDetail.cs index 380bd581fdc..f13342273b4 100644 --- a/src/Microsoft.Graph/Generated/Models/MembersLeftEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MembersLeftEventMessageDetail.cs @@ -51,7 +51,7 @@ public MembersLeftEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(TeamworkUserIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -61,7 +61,7 @@ public MembersLeftEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/MembershipOutlierInsight.cs b/src/Microsoft.Graph/Generated/Models/MembershipOutlierInsight.cs index 93fc3316bfd..3ad9ce90e3d 100644 --- a/src/Microsoft.Graph/Generated/Models/MembershipOutlierInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/MembershipOutlierInsight.cs @@ -103,7 +103,7 @@ public MembershipOutlierInsight() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"container", n => { Container = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, {"containerId", n => { ContainerId = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public MembershipOutlierInsight() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("container", Container); diff --git a/src/Microsoft.Graph/Generated/Models/Message.cs b/src/Microsoft.Graph/Generated/Models/Message.cs index 7b5526ac83f..2c348679a97 100644 --- a/src/Microsoft.Graph/Generated/Models/Message.cs +++ b/src/Microsoft.Graph/Generated/Models/Message.cs @@ -369,7 +369,7 @@ public Message() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, {"bccRecipients", n => { BccRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -407,7 +407,7 @@ public Message() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("attachments", Attachments); diff --git a/src/Microsoft.Graph/Generated/Models/MessageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MessageCollectionResponse.cs index 2520465bf9e..26085363f8f 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MessagePinnedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MessagePinnedEventMessageDetail.cs index 40137c53bb2..56364b87c79 100644 --- a/src/Microsoft.Graph/Generated/Models/MessagePinnedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MessagePinnedEventMessageDetail.cs @@ -42,7 +42,7 @@ public MessagePinnedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"eventDateTime", n => { EventDateTime = n.GetDateTimeOffsetValue(); } }, {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -52,7 +52,7 @@ public MessagePinnedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("eventDateTime", EventDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/MessageRule.cs b/src/Microsoft.Graph/Generated/Models/MessageRule.cs index 80f234abffb..d2e8cbaf298 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageRule.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageRule.cs @@ -93,7 +93,7 @@ public int? Sequence { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actions", n => { Actions = n.GetObjectValue(MessageRuleActions.CreateFromDiscriminatorValue); } }, {"conditions", n => { Conditions = n.GetObjectValue(MessageRulePredicates.CreateFromDiscriminatorValue); } }, @@ -109,7 +109,7 @@ public int? Sequence { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("actions", Actions); diff --git a/src/Microsoft.Graph/Generated/Models/MessageRuleActions.cs b/src/Microsoft.Graph/Generated/Models/MessageRuleActions.cs index 01105b9ea89..402a5194eb7 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageRuleActions.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageRuleActions.cs @@ -155,7 +155,7 @@ public static MessageRuleActions CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignCategories", n => { AssignCategories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"copyToFolder", n => { CopyToFolder = n.GetStringValue(); } }, @@ -175,7 +175,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("assignCategories", AssignCategories); writer.WriteStringValue("copyToFolder", CopyToFolder); diff --git a/src/Microsoft.Graph/Generated/Models/MessageRuleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MessageRuleCollectionResponse.cs index 5bb46c4a1f8..8764baaf4a1 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageRuleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageRuleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MessageRule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MessageRulePredicates.cs b/src/Microsoft.Graph/Generated/Models/MessageRulePredicates.cs index 277e7001fe7..ca2d7ae3cff 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageRulePredicates.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageRulePredicates.cs @@ -286,7 +286,7 @@ public static MessageRulePredicates CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bodyContains", n => { BodyContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"bodyOrSubjectContains", n => { BodyOrSubjectContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -325,7 +325,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("bodyContains", BodyContains); writer.WriteCollectionOfPrimitiveValues("bodyOrSubjectContains", BodyOrSubjectContains); diff --git a/src/Microsoft.Graph/Generated/Models/MessageSecurityState.cs b/src/Microsoft.Graph/Generated/Models/MessageSecurityState.cs index a206c73c043..75e1352452f 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageSecurityState.cs @@ -163,7 +163,7 @@ public static MessageSecurityState CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"connectingIP", n => { ConnectingIP = n.GetStringValue(); } }, {"deliveryAction", n => { DeliveryAction = n.GetStringValue(); } }, @@ -181,7 +181,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("connectingIP", ConnectingIP); writer.WriteStringValue("deliveryAction", DeliveryAction); diff --git a/src/Microsoft.Graph/Generated/Models/MessageUnpinnedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/MessageUnpinnedEventMessageDetail.cs index 6b7eb24d278..abcca8173ff 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageUnpinnedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageUnpinnedEventMessageDetail.cs @@ -42,7 +42,7 @@ public MessageUnpinnedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"eventDateTime", n => { EventDateTime = n.GetDateTimeOffsetValue(); } }, {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -52,7 +52,7 @@ public MessageUnpinnedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("eventDateTime", EventDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAccountUserConversationMember.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAccountUserConversationMember.cs index 7004f5f91e5..5f4e8d66108 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAccountUserConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAccountUserConversationMember.cs @@ -37,7 +37,7 @@ public MicrosoftAccountUserConversationMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userId", n => { UserId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public MicrosoftAccountUserConversationMember() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userId", UserId); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs index 70ef522af52..01926ac3285 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs @@ -84,7 +84,7 @@ public MicrosoftAuthenticatorAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"device", n => { Device = n.GetObjectValue(Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue); } }, @@ -97,7 +97,7 @@ public MicrosoftAuthenticatorAuthenticationMethod() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodCollectionResponse.cs index 6a05577a683..0477684e35c 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MicrosoftAuthenticatorAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodConfiguration.cs index f9de033524a..feaa192a0f9 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodConfiguration.cs @@ -56,7 +56,7 @@ public MicrosoftAuthenticatorAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"featureSettings", n => { FeatureSettings = n.GetObjectValue(MicrosoftAuthenticatorFeatureSettings.CreateFromDiscriminatorValue); } }, {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(MicrosoftAuthenticatorAuthenticationMethodTarget.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -67,7 +67,7 @@ public MicrosoftAuthenticatorAuthenticationMethodConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("featureSettings", FeatureSettings); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodTarget.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodTarget.cs index a104497fa7e..5ed1c2d4da9 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodTarget.cs @@ -22,7 +22,7 @@ public MicrosoftAuthenticatorAuthenticationMode? AuthenticationMode { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationMode", n => { AuthenticationMode = n.GetEnumValue(); } }, }; @@ -31,7 +31,7 @@ public MicrosoftAuthenticatorAuthenticationMode? AuthenticationMode { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("authenticationMode", AuthenticationMode); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs index 9f0fe7ad215..9371956309f 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs @@ -74,7 +74,7 @@ public static MicrosoftAuthenticatorFeatureSettings CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayAppInformationRequiredState", n => { DisplayAppInformationRequiredState = n.GetObjectValue(AuthenticationMethodFeatureConfiguration.CreateFromDiscriminatorValue); } }, {"displayLocationInformationRequiredState", n => { DisplayLocationInformationRequiredState = n.GetObjectValue(AuthenticationMethodFeatureConfiguration.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("displayAppInformationRequiredState", DisplayAppInformationRequiredState); writer.WriteObjectValue("displayLocationInformationRequiredState", DisplayLocationInformationRequiredState); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs index 59fa089c47b..957ccf12daa 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftCustomTrainingSetting.cs @@ -47,7 +47,7 @@ public MicrosoftCustomTrainingSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completionDateTime", n => { CompletionDateTime = n.GetDateTimeOffsetValue(); } }, {"trainingAssignmentMappings", n => { TrainingAssignmentMappings = n.GetCollectionOfObjectValues(MicrosoftTrainingAssignmentMapping.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -58,7 +58,7 @@ public MicrosoftCustomTrainingSetting() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completionDateTime", CompletionDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs index 4df6442501b..7ad2328300f 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftManagedTrainingSetting.cs @@ -33,7 +33,7 @@ public MicrosoftManagedTrainingSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"completionDateTime", n => { CompletionDateTime = n.GetDateTimeOffsetValue(); } }, {"trainingCompletionDuration", n => { TrainingCompletionDuration = n.GetEnumValue(); } }, @@ -43,7 +43,7 @@ public MicrosoftManagedTrainingSetting() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("completionDateTime", CompletionDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessApp.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessApp.cs index 8216e9de44d..c8af1ef5b41 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessApp.cs @@ -69,7 +69,7 @@ public MicrosoftStoreForBusinessApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"licenseType", n => { LicenseType = n.GetEnumValue(); } }, {"packageIdentityName", n => { PackageIdentityName = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public MicrosoftStoreForBusinessApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("licenseType", LicenseType); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppAssignmentSettings.cs index d22c66b2861..9a3b46f7fcb 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppAssignmentSettings.cs @@ -31,7 +31,7 @@ public MicrosoftStoreForBusinessAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"useDeviceContext", n => { UseDeviceContext = n.GetBoolValue(); } }, }; @@ -40,7 +40,7 @@ public MicrosoftStoreForBusinessAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("useDeviceContext", UseDeviceContext); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppCollectionResponse.cs index 23c3f322446..802a1db41fb 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftStoreForBusinessAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MicrosoftStoreForBusinessApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs index b1e92e4b8e4..76d01d8bf8e 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftTrainingAssignmentMapping.cs @@ -51,7 +51,7 @@ public MicrosoftTrainingAssignmentMapping() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedTo", n => { AssignedTo = n.GetCollectionOfEnumValues()?.ToList(); } }, {"training", n => { Training = n.GetObjectValue(Microsoft.Graph.Models.Training.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public MicrosoftTrainingAssignmentMapping() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("assignedTo", AssignedTo); diff --git a/src/Microsoft.Graph/Generated/Models/MimeContent.cs b/src/Microsoft.Graph/Generated/Models/MimeContent.cs index 82bdca0029b..7d25e1c14b6 100644 --- a/src/Microsoft.Graph/Generated/Models/MimeContent.cs +++ b/src/Microsoft.Graph/Generated/Models/MimeContent.cs @@ -77,7 +77,7 @@ public static MimeContent CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("type", Type); diff --git a/src/Microsoft.Graph/Generated/Models/MobileApp.cs b/src/Microsoft.Graph/Generated/Models/MobileApp.cs index 8f04100a2f0..81ba31d373d 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileApp.cs @@ -223,7 +223,7 @@ public MobileAppPublishingState? PublishingState { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(MobileAppAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"categories", n => { Categories = n.GetCollectionOfObjectValues(MobileAppCategory.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -246,7 +246,7 @@ public MobileAppPublishingState? PublishingState { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppAssignment.cs b/src/Microsoft.Graph/Generated/Models/MobileAppAssignment.cs index 9140a73be3f..2f7a5ff2ef6 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppAssignment.cs @@ -53,7 +53,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"intent", n => { Intent = n.GetEnumValue(); } }, {"settings", n => { Settings = n.GetObjectValue(MobileAppAssignmentSettings.CreateFromDiscriminatorValue); } }, @@ -64,7 +64,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("intent", Intent); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentCollectionResponse.cs index 08e0a9868c0..3116d270d4b 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentSettings.cs index b98b72f2a64..b0c0c3a009e 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppAssignmentSettings.cs @@ -60,7 +60,7 @@ public static MobileAppAssignmentSettings CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -69,7 +69,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppCategory.cs b/src/Microsoft.Graph/Generated/Models/MobileAppCategory.cs index 692ccba249f..3dd3dbbbf79 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppCategory.cs @@ -39,7 +39,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -49,7 +49,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppCategoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppCategoryCollectionResponse.cs index c499b5246a3..f9a427db47a 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppCategoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppCategoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppCollectionResponse.cs index 6d5eea85366..f38f057b083 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContent.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContent.cs index 15fb141c4d0..6674e0f824b 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppContent.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContent.cs @@ -48,7 +48,7 @@ public List Files { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"containedApps", n => { ContainedApps = n.GetCollectionOfObjectValues(MobileContainedApp.CreateFromDiscriminatorValue)?.ToList(); } }, {"files", n => { Files = n.GetCollectionOfObjectValues(MobileAppContentFile.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -58,7 +58,7 @@ public List Files { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("containedApps", ContainedApps); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs index 38bc1cc7054..e0db1932c98 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppContent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContentFile.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContentFile.cs index 12220e0e4ca..9994835ecf6 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppContentFile.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContentFile.cs @@ -92,7 +92,7 @@ public MobileAppContentFileUploadState? UploadState { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"azureStorageUri", n => { AzureStorageUri = n.GetStringValue(); } }, {"azureStorageUriExpirationDateTime", n => { AzureStorageUriExpirationDateTime = n.GetDateTimeOffsetValue(); } }, @@ -109,7 +109,7 @@ public MobileAppContentFileUploadState? UploadState { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("azureStorageUri", AzureStorageUri); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs index 7c99938b3d2..3e7dc3fc078 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppContentFileCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppContentFile.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppIdentifier.cs b/src/Microsoft.Graph/Generated/Models/MobileAppIdentifier.cs index 252662b8396..5ea331570c2 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppIdentifier.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppIdentifier.cs @@ -54,7 +54,7 @@ public static MobileAppIdentifier CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -63,7 +63,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppInstallTimeSettings.cs b/src/Microsoft.Graph/Generated/Models/MobileAppInstallTimeSettings.cs index 20f8b5f1efa..9da4562016f 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppInstallTimeSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppInstallTimeSettings.cs @@ -64,7 +64,7 @@ public static MobileAppInstallTimeSettings CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deadlineDateTime", n => { DeadlineDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("deadlineDateTime", DeadlineDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEvent.cs b/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEvent.cs index 54dfda4286f..58c6e98567e 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEvent.cs @@ -31,7 +31,7 @@ public List AppLogCollectionRequests { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appLogCollectionRequests", n => { AppLogCollectionRequests = n.GetCollectionOfObjectValues(AppLogCollectionRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List AppLogCollectionRequests { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("appLogCollectionRequests", AppLogCollectionRequests); diff --git a/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEventCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEventCollectionResponse.cs index 3d5481b652e..9b9cc4ce5a8 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEventCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileAppTroubleshootingEventCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileAppTroubleshootingEvent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileContainedApp.cs b/src/Microsoft.Graph/Generated/Models/MobileContainedApp.cs index c9c1709cf20..fe69254a113 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileContainedApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileContainedApp.cs @@ -24,7 +24,7 @@ public class MobileContainedApp : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -32,7 +32,7 @@ public class MobileContainedApp : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs index 400f7e53865..f18070557e9 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileContainedAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileContainedApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MobileLobApp.cs b/src/Microsoft.Graph/Generated/Models/MobileLobApp.cs index 99aa55494fb..72d46434823 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileLobApp.cs @@ -84,7 +84,7 @@ public MobileLobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"committedContentVersion", n => { CommittedContentVersion = n.GetStringValue(); } }, {"contentVersions", n => { ContentVersions = n.GetCollectionOfObjectValues(MobileAppContent.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -96,7 +96,7 @@ public MobileLobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("committedContentVersion", CommittedContentVersion); diff --git a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs index 985ef0282bc..04ff94d1731 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs @@ -95,7 +95,7 @@ public bool? WindowsEnabled { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowPartnerToCollectIOSApplicationMetadata", n => { AllowPartnerToCollectIOSApplicationMetadata = n.GetBoolValue(); } }, {"allowPartnerToCollectIOSPersonalApplicationMetadata", n => { AllowPartnerToCollectIOSPersonalApplicationMetadata = n.GetBoolValue(); } }, @@ -118,7 +118,7 @@ public bool? WindowsEnabled { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowPartnerToCollectIOSApplicationMetadata", AllowPartnerToCollectIOSApplicationMetadata); diff --git a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnectorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnectorCollectionResponse.cs index 9928bed5911..584dc877394 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnectorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnectorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MobileThreatDefenseConnector.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ModifiedProperty.cs b/src/Microsoft.Graph/Generated/Models/ModifiedProperty.cs index a56f0ac4e90..2c7a876feb5 100644 --- a/src/Microsoft.Graph/Generated/Models/ModifiedProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/ModifiedProperty.cs @@ -88,7 +88,7 @@ public static ModifiedProperty CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"newValue", n => { NewValue = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("newValue", NewValue); diff --git a/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs b/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs index d18a9ddc4a5..6331485a33c 100644 --- a/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/MultiValueLegacyExtendedProperty.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/MuteParticipantOperation.cs b/src/Microsoft.Graph/Generated/Models/MuteParticipantOperation.cs index c4528b2837d..aed834cc2b8 100644 --- a/src/Microsoft.Graph/Generated/Models/MuteParticipantOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/MuteParticipantOperation.cs @@ -17,7 +17,7 @@ public class MuteParticipantOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class MuteParticipantOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/NamedLocation.cs b/src/Microsoft.Graph/Generated/Models/NamedLocation.cs index 47becc9ffac..d63808462a8 100644 --- a/src/Microsoft.Graph/Generated/Models/NamedLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/NamedLocation.cs @@ -46,7 +46,7 @@ public DateTimeOffset? ModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -57,7 +57,7 @@ public DateTimeOffset? ModifiedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/NamedLocationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/NamedLocationCollectionResponse.cs index d08ccd3e9ad..ea5f48036b1 100644 --- a/src/Microsoft.Graph/Generated/Models/NamedLocationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/NamedLocationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(NamedLocation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/NetworkConnection.cs b/src/Microsoft.Graph/Generated/Models/NetworkConnection.cs index 7d8a8953922..ee0680d57d3 100644 --- a/src/Microsoft.Graph/Generated/Models/NetworkConnection.cs +++ b/src/Microsoft.Graph/Generated/Models/NetworkConnection.cs @@ -290,7 +290,7 @@ public static NetworkConnection CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationName", n => { ApplicationName = n.GetStringValue(); } }, {"destinationAddress", n => { DestinationAddress = n.GetStringValue(); } }, @@ -319,7 +319,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationName", ApplicationName); writer.WriteStringValue("destinationAddress", DestinationAddress); diff --git a/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs b/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs index fead327a45b..23af230213c 100644 --- a/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/NoTrainingNotificationSetting.cs @@ -37,7 +37,7 @@ public NoTrainingNotificationSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"simulationNotification", n => { SimulationNotification = n.GetObjectValue(Microsoft.Graph.Models.SimulationNotification.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public NoTrainingNotificationSetting() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("simulationNotification", SimulationNotification); diff --git a/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs index 66f5c42c6f2..aa1cb1087e8 100644 --- a/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/NoTrainingSetting.cs @@ -23,7 +23,7 @@ public NoTrainingSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public NoTrainingSetting() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Notebook.cs b/src/Microsoft.Graph/Generated/Models/Notebook.cs index fd281de8bec..70c0e2cc7bf 100644 --- a/src/Microsoft.Graph/Generated/Models/Notebook.cs +++ b/src/Microsoft.Graph/Generated/Models/Notebook.cs @@ -108,7 +108,7 @@ public Notebook() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, {"isShared", n => { IsShared = n.GetBoolValue(); } }, @@ -124,7 +124,7 @@ public Notebook() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isDefault", IsDefault); diff --git a/src/Microsoft.Graph/Generated/Models/NotebookCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/NotebookCollectionResponse.cs index c294503e5dd..a180a09743d 100644 --- a/src/Microsoft.Graph/Generated/Models/NotebookCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/NotebookCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Notebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/NotebookLinks.cs b/src/Microsoft.Graph/Generated/Models/NotebookLinks.cs index 4cd7a55a16d..120326a2295 100644 --- a/src/Microsoft.Graph/Generated/Models/NotebookLinks.cs +++ b/src/Microsoft.Graph/Generated/Models/NotebookLinks.cs @@ -74,7 +74,7 @@ public static NotebookLinks CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"oneNoteClientUrl", n => { OneNoteClientUrl = n.GetObjectValue(ExternalLink.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("oneNoteClientUrl", OneNoteClientUrl); diff --git a/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplate.cs b/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplate.cs index aebfc42ae2b..06d741e77f9 100644 --- a/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplate.cs @@ -86,7 +86,7 @@ public List RoleScopeTagIds { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"brandingOptions", n => { BrandingOptions = n.GetEnumValue(); } }, {"defaultLocale", n => { DefaultLocale = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public List RoleScopeTagIds { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("brandingOptions", BrandingOptions); diff --git a/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplateCollectionResponse.cs index 661f8fc9d58..9c73aababee 100644 --- a/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/NotificationMessageTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(NotificationMessageTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/NumberColumn.cs b/src/Microsoft.Graph/Generated/Models/NumberColumn.cs index 291534d5d42..da856f0b87e 100644 --- a/src/Microsoft.Graph/Generated/Models/NumberColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/NumberColumn.cs @@ -84,7 +84,7 @@ public static NumberColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"decimalPlaces", n => { DecimalPlaces = n.GetStringValue(); } }, {"displayAs", n => { DisplayAs = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("decimalPlaces", DecimalPlaces); writer.WriteStringValue("displayAs", DisplayAs); diff --git a/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs b/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs index 298bb4c3a31..211d04b044c 100644 --- a/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs +++ b/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrant.cs @@ -87,7 +87,7 @@ public string Scope { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"consentType", n => { ConsentType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public string Scope { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("clientId", ClientId); diff --git a/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrantCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrantCollectionResponse.cs index 2b066ebdb79..e0fddbba479 100644 --- a/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrantCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OAuth2PermissionGrantCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OAuth2PermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs b/src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs index c585b25d80c..cdae2d399fd 100644 --- a/src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/OAuthConsentAppDetail.cs @@ -79,7 +79,7 @@ public static OAuthConsentAppDetail CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appScope", n => { AppScope = n.GetEnumValue(); } }, {"displayLogo", n => { DisplayLogo = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("appScope", AppScope); writer.WriteStringValue("displayLogo", DisplayLogo); diff --git a/src/Microsoft.Graph/Generated/Models/ODataErrors/ErrorDetails.cs b/src/Microsoft.Graph/Generated/Models/ODataErrors/ErrorDetails.cs index 2e4e0695001..04d85f8ebc0 100644 --- a/src/Microsoft.Graph/Generated/Models/ODataErrors/ErrorDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/ODataErrors/ErrorDetails.cs @@ -74,7 +74,7 @@ public static ErrorDetails CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/ODataErrors/InnerError.cs b/src/Microsoft.Graph/Generated/Models/ODataErrors/InnerError.cs index fb78985d4c7..228296bd3f3 100644 --- a/src/Microsoft.Graph/Generated/Models/ODataErrors/InnerError.cs +++ b/src/Microsoft.Graph/Generated/Models/ODataErrors/InnerError.cs @@ -79,7 +79,7 @@ public static InnerError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"client-request-id", n => { ClientRequestId = n.GetStringValue(); } }, {"Date", n => { Date = n.GetDateTimeOffsetValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("client-request-id", ClientRequestId); writer.WriteDateTimeOffsetValue("Date", Date); diff --git a/src/Microsoft.Graph/Generated/Models/ODataErrors/MainError.cs b/src/Microsoft.Graph/Generated/Models/ODataErrors/MainError.cs index 5f09a78a84c..7bd8b01f637 100644 --- a/src/Microsoft.Graph/Generated/Models/ODataErrors/MainError.cs +++ b/src/Microsoft.Graph/Generated/Models/ODataErrors/MainError.cs @@ -102,7 +102,7 @@ public static MainError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"details", n => { Details = n.GetCollectionOfObjectValues(ErrorDetails.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteCollectionOfObjectValues("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/ODataErrors/ODataError.cs b/src/Microsoft.Graph/Generated/Models/ODataErrors/ODataError.cs index 04864f8f667..22f398afc00 100644 --- a/src/Microsoft.Graph/Generated/Models/ODataErrors/ODataError.cs +++ b/src/Microsoft.Graph/Generated/Models/ODataErrors/ODataError.cs @@ -49,7 +49,7 @@ public static ODataError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"error", n => { Error = n.GetObjectValue(MainError.CreateFromDiscriminatorValue); } }, }; @@ -58,7 +58,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("error", Error); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ObjectDefinition.cs b/src/Microsoft.Graph/Generated/Models/ObjectDefinition.cs index 3091f5b3686..c9e79577b4c 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectDefinition.cs @@ -102,7 +102,7 @@ public static ObjectDefinition CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attributes", n => { Attributes = n.GetCollectionOfObjectValues(AttributeDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"metadata", n => { Metadata = n.GetCollectionOfObjectValues(ObjectDefinitionMetadataEntry.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attributes", Attributes); writer.WriteCollectionOfObjectValues("metadata", Metadata); diff --git a/src/Microsoft.Graph/Generated/Models/ObjectDefinitionMetadataEntry.cs b/src/Microsoft.Graph/Generated/Models/ObjectDefinitionMetadataEntry.cs index bf2050fe4e8..59fe76dc9b0 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectDefinitionMetadataEntry.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectDefinitionMetadataEntry.cs @@ -65,7 +65,7 @@ public static ObjectDefinitionMetadataEntry CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs b/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs index 2d7e8652602..fc06ffc4a85 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectIdentity.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Specifies the issuer of the identity, for example facebook.com.For local accounts (where signInType isn't federated), this property is the local B2C tenant default domain name, for example contoso.onmicrosoft.com.For guests from other Azure AD organization, this is the domain of the federated organization, for example contoso.com.Supports $filter. 512 character limit. + /// Specifies the issuer of the identity, for example facebook.com.For local accounts (where signInType isn't federated), this property is the local B2C tenant default domain name, for example contoso.onmicrosoft.com.For guests from other Microsoft Entra organization, this is the domain of the federated organization, for example contoso.com.Supports $filter. 512 character limit. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Issuer { @@ -88,7 +88,7 @@ public static ObjectIdentity CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"issuer", n => { Issuer = n.GetStringValue(); } }, {"issuerAssignedId", n => { IssuerAssignedId = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("issuer", Issuer); writer.WriteStringValue("issuerAssignedId", IssuerAssignedId); diff --git a/src/Microsoft.Graph/Generated/Models/ObjectMapping.cs b/src/Microsoft.Graph/Generated/Models/ObjectMapping.cs index c0dc0ecd78c..fe898226fba 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectMapping.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectMapping.cs @@ -140,7 +140,7 @@ public static ObjectMapping CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attributeMappings", n => { AttributeMappings = n.GetCollectionOfObjectValues(AttributeMapping.CreateFromDiscriminatorValue)?.ToList(); } }, {"enabled", n => { Enabled = n.GetBoolValue(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attributeMappings", AttributeMappings); writer.WriteBoolValue("enabled", Enabled); diff --git a/src/Microsoft.Graph/Generated/Models/ObjectMappingMetadataEntry.cs b/src/Microsoft.Graph/Generated/Models/ObjectMappingMetadataEntry.cs index 3153fa6867d..0e124afbf76 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectMappingMetadataEntry.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectMappingMetadataEntry.cs @@ -65,7 +65,7 @@ public static ObjectMappingMetadataEntry CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/OfferShiftRequest.cs b/src/Microsoft.Graph/Generated/Models/OfferShiftRequest.cs index 02f71fe1ba9..68eed9fb616 100644 --- a/src/Microsoft.Graph/Generated/Models/OfferShiftRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/OfferShiftRequest.cs @@ -74,7 +74,7 @@ public OfferShiftRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"recipientActionDateTime", n => { RecipientActionDateTime = n.GetDateTimeOffsetValue(); } }, {"recipientActionMessage", n => { RecipientActionMessage = n.GetStringValue(); } }, @@ -86,7 +86,7 @@ public OfferShiftRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("recipientActionMessage", RecipientActionMessage); diff --git a/src/Microsoft.Graph/Generated/Models/OfferShiftRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OfferShiftRequestCollectionResponse.cs index 242c344ea41..78454cdf3eb 100644 --- a/src/Microsoft.Graph/Generated/Models/OfferShiftRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OfferShiftRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OfferShiftRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OfficeGraphInsights.cs b/src/Microsoft.Graph/Generated/Models/OfficeGraphInsights.cs index d31cf48e93b..a5d33f70341 100644 --- a/src/Microsoft.Graph/Generated/Models/OfficeGraphInsights.cs +++ b/src/Microsoft.Graph/Generated/Models/OfficeGraphInsights.cs @@ -59,7 +59,7 @@ public List Used { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"shared", n => { Shared = n.GetCollectionOfObjectValues(SharedInsight.CreateFromDiscriminatorValue)?.ToList(); } }, {"trending", n => { Trending = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Trending.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public List Used { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("shared", Shared); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSetting.cs b/src/Microsoft.Graph/Generated/Models/OmaSetting.cs index b031e5c9c6a..c5f021f541c 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSetting.cs @@ -101,7 +101,7 @@ public static OmaSetting CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingBase64.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingBase64.cs index fc494b24d14..d1a6119cf46 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingBase64.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingBase64.cs @@ -54,7 +54,7 @@ public OmaSettingBase64() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileName", n => { FileName = n.GetStringValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, @@ -64,7 +64,7 @@ public OmaSettingBase64() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileName", FileName); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingBoolean.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingBoolean.cs index c3e42b5f804..b90dd471cd9 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingBoolean.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingBoolean.cs @@ -31,7 +31,7 @@ public OmaSettingBoolean() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -40,7 +40,7 @@ public OmaSettingBoolean() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingDateTime.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingDateTime.cs index 24527d57e7b..b8f38c94c89 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingDateTime.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingDateTime.cs @@ -31,7 +31,7 @@ public OmaSettingDateTime() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetDateTimeOffsetValue(); } }, }; @@ -40,7 +40,7 @@ public OmaSettingDateTime() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingFloatingPoint.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingFloatingPoint.cs index dd0c5a695aa..e55d70f2729 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingFloatingPoint.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingFloatingPoint.cs @@ -31,7 +31,7 @@ public OmaSettingFloatingPoint() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetFloatValue(); } }, }; @@ -40,7 +40,7 @@ public OmaSettingFloatingPoint() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteFloatValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingInteger.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingInteger.cs index c1e4c5d2415..fb74bb6dd47 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingInteger.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingInteger.cs @@ -31,7 +31,7 @@ public OmaSettingInteger() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -40,7 +40,7 @@ public OmaSettingInteger() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingString.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingString.cs index 5c56f33d783..b2a01037238 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingString.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingString.cs @@ -40,7 +40,7 @@ public OmaSettingString() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public OmaSettingString() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OmaSettingStringXml.cs b/src/Microsoft.Graph/Generated/Models/OmaSettingStringXml.cs index a98d752a812..6c651b9a62d 100644 --- a/src/Microsoft.Graph/Generated/Models/OmaSettingStringXml.cs +++ b/src/Microsoft.Graph/Generated/Models/OmaSettingStringXml.cs @@ -54,7 +54,7 @@ public OmaSettingStringXml() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fileName", n => { FileName = n.GetStringValue(); } }, {"value", n => { Value = n.GetByteArrayValue(); } }, @@ -64,7 +64,7 @@ public OmaSettingStringXml() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("fileName", FileName); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesAccidentalDeletionPrevention.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesAccidentalDeletionPrevention.cs index 070627c4522..df5d8c061ec 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesAccidentalDeletionPrevention.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesAccidentalDeletionPrevention.cs @@ -56,7 +56,7 @@ public static OnPremisesAccidentalDeletionPrevention CreateFromDiscriminatorValu /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alertThreshold", n => { AlertThreshold = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("alertThreshold", AlertThreshold); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesConditionalAccessSettings.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesConditionalAccessSettings.cs index 0335de7998d..371663549df 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesConditionalAccessSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesConditionalAccessSettings.cs @@ -58,7 +58,7 @@ public bool? OverrideDefaultRule { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"enabled", n => { Enabled = n.GetBoolValue(); } }, {"excludedGroups", n => { ExcludedGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public bool? OverrideDefaultRule { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("enabled", Enabled); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronization.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronization.cs index 3bf926153af..e6de1108225 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronization.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronization.cs @@ -45,7 +45,7 @@ public OnPremisesDirectorySynchronizationFeature Features { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configuration", n => { Configuration = n.GetObjectValue(OnPremisesDirectorySynchronizationConfiguration.CreateFromDiscriminatorValue); } }, {"features", n => { Features = n.GetObjectValue(OnPremisesDirectorySynchronizationFeature.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public OnPremisesDirectorySynchronizationFeature Features { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("configuration", Configuration); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationCollectionResponse.cs index fd8a1eeb444..c04ae33194e 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationConfiguration.cs index 3bc938131f4..e8d24a8ee25 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationConfiguration.cs @@ -60,7 +60,7 @@ public static OnPremisesDirectorySynchronizationConfiguration CreateFromDiscrimi /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accidentalDeletionPrevention", n => { AccidentalDeletionPrevention = n.GetObjectValue(OnPremisesAccidentalDeletionPrevention.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("accidentalDeletionPrevention", AccidentalDeletionPrevention); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationFeature.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationFeature.cs index 1e6da746e15..f2bb87377c0 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationFeature.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesDirectorySynchronizationFeature.cs @@ -24,7 +24,7 @@ public bool? BlockSoftMatchEnabled { get { return BackingStore?.Get("blockSoftMatchEnabled"); } set { BackingStore?.Set("blockSoftMatchEnabled", value); } } - /// When true, persists the values of Mobile and OtherMobile in on-premises AD during sync cycles instead of values of MobilePhone or AlternateMobilePhones in Azure AD. + /// When true, persists the values of Mobile and OtherMobile in on-premises AD during sync cycles instead of values of MobilePhone or AlternateMobilePhones in Microsoft Entra ID. public bool? BypassDirSyncOverridesEnabled { get { return BackingStore?.Get("bypassDirSyncOverridesEnabled"); } set { BackingStore?.Set("bypassDirSyncOverridesEnabled", value); } @@ -49,7 +49,7 @@ public bool? DeviceWritebackEnabled { get { return BackingStore?.Get("deviceWritebackEnabled"); } set { BackingStore?.Set("deviceWritebackEnabled", value); } } - /// Used to indicate that directory extensions are being synced from on-premises AD to Azure AD. + /// Used to indicate that directory extensions are being synced from on-premises AD to Microsoft Entra ID. public bool? DirectoryExtensionsEnabled { get { return BackingStore?.Get("directoryExtensionsEnabled"); } set { BackingStore?.Set("directoryExtensionsEnabled", value); } @@ -83,7 +83,7 @@ public bool? PasswordSyncEnabled { get { return BackingStore?.Get("passwordSyncEnabled"); } set { BackingStore?.Set("passwordSyncEnabled", value); } } - /// Used to indicate that writeback of password resets from Azure AD to on-premises AD is enabled. + /// Used to indicate that writeback of password resets from Microsoft Entra ID to on-premises AD is enabled. public bool? PasswordWritebackEnabled { get { return BackingStore?.Get("passwordWritebackEnabled"); } set { BackingStore?.Set("passwordWritebackEnabled", value); } @@ -141,7 +141,7 @@ public static OnPremisesDirectorySynchronizationFeature CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"blockCloudObjectTakeoverThroughHardMatchEnabled", n => { BlockCloudObjectTakeoverThroughHardMatchEnabled = n.GetBoolValue(); } }, {"blockSoftMatchEnabled", n => { BlockSoftMatchEnabled = n.GetBoolValue(); } }, @@ -169,7 +169,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("blockCloudObjectTakeoverThroughHardMatchEnabled", BlockCloudObjectTakeoverThroughHardMatchEnabled); writer.WriteBoolValue("blockSoftMatchEnabled", BlockSoftMatchEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesExtensionAttributes.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesExtensionAttributes.cs index d74b0abbbbc..d02e9c8c548 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesExtensionAttributes.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesExtensionAttributes.cs @@ -256,7 +256,7 @@ public static OnPremisesExtensionAttributes CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"extensionAttribute1", n => { ExtensionAttribute1 = n.GetStringValue(); } }, {"extensionAttribute10", n => { ExtensionAttribute10 = n.GetStringValue(); } }, @@ -280,7 +280,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("extensionAttribute1", ExtensionAttribute1); writer.WriteStringValue("extensionAttribute10", ExtensionAttribute10); diff --git a/src/Microsoft.Graph/Generated/Models/OnPremisesProvisioningError.cs b/src/Microsoft.Graph/Generated/Models/OnPremisesProvisioningError.cs index 2d3762b718b..eb6f6d37f7e 100644 --- a/src/Microsoft.Graph/Generated/Models/OnPremisesProvisioningError.cs +++ b/src/Microsoft.Graph/Generated/Models/OnPremisesProvisioningError.cs @@ -93,7 +93,7 @@ public static OnPremisesProvisioningError CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"category", n => { Category = n.GetStringValue(); } }, {"occurredDateTime", n => { OccurredDateTime = n.GetDateTimeOffsetValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("category", Category); writer.WriteDateTimeOffsetValue("occurredDateTime", OccurredDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Onenote.cs b/src/Microsoft.Graph/Generated/Models/Onenote.cs index 8edb41a253e..dbe98800d39 100644 --- a/src/Microsoft.Graph/Generated/Models/Onenote.cs +++ b/src/Microsoft.Graph/Generated/Models/Onenote.cs @@ -101,7 +101,7 @@ public List Sections { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"notebooks", n => { Notebooks = n.GetCollectionOfObjectValues(Notebook.CreateFromDiscriminatorValue)?.ToList(); } }, {"operations", n => { Operations = n.GetCollectionOfObjectValues(OnenoteOperation.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public List Sections { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("notebooks", Notebooks); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteEntityBaseModel.cs b/src/Microsoft.Graph/Generated/Models/OnenoteEntityBaseModel.cs index d4f0b6e5223..811a8dfb049 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteEntityBaseModel.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteEntityBaseModel.cs @@ -41,7 +41,7 @@ public string Self { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"self", n => { Self = n.GetStringValue(); } }, }; @@ -50,7 +50,7 @@ public string Self { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("self", Self); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs b/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs index dc34e890943..3192f7b68e8 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteEntityHierarchyModel.cs @@ -76,7 +76,7 @@ public OnenoteEntityHierarchyModel() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public OnenoteEntityHierarchyModel() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteEntitySchemaObjectModel.cs b/src/Microsoft.Graph/Generated/Models/OnenoteEntitySchemaObjectModel.cs index 9c86c8067d2..dc869ce8db4 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteEntitySchemaObjectModel.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteEntitySchemaObjectModel.cs @@ -36,7 +36,7 @@ public OnenoteEntitySchemaObjectModel() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, }; @@ -45,7 +45,7 @@ public OnenoteEntitySchemaObjectModel() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteOperation.cs b/src/Microsoft.Graph/Generated/Models/OnenoteOperation.cs index 1f600595add..4ccac8ae873 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteOperation.cs @@ -73,7 +73,7 @@ public string ResourceLocation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"error", n => { Error = n.GetObjectValue(OnenoteOperationError.CreateFromDiscriminatorValue); } }, {"percentComplete", n => { PercentComplete = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public string ResourceLocation { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OnenoteOperationCollectionResponse.cs index d27a0318206..bc9c0e34ef4 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OnenoteOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteOperationError.cs b/src/Microsoft.Graph/Generated/Models/OnenoteOperationError.cs index 3abe670ecae..c6a10d72424 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteOperationError.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteOperationError.cs @@ -74,7 +74,7 @@ public static OnenoteOperationError CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/OnenotePage.cs b/src/Microsoft.Graph/Generated/Models/OnenotePage.cs index a3697334abd..6095b64971b 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenotePage.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenotePage.cs @@ -150,7 +150,7 @@ public OnenotePage() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"contentUrl", n => { ContentUrl = n.GetStringValue(); } }, @@ -169,7 +169,7 @@ public OnenotePage() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/OnenotePageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OnenotePageCollectionResponse.cs index ab77839a4ce..1123dd7da62 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenotePageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenotePageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OnenotePage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OnenotePagePreview.cs b/src/Microsoft.Graph/Generated/Models/OnenotePagePreview.cs index 7dc6bc96930..4dd1bc79ee6 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenotePagePreview.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenotePagePreview.cs @@ -74,7 +74,7 @@ public static OnenotePagePreview CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"links", n => { Links = n.GetObjectValue(OnenotePagePreviewLinks.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("links", Links); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/OnenotePagePreviewLinks.cs b/src/Microsoft.Graph/Generated/Models/OnenotePagePreviewLinks.cs index 38b9dfc89e7..0bbbf6556af 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenotePagePreviewLinks.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenotePagePreviewLinks.cs @@ -60,7 +60,7 @@ public static OnenotePagePreviewLinks CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"previewImageUrl", n => { PreviewImageUrl = n.GetObjectValue(ExternalLink.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("previewImageUrl", PreviewImageUrl); diff --git a/src/Microsoft.Graph/Generated/Models/OnenotePatchContentCommand.cs b/src/Microsoft.Graph/Generated/Models/OnenotePatchContentCommand.cs index b86745f53c2..4603baef7f0 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenotePatchContentCommand.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenotePatchContentCommand.cs @@ -84,7 +84,7 @@ public static OnenotePatchContentCommand CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"action", n => { Action = n.GetEnumValue(); } }, {"content", n => { Content = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("action", Action); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteResource.cs b/src/Microsoft.Graph/Generated/Models/OnenoteResource.cs index 8d4fa133488..a2c40ab9fa4 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteResource.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteResource.cs @@ -51,7 +51,7 @@ public OnenoteResource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"contentUrl", n => { ContentUrl = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public OnenoteResource() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteResourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OnenoteResourceCollectionResponse.cs index 44a7443ce7e..0f7e4ef3859 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteResourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteResourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OnenoteResource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteSection.cs b/src/Microsoft.Graph/Generated/Models/OnenoteSection.cs index 288b36cfd78..2eab9f2b9d0 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteSection.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteSection.cs @@ -98,7 +98,7 @@ public OnenoteSection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, {"links", n => { Links = n.GetObjectValue(SectionLinks.CreateFromDiscriminatorValue); } }, @@ -112,7 +112,7 @@ public OnenoteSection() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isDefault", IsDefault); diff --git a/src/Microsoft.Graph/Generated/Models/OnenoteSectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OnenoteSectionCollectionResponse.cs index 7e2fba32f9b..376eefb8c48 100644 --- a/src/Microsoft.Graph/Generated/Models/OnenoteSectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OnenoteSectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OnenoteSection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index a0c46609b3d..098fae479dd 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -292,7 +292,7 @@ public WatermarkProtectionValues WatermarkProtection { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowAttendeeToEnableCamera", n => { AllowAttendeeToEnableCamera = n.GetBoolValue(); } }, {"allowAttendeeToEnableMic", n => { AllowAttendeeToEnableMic = n.GetBoolValue(); } }, @@ -328,7 +328,7 @@ public WatermarkProtectionValues WatermarkProtection { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowAttendeeToEnableCamera", AllowAttendeeToEnableCamera); diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingCollectionResponse.cs index af198850ba0..8830b051531 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OnlineMeeting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingInfo.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingInfo.cs index c6a54cc2c88..d6a766c395f 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingInfo.cs @@ -130,7 +130,7 @@ public static OnlineMeetingInfo CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"conferenceId", n => { ConferenceId = n.GetStringValue(); } }, {"joinUrl", n => { JoinUrl = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("conferenceId", ConferenceId); writer.WriteStringValue("joinUrl", JoinUrl); diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs index 6bf8e4ecba3..ba43a704296 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingRestricted.cs @@ -56,7 +56,7 @@ public static OnlineMeetingRestricted CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentSharingDisabled", n => { ContentSharingDisabled = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("contentSharingDisabled", ContentSharingDisabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/OpenShift.cs b/src/Microsoft.Graph/Generated/Models/OpenShift.cs index badd487ca7b..b7f0e80441b 100644 --- a/src/Microsoft.Graph/Generated/Models/OpenShift.cs +++ b/src/Microsoft.Graph/Generated/Models/OpenShift.cs @@ -65,7 +65,7 @@ public OpenShift() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"draftOpenShift", n => { DraftOpenShift = n.GetObjectValue(OpenShiftItem.CreateFromDiscriminatorValue); } }, {"schedulingGroupId", n => { SchedulingGroupId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public OpenShift() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("draftOpenShift", DraftOpenShift); diff --git a/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequest.cs b/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequest.cs index 2e7bdbb2883..c9a3cd04c5a 100644 --- a/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequest.cs @@ -37,7 +37,7 @@ public OpenShiftChangeRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"openShiftId", n => { OpenShiftId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public OpenShiftChangeRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("openShiftId", OpenShiftId); diff --git a/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequestCollectionResponse.cs index 9ea6d82e9fb..f1ffad21d2b 100644 --- a/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OpenShiftChangeRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OpenShiftChangeRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OpenShiftCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OpenShiftCollectionResponse.cs index 80cf676a65e..990662f6905 100644 --- a/src/Microsoft.Graph/Generated/Models/OpenShiftCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OpenShiftCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OpenShift.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OpenShiftItem.cs b/src/Microsoft.Graph/Generated/Models/OpenShiftItem.cs index 8b827a94644..5f87ba1e1d1 100644 --- a/src/Microsoft.Graph/Generated/Models/OpenShiftItem.cs +++ b/src/Microsoft.Graph/Generated/Models/OpenShiftItem.cs @@ -28,7 +28,7 @@ public OpenShiftItem() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"openSlotCount", n => { OpenSlotCount = n.GetIntValue(); } }, }; @@ -37,7 +37,7 @@ public OpenShiftItem() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("openSlotCount", OpenSlotCount); diff --git a/src/Microsoft.Graph/Generated/Models/OpenTypeExtension.cs b/src/Microsoft.Graph/Generated/Models/OpenTypeExtension.cs index 6520cf2c81e..56f6dcdc157 100644 --- a/src/Microsoft.Graph/Generated/Models/OpenTypeExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/OpenTypeExtension.cs @@ -37,7 +37,7 @@ public OpenTypeExtension() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"extensionName", n => { ExtensionName = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public OpenTypeExtension() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("extensionName", ExtensionName); diff --git a/src/Microsoft.Graph/Generated/Models/Operation.cs b/src/Microsoft.Graph/Generated/Models/Operation.cs index ed7dd4ad24a..d81ecc67768 100644 --- a/src/Microsoft.Graph/Generated/Models/Operation.cs +++ b/src/Microsoft.Graph/Generated/Models/Operation.cs @@ -36,7 +36,7 @@ public OperationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"lastActionDateTime", n => { LastActionDateTime = n.GetDateTimeOffsetValue(); } }, @@ -47,7 +47,7 @@ public OperationStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/OperationError.cs b/src/Microsoft.Graph/Generated/Models/OperationError.cs index c8b62e65b49..6f3f7c14369 100644 --- a/src/Microsoft.Graph/Generated/Models/OperationError.cs +++ b/src/Microsoft.Graph/Generated/Models/OperationError.cs @@ -74,7 +74,7 @@ public static OperationError CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/OptionalClaim.cs b/src/Microsoft.Graph/Generated/Models/OptionalClaim.cs index 39ee1a23e38..e7dd753d1ac 100644 --- a/src/Microsoft.Graph/Generated/Models/OptionalClaim.cs +++ b/src/Microsoft.Graph/Generated/Models/OptionalClaim.cs @@ -93,7 +93,7 @@ public static OptionalClaim CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"additionalProperties", n => { AdditionalProperties = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"essential", n => { Essential = n.GetBoolValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("additionalProperties", AdditionalProperties); writer.WriteBoolValue("essential", Essential); diff --git a/src/Microsoft.Graph/Generated/Models/OptionalClaims.cs b/src/Microsoft.Graph/Generated/Models/OptionalClaims.cs index 568de91842c..68d99c8f001 100644 --- a/src/Microsoft.Graph/Generated/Models/OptionalClaims.cs +++ b/src/Microsoft.Graph/Generated/Models/OptionalClaims.cs @@ -88,7 +88,7 @@ public static OptionalClaims CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accessToken", n => { AccessToken = n.GetCollectionOfObjectValues(OptionalClaim.CreateFromDiscriminatorValue)?.ToList(); } }, {"idToken", n => { IdToken = n.GetCollectionOfObjectValues(OptionalClaim.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("accessToken", AccessToken); writer.WriteCollectionOfObjectValues("idToken", IdToken); diff --git a/src/Microsoft.Graph/Generated/Models/OrgContact.cs b/src/Microsoft.Graph/Generated/Models/OrgContact.cs index dd9bd1dc8f7..f747ca977e1 100644 --- a/src/Microsoft.Graph/Generated/Models/OrgContact.cs +++ b/src/Microsoft.Graph/Generated/Models/OrgContact.cs @@ -271,7 +271,7 @@ public OrgContact() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addresses", n => { Addresses = n.GetCollectionOfObjectValues(PhysicalOfficeAddress.CreateFromDiscriminatorValue)?.ToList(); } }, {"companyName", n => { CompanyName = n.GetStringValue(); } }, @@ -298,7 +298,7 @@ public OrgContact() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("addresses", Addresses); diff --git a/src/Microsoft.Graph/Generated/Models/OrgContactCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OrgContactCollectionResponse.cs index 7909b481bf6..0a59e35a385 100644 --- a/src/Microsoft.Graph/Generated/Models/OrgContactCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OrgContactCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OrgContact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Organization.cs b/src/Microsoft.Graph/Generated/Models/Organization.cs index ae8209de905..62763487cec 100644 --- a/src/Microsoft.Graph/Generated/Models/Organization.cs +++ b/src/Microsoft.Graph/Generated/Models/Organization.cs @@ -356,7 +356,7 @@ public Organization() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedPlans", n => { AssignedPlans = n.GetCollectionOfObjectValues(AssignedPlan.CreateFromDiscriminatorValue)?.ToList(); } }, {"branding", n => { Branding = n.GetObjectValue(OrganizationalBranding.CreateFromDiscriminatorValue); } }, @@ -391,7 +391,7 @@ public Organization() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignedPlans", AssignedPlans); diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OrganizationCollectionResponse.cs index 46760ccf210..5042c2d57e9 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Organization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationalBranding.cs b/src/Microsoft.Graph/Generated/Models/OrganizationalBranding.cs index 864a0c9d44d..6b91e186b3a 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationalBranding.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationalBranding.cs @@ -37,7 +37,7 @@ public OrganizationalBranding() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"localizations", n => { Localizations = n.GetCollectionOfObjectValues(OrganizationalBrandingLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public OrganizationalBranding() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("localizations", Localizations); diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs index f994273cc01..abe228b39a2 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalization.cs @@ -23,7 +23,7 @@ public OrganizationalBrandingLocalization() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public OrganizationalBrandingLocalization() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalizationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalizationCollectionResponse.cs index 117768f2e57..a1dfb0589e7 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalizationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingLocalizationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OrganizationalBrandingLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs index e004702f42a..929d871cf2f 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizationalBrandingProperties.cs @@ -244,7 +244,7 @@ public string CustomTermsOfUseUrl { set { BackingStore?.Set("customTermsOfUseUrl", value); } } #endif - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public byte[]? Favicon { @@ -442,7 +442,7 @@ public string UsernameHintText { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"backgroundColor", n => { BackgroundColor = n.GetStringValue(); } }, {"backgroundImage", n => { BackgroundImage = n.GetByteArrayValue(); } }, @@ -480,7 +480,7 @@ public string UsernameHintText { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("backgroundColor", BackgroundColor); diff --git a/src/Microsoft.Graph/Generated/Models/OrganizerMeetingInfo.cs b/src/Microsoft.Graph/Generated/Models/OrganizerMeetingInfo.cs index f7e1d2f0956..4ba7f278b5b 100644 --- a/src/Microsoft.Graph/Generated/Models/OrganizerMeetingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/OrganizerMeetingInfo.cs @@ -37,7 +37,7 @@ public OrganizerMeetingInfo() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"organizer", n => { Organizer = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public OrganizerMeetingInfo() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("organizer", Organizer); diff --git a/src/Microsoft.Graph/Generated/Models/OsVersionCount.cs b/src/Microsoft.Graph/Generated/Models/OsVersionCount.cs index a4601b74ad5..cdb0458a6f2 100644 --- a/src/Microsoft.Graph/Generated/Models/OsVersionCount.cs +++ b/src/Microsoft.Graph/Generated/Models/OsVersionCount.cs @@ -73,7 +73,7 @@ public static OsVersionCount CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceCount", n => { DeviceCount = n.GetIntValue(); } }, {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceCount", DeviceCount); writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/OutgoingCallOptions.cs b/src/Microsoft.Graph/Generated/Models/OutgoingCallOptions.cs index 533cb1ce4bf..376ca9e50e9 100644 --- a/src/Microsoft.Graph/Generated/Models/OutgoingCallOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/OutgoingCallOptions.cs @@ -23,7 +23,7 @@ public OutgoingCallOptions() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public OutgoingCallOptions() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs b/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs index 214b061af01..7668f9ba26c 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookCategory.cs @@ -36,7 +36,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"color", n => { Color = n.GetEnumValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -46,7 +46,7 @@ public string DisplayName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("color", Color); diff --git a/src/Microsoft.Graph/Generated/Models/OutlookCategoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/OutlookCategoryCollectionResponse.cs index 51e643eb6b1..7842465d08f 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookCategoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookCategoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OutlookCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/OutlookGeoCoordinates.cs b/src/Microsoft.Graph/Generated/Models/OutlookGeoCoordinates.cs index de969851005..8337b73f99f 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookGeoCoordinates.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookGeoCoordinates.cs @@ -71,7 +71,7 @@ public static OutlookGeoCoordinates CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accuracy", n => { Accuracy = n.GetDoubleValue(); } }, {"altitude", n => { Altitude = n.GetDoubleValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("accuracy", Accuracy); writer.WriteDoubleValue("altitude", Altitude); diff --git a/src/Microsoft.Graph/Generated/Models/OutlookItem.cs b/src/Microsoft.Graph/Generated/Models/OutlookItem.cs index f9bc514a506..c30b09c65f6 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookItem.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookItem.cs @@ -66,7 +66,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"changeKey", n => { ChangeKey = n.GetStringValue(); } }, @@ -78,7 +78,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("categories", Categories); diff --git a/src/Microsoft.Graph/Generated/Models/OutlookUser.cs b/src/Microsoft.Graph/Generated/Models/OutlookUser.cs index 8bea7bdeb46..ac88098f37f 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookUser.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookUser.cs @@ -31,7 +31,7 @@ public List MasterCategories { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"masterCategories", n => { MasterCategories = n.GetCollectionOfObjectValues(OutlookCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List MasterCategories { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("masterCategories", MasterCategories); diff --git a/src/Microsoft.Graph/Generated/Models/Package.cs b/src/Microsoft.Graph/Generated/Models/Package.cs index 66a89b60f35..1b7563b68f8 100644 --- a/src/Microsoft.Graph/Generated/Models/Package.cs +++ b/src/Microsoft.Graph/Generated/Models/Package.cs @@ -60,7 +60,7 @@ public static Package CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("type", Type); diff --git a/src/Microsoft.Graph/Generated/Models/PageLinks.cs b/src/Microsoft.Graph/Generated/Models/PageLinks.cs index 014f517608b..612f9ba3d68 100644 --- a/src/Microsoft.Graph/Generated/Models/PageLinks.cs +++ b/src/Microsoft.Graph/Generated/Models/PageLinks.cs @@ -74,7 +74,7 @@ public static PageLinks CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"oneNoteClientUrl", n => { OneNoteClientUrl = n.GetObjectValue(ExternalLink.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("oneNoteClientUrl", OneNoteClientUrl); diff --git a/src/Microsoft.Graph/Generated/Models/ParentalControlSettings.cs b/src/Microsoft.Graph/Generated/Models/ParentalControlSettings.cs index 5cedc0142f7..42be43cbf08 100644 --- a/src/Microsoft.Graph/Generated/Models/ParentalControlSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/ParentalControlSettings.cs @@ -74,7 +74,7 @@ public static ParentalControlSettings CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"countriesBlockedForMinors", n => { CountriesBlockedForMinors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"legalAgeGroupRule", n => { LegalAgeGroupRule = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("countriesBlockedForMinors", CountriesBlockedForMinors); writer.WriteStringValue("legalAgeGroupRule", LegalAgeGroupRule); diff --git a/src/Microsoft.Graph/Generated/Models/ParseExpressionResponse.cs b/src/Microsoft.Graph/Generated/Models/ParseExpressionResponse.cs index 1d02494d391..ecf5498588a 100644 --- a/src/Microsoft.Graph/Generated/Models/ParseExpressionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ParseExpressionResponse.cs @@ -98,7 +98,7 @@ public static ParseExpressionResponse CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"error", n => { Error = n.GetObjectValue(PublicError.CreateFromDiscriminatorValue); } }, {"evaluationResult", n => { EvaluationResult = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("error", Error); writer.WriteCollectionOfPrimitiveValues("evaluationResult", EvaluationResult); diff --git a/src/Microsoft.Graph/Generated/Models/Participant.cs b/src/Microsoft.Graph/Generated/Models/Participant.cs index e83e60725cc..80427233c72 100644 --- a/src/Microsoft.Graph/Generated/Models/Participant.cs +++ b/src/Microsoft.Graph/Generated/Models/Participant.cs @@ -97,7 +97,7 @@ public OnlineMeetingRestricted RestrictedExperience { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"info", n => { Info = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, {"isInLobby", n => { IsInLobby = n.GetBoolValue(); } }, @@ -112,7 +112,7 @@ public OnlineMeetingRestricted RestrictedExperience { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("info", Info); diff --git a/src/Microsoft.Graph/Generated/Models/ParticipantCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ParticipantCollectionResponse.cs index c332d807599..1b27bd69d0b 100644 --- a/src/Microsoft.Graph/Generated/Models/ParticipantCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ParticipantCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Participant.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs b/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs index 5a2c81418d6..2f9ea4a7643 100644 --- a/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ParticipantInfo.cs @@ -121,7 +121,7 @@ public static ParticipantInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"countryCode", n => { CountryCode = n.GetStringValue(); } }, {"endpointType", n => { EndpointType = n.GetEnumValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("countryCode", CountryCode); writer.WriteEnumValue("endpointType", EndpointType); diff --git a/src/Microsoft.Graph/Generated/Models/ParticipantJoiningNotification.cs b/src/Microsoft.Graph/Generated/Models/ParticipantJoiningNotification.cs index 11c12e63256..97a687437d5 100644 --- a/src/Microsoft.Graph/Generated/Models/ParticipantJoiningNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/ParticipantJoiningNotification.cs @@ -31,7 +31,7 @@ public Microsoft.Graph.Models.Call Call { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"call", n => { Call = n.GetObjectValue(Microsoft.Graph.Models.Call.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public Microsoft.Graph.Models.Call Call { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("call", Call); diff --git a/src/Microsoft.Graph/Generated/Models/ParticipantLeftNotification.cs b/src/Microsoft.Graph/Generated/Models/ParticipantLeftNotification.cs index c75e37f38e5..71d9303ca10 100644 --- a/src/Microsoft.Graph/Generated/Models/ParticipantLeftNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/ParticipantLeftNotification.cs @@ -45,7 +45,7 @@ public string ParticipantId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"call", n => { Call = n.GetObjectValue(Microsoft.Graph.Models.Call.CreateFromDiscriminatorValue); } }, {"participantId", n => { ParticipantId = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string ParticipantId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("call", Call); diff --git a/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs index 1778313d10b..c2c0c2c19e7 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs @@ -42,7 +42,7 @@ public PasswordAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"password", n => { Password = n.GetStringValue(); } }, @@ -52,7 +52,7 @@ public PasswordAuthenticationMethod() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethodCollectionResponse.cs index e056bdb50cc..296ad15a0c6 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PasswordAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PasswordCredential.cs b/src/Microsoft.Graph/Generated/Models/PasswordCredential.cs index a103ad6e7f8..a5b9198dfd7 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordCredential.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordCredential.cs @@ -80,7 +80,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Read-only; Contains the strong passwords generated by Azure AD that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. + /// Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SecretText { @@ -117,7 +117,7 @@ public static PasswordCredential CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"customKeyIdentifier", n => { CustomKeyIdentifier = n.GetByteArrayValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -133,7 +133,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("customKeyIdentifier", CustomKeyIdentifier); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/PasswordCredentialConfiguration.cs b/src/Microsoft.Graph/Generated/Models/PasswordCredentialConfiguration.cs index 95b4a11a403..4e38646bf6b 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordCredentialConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordCredentialConfiguration.cs @@ -61,7 +61,7 @@ public static PasswordCredentialConfiguration CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"maxLifetime", n => { MaxLifetime = n.GetTimeSpanValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("maxLifetime", MaxLifetime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs b/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs index eb3ca84c9e6..d76c2fb97f9 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordProfile.cs @@ -70,7 +70,7 @@ public static PasswordProfile CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"forceChangePasswordNextSignIn", n => { ForceChangePasswordNextSignIn = n.GetBoolValue(); } }, {"forceChangePasswordNextSignInWithMfa", n => { ForceChangePasswordNextSignInWithMfa = n.GetBoolValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("forceChangePasswordNextSignIn", ForceChangePasswordNextSignIn); writer.WriteBoolValue("forceChangePasswordNextSignInWithMfa", ForceChangePasswordNextSignInWithMfa); diff --git a/src/Microsoft.Graph/Generated/Models/PasswordResetResponse.cs b/src/Microsoft.Graph/Generated/Models/PasswordResetResponse.cs index 24523eeea26..d45295c0b0f 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordResetResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordResetResponse.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The Azure AD-generated password. + /// The Microsoft Entra ID-generated password. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? NewPassword { @@ -60,7 +60,7 @@ public static PasswordResetResponse CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"newPassword", n => { NewPassword = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("newPassword", NewPassword); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PatternedRecurrence.cs b/src/Microsoft.Graph/Generated/Models/PatternedRecurrence.cs index 7ab6a90eeb9..3e6fffe9477 100644 --- a/src/Microsoft.Graph/Generated/Models/PatternedRecurrence.cs +++ b/src/Microsoft.Graph/Generated/Models/PatternedRecurrence.cs @@ -74,7 +74,7 @@ public static PatternedRecurrence CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"pattern", n => { Pattern = n.GetObjectValue(RecurrencePattern.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("pattern", Pattern); diff --git a/src/Microsoft.Graph/Generated/Models/Payload.cs b/src/Microsoft.Graph/Generated/Models/Payload.cs index c192df3e9ca..0839250d537 100644 --- a/src/Microsoft.Graph/Generated/Models/Payload.cs +++ b/src/Microsoft.Graph/Generated/Models/Payload.cs @@ -190,7 +190,7 @@ public PayloadTheme? Theme { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"brand", n => { Brand = n.GetEnumValue(); } }, {"complexity", n => { Complexity = n.GetEnumValue(); } }, @@ -220,7 +220,7 @@ public PayloadTheme? Theme { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("brand", Brand); diff --git a/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs b/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs index 1cd6eba3117..8a8c3c7e2ab 100644 --- a/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs +++ b/src/Microsoft.Graph/Generated/Models/PayloadCoachmark.cs @@ -121,7 +121,7 @@ public static PayloadCoachmark CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"coachmarkLocation", n => { CoachmarkLocation = n.GetObjectValue(Microsoft.Graph.Models.CoachmarkLocation.CreateFromDiscriminatorValue); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("coachmarkLocation", CoachmarkLocation); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs index d729dbe2d8f..8ce13bcac31 100644 --- a/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PayloadCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Payload.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs b/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs index f3def85d74f..b54a2a16f7b 100644 --- a/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/PayloadDetail.cs @@ -92,7 +92,7 @@ public static PayloadDetail CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"coachmarks", n => { Coachmarks = n.GetCollectionOfObjectValues(PayloadCoachmark.CreateFromDiscriminatorValue)?.ToList(); } }, {"content", n => { Content = n.GetStringValue(); } }, @@ -104,7 +104,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("coachmarks", Coachmarks); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/PendingContentUpdate.cs b/src/Microsoft.Graph/Generated/Models/PendingContentUpdate.cs index b962f33a1bf..764d49225ff 100644 --- a/src/Microsoft.Graph/Generated/Models/PendingContentUpdate.cs +++ b/src/Microsoft.Graph/Generated/Models/PendingContentUpdate.cs @@ -51,7 +51,7 @@ public static PendingContentUpdate CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"queuedDateTime", n => { QueuedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteDateTimeOffsetValue("queuedDateTime", QueuedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/PendingOperations.cs b/src/Microsoft.Graph/Generated/Models/PendingOperations.cs index 7f455700873..2923ee6508f 100644 --- a/src/Microsoft.Graph/Generated/Models/PendingOperations.cs +++ b/src/Microsoft.Graph/Generated/Models/PendingOperations.cs @@ -60,7 +60,7 @@ public static PendingOperations CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"pendingContentUpdate", n => { PendingContentUpdate = n.GetObjectValue(Microsoft.Graph.Models.PendingContentUpdate.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("pendingContentUpdate", PendingContentUpdate); diff --git a/src/Microsoft.Graph/Generated/Models/PeopleAdminSettings.cs b/src/Microsoft.Graph/Generated/Models/PeopleAdminSettings.cs index 87dbdc7303c..278b79deb4d 100644 --- a/src/Microsoft.Graph/Generated/Models/PeopleAdminSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/PeopleAdminSettings.cs @@ -31,7 +31,7 @@ public List ProfileCardProperties { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"profileCardProperties", n => { ProfileCardProperties = n.GetCollectionOfObjectValues(ProfileCardProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List ProfileCardProperties { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("profileCardProperties", ProfileCardProperties); diff --git a/src/Microsoft.Graph/Generated/Models/Permission.cs b/src/Microsoft.Graph/Generated/Models/Permission.cs index f1116a4f830..7d5fd9e4691 100644 --- a/src/Microsoft.Graph/Generated/Models/Permission.cs +++ b/src/Microsoft.Graph/Generated/Models/Permission.cs @@ -153,7 +153,7 @@ public string ShareId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"grantedTo", n => { GrantedTo = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -172,7 +172,7 @@ public string ShareId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/PermissionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PermissionCollectionResponse.cs index 438940cb65b..84a11e9296c 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs index 73d28004f32..d65fe00ad12 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSet.cs @@ -39,7 +39,7 @@ public bool? ClientApplicationsFromVerifiedPublisherOnly { get { return BackingStore?.Get("clientApplicationsFromVerifiedPublisherOnly"); } set { BackingStore?.Set("clientApplicationsFromVerifiedPublisherOnly", value); } } - /// A list of Azure Active Directory tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all. + /// A list of Microsoft Entra tenant IDs in which the client application is registered, or a list with the single value all to match with client apps registered in any tenant. Default is the single value all. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ClientApplicationTenantIds { @@ -111,7 +111,7 @@ public string ResourceApplication { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clientApplicationIds", n => { ClientApplicationIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"clientApplicationPublisherIds", n => { ClientApplicationPublisherIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -127,7 +127,7 @@ public string ResourceApplication { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("clientApplicationIds", ClientApplicationIds); diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSetCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSetCollectionResponse.cs index 34b7624cfd8..e05d2f254fd 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSetCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantConditionSetCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PermissionGrantConditionSet.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs index f86d32a4975..54a7bd7fd74 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs @@ -51,7 +51,7 @@ public PermissionGrantPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"excludes", n => { Excludes = n.GetCollectionOfObjectValues(PermissionGrantConditionSet.CreateFromDiscriminatorValue)?.ToList(); } }, {"includes", n => { Includes = n.GetCollectionOfObjectValues(PermissionGrantConditionSet.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -61,7 +61,7 @@ public PermissionGrantPolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("excludes", Excludes); diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicyCollectionResponse.cs index 464fd5fe99b..7970b14bd49 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PermissionGrantPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PermissionScope.cs b/src/Microsoft.Graph/Generated/Models/PermissionScope.cs index fbda15856e6..e399dff5c7d 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionScope.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionScope.cs @@ -154,7 +154,7 @@ public static PermissionScope CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"adminConsentDescription", n => { AdminConsentDescription = n.GetStringValue(); } }, {"adminConsentDisplayName", n => { AdminConsentDisplayName = n.GetStringValue(); } }, @@ -172,7 +172,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("adminConsentDescription", AdminConsentDescription); writer.WriteStringValue("adminConsentDisplayName", AdminConsentDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionControl.cs b/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionControl.cs index 85ac11fa948..ea3c681c21f 100644 --- a/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionControl.cs +++ b/src/Microsoft.Graph/Generated/Models/PersistentBrowserSessionControl.cs @@ -28,7 +28,7 @@ public PersistentBrowserSessionControl() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"mode", n => { Mode = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public PersistentBrowserSessionControl() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("mode", Mode); diff --git a/src/Microsoft.Graph/Generated/Models/Person.cs b/src/Microsoft.Graph/Generated/Models/Person.cs index 7612d73a9b1..4ff49f9a03d 100644 --- a/src/Microsoft.Graph/Generated/Models/Person.cs +++ b/src/Microsoft.Graph/Generated/Models/Person.cs @@ -274,7 +274,7 @@ public string YomiCompany { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"birthday", n => { Birthday = n.GetStringValue(); } }, {"companyName", n => { CompanyName = n.GetStringValue(); } }, @@ -301,7 +301,7 @@ public string YomiCompany { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("birthday", Birthday); diff --git a/src/Microsoft.Graph/Generated/Models/PersonCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PersonCollectionResponse.cs index d18b3945be9..191c776f41f 100644 --- a/src/Microsoft.Graph/Generated/Models/PersonCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PersonCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Person.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PersonOrGroupColumn.cs b/src/Microsoft.Graph/Generated/Models/PersonOrGroupColumn.cs index 615b60449e5..7bb0242de5c 100644 --- a/src/Microsoft.Graph/Generated/Models/PersonOrGroupColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/PersonOrGroupColumn.cs @@ -79,7 +79,7 @@ public static PersonOrGroupColumn CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowMultipleSelection", n => { AllowMultipleSelection = n.GetBoolValue(); } }, {"chooseFromType", n => { ChooseFromType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowMultipleSelection", AllowMultipleSelection); writer.WriteStringValue("chooseFromType", ChooseFromType); diff --git a/src/Microsoft.Graph/Generated/Models/PersonType.cs b/src/Microsoft.Graph/Generated/Models/PersonType.cs index 839c4537f57..cf1d6fdfbdd 100644 --- a/src/Microsoft.Graph/Generated/Models/PersonType.cs +++ b/src/Microsoft.Graph/Generated/Models/PersonType.cs @@ -74,7 +74,7 @@ public static PersonType CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"class", n => { Class = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("class", Class); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Phone.cs b/src/Microsoft.Graph/Generated/Models/Phone.cs index 63c4476fd56..b84d2a79514 100644 --- a/src/Microsoft.Graph/Generated/Models/Phone.cs +++ b/src/Microsoft.Graph/Generated/Models/Phone.cs @@ -93,7 +93,7 @@ public static Phone CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"language", n => { Language = n.GetStringValue(); } }, {"number", n => { Number = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("language", Language); writer.WriteStringValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethod.cs index bfbc0766d8c..3d2de8ebfd4 100644 --- a/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethod.cs @@ -47,7 +47,7 @@ public PhoneAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"phoneNumber", n => { PhoneNumber = n.GetStringValue(); } }, {"phoneType", n => { PhoneType = n.GetEnumValue(); } }, @@ -58,7 +58,7 @@ public PhoneAuthenticationMethod() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("phoneNumber", PhoneNumber); diff --git a/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethodCollectionResponse.cs index dea8e93431b..208989964bb 100644 --- a/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PhoneAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PhoneAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Photo.cs b/src/Microsoft.Graph/Generated/Models/Photo.cs index 8a18a7cbe48..71803058a7f 100644 --- a/src/Microsoft.Graph/Generated/Models/Photo.cs +++ b/src/Microsoft.Graph/Generated/Models/Photo.cs @@ -109,7 +109,7 @@ public static Photo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cameraMake", n => { CameraMake = n.GetStringValue(); } }, {"cameraModel", n => { CameraModel = n.GetStringValue(); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("cameraMake", CameraMake); writer.WriteStringValue("cameraModel", CameraModel); diff --git a/src/Microsoft.Graph/Generated/Models/PhysicalAddress.cs b/src/Microsoft.Graph/Generated/Models/PhysicalAddress.cs index 5c9f248da69..208de473183 100644 --- a/src/Microsoft.Graph/Generated/Models/PhysicalAddress.cs +++ b/src/Microsoft.Graph/Generated/Models/PhysicalAddress.cs @@ -116,7 +116,7 @@ public static PhysicalAddress CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"city", n => { City = n.GetStringValue(); } }, {"countryOrRegion", n => { CountryOrRegion = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("city", City); writer.WriteStringValue("countryOrRegion", CountryOrRegion); diff --git a/src/Microsoft.Graph/Generated/Models/PhysicalOfficeAddress.cs b/src/Microsoft.Graph/Generated/Models/PhysicalOfficeAddress.cs index c833e8e20a6..2babe4c8390 100644 --- a/src/Microsoft.Graph/Generated/Models/PhysicalOfficeAddress.cs +++ b/src/Microsoft.Graph/Generated/Models/PhysicalOfficeAddress.cs @@ -130,7 +130,7 @@ public static PhysicalOfficeAddress CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"city", n => { City = n.GetStringValue(); } }, {"countryOrRegion", n => { CountryOrRegion = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("city", City); writer.WriteStringValue("countryOrRegion", CountryOrRegion); diff --git a/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs b/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs index 80a157f0f39..95e19b51fd7 100644 --- a/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfo.cs @@ -31,7 +31,7 @@ public ChatMessage Message { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"message", n => { Message = n.GetObjectValue(ChatMessage.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public ChatMessage Message { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfoCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfoCollectionResponse.cs index 0abe2336ebd..e291afdff6d 100644 --- a/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfoCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PinnedChatMessageInfoCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PinnedChatMessageInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Pkcs12Certificate.cs b/src/Microsoft.Graph/Generated/Models/Pkcs12Certificate.cs index 0b1f37e21aa..5a119c3ec79 100644 --- a/src/Microsoft.Graph/Generated/Models/Pkcs12Certificate.cs +++ b/src/Microsoft.Graph/Generated/Models/Pkcs12Certificate.cs @@ -51,7 +51,7 @@ public Pkcs12Certificate() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"password", n => { Password = n.GetStringValue(); } }, {"pkcs12Value", n => { Pkcs12Value = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public Pkcs12Certificate() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("password", Password); diff --git a/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs b/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs index 81da66cc8d3..cf4c1912be0 100644 --- a/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/Pkcs12CertificateInformation.cs @@ -75,7 +75,7 @@ public static Pkcs12CertificateInformation CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isActive", n => { IsActive = n.GetBoolValue(); } }, {"notAfter", n => { NotAfter = n.GetLongValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isActive", IsActive); writer.WriteLongValue("notAfter", NotAfter); diff --git a/src/Microsoft.Graph/Generated/Models/Place.cs b/src/Microsoft.Graph/Generated/Models/Place.cs index 515c8b04313..6ebafd9bc84 100644 --- a/src/Microsoft.Graph/Generated/Models/Place.cs +++ b/src/Microsoft.Graph/Generated/Models/Place.cs @@ -78,7 +78,7 @@ public string Phone { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"address", n => { Address = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -90,7 +90,7 @@ public string Phone { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("address", Address); diff --git a/src/Microsoft.Graph/Generated/Models/Planner.cs b/src/Microsoft.Graph/Generated/Models/Planner.cs index fc163768ab6..a3b0e812b92 100644 --- a/src/Microsoft.Graph/Generated/Models/Planner.cs +++ b/src/Microsoft.Graph/Generated/Models/Planner.cs @@ -59,7 +59,7 @@ public List Tasks { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"buckets", n => { Buckets = n.GetCollectionOfObjectValues(PlannerBucket.CreateFromDiscriminatorValue)?.ToList(); } }, {"plans", n => { Plans = n.GetCollectionOfObjectValues(PlannerPlan.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public List Tasks { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("buckets", Buckets); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerAppliedCategories.cs b/src/Microsoft.Graph/Generated/Models/PlannerAppliedCategories.cs index c0ba46e990d..6f54ad0292a 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerAppliedCategories.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerAppliedCategories.cs @@ -46,7 +46,7 @@ public static PlannerAppliedCategories CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerAssignedToTaskBoardTaskFormat.cs b/src/Microsoft.Graph/Generated/Models/PlannerAssignedToTaskBoardTaskFormat.cs index 63788579065..46e485a4ad0 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerAssignedToTaskBoardTaskFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerAssignedToTaskBoardTaskFormat.cs @@ -45,7 +45,7 @@ public string UnassignedOrderHint { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"orderHintsByAssignee", n => { OrderHintsByAssignee = n.GetObjectValue(PlannerOrderHintsByAssignee.CreateFromDiscriminatorValue); } }, {"unassignedOrderHint", n => { UnassignedOrderHint = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string UnassignedOrderHint { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("orderHintsByAssignee", OrderHintsByAssignee); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerAssignments.cs b/src/Microsoft.Graph/Generated/Models/PlannerAssignments.cs index 080e362278d..514c0be2822 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerAssignments.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerAssignments.cs @@ -46,7 +46,7 @@ public static PlannerAssignments CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs b/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs index 2006eed46f1..b9e571d73aa 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerBucket.cs @@ -73,7 +73,7 @@ public List Tasks { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, {"orderHint", n => { OrderHint = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public List Tasks { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerBucketCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PlannerBucketCollectionResponse.cs index 42418b330ea..b58f84c2f72 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerBucketCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerBucketCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PlannerBucket.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerBucketTaskBoardTaskFormat.cs b/src/Microsoft.Graph/Generated/Models/PlannerBucketTaskBoardTaskFormat.cs index 9f5964ff1e5..f3291de69dd 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerBucketTaskBoardTaskFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerBucketTaskBoardTaskFormat.cs @@ -31,7 +31,7 @@ public string OrderHint { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"orderHint", n => { OrderHint = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string OrderHint { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("orderHint", OrderHint); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerCategoryDescriptions.cs b/src/Microsoft.Graph/Generated/Models/PlannerCategoryDescriptions.cs index db1c370b6a0..584f8487833 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerCategoryDescriptions.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerCategoryDescriptions.cs @@ -396,7 +396,7 @@ public static PlannerCategoryDescriptions CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"category1", n => { Category1 = n.GetStringValue(); } }, {"category10", n => { Category10 = n.GetStringValue(); } }, @@ -430,7 +430,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("category1", Category1); writer.WriteStringValue("category10", Category10); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerChecklistItems.cs b/src/Microsoft.Graph/Generated/Models/PlannerChecklistItems.cs index 228c291f99f..b4c7eb0eba3 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerChecklistItems.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerChecklistItems.cs @@ -46,7 +46,7 @@ public static PlannerChecklistItems CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerExternalReferences.cs b/src/Microsoft.Graph/Generated/Models/PlannerExternalReferences.cs index efb43d1dcd9..cf087128fa4 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerExternalReferences.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerExternalReferences.cs @@ -46,7 +46,7 @@ public static PlannerExternalReferences CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerGroup.cs b/src/Microsoft.Graph/Generated/Models/PlannerGroup.cs index 1e7a64e6778..9f113d34fad 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerGroup.cs @@ -31,7 +31,7 @@ public List Plans { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"plans", n => { Plans = n.GetCollectionOfObjectValues(PlannerPlan.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Plans { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("plans", Plans); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerOrderHintsByAssignee.cs b/src/Microsoft.Graph/Generated/Models/PlannerOrderHintsByAssignee.cs index dd4cc309b0a..ca9b53a20e8 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerOrderHintsByAssignee.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerOrderHintsByAssignee.cs @@ -46,7 +46,7 @@ public static PlannerOrderHintsByAssignee CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs index 80447ada33b..73cdcdc066b 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlan.cs @@ -120,7 +120,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"buckets", n => { Buckets = n.GetCollectionOfObjectValues(PlannerBucket.CreateFromDiscriminatorValue)?.ToList(); } }, {"container", n => { Container = n.GetObjectValue(PlannerPlanContainer.CreateFromDiscriminatorValue); } }, @@ -136,7 +136,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("buckets", Buckets); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanCollectionResponse.cs index 3b89e2f1d38..42efbeb4208 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PlannerPlan.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanContainer.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanContainer.cs index 07e6280695b..f686fb7e5a4 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanContainer.cs @@ -79,7 +79,7 @@ public static PlannerPlanContainer CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"containerId", n => { ContainerId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("containerId", ContainerId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerPlanDetails.cs b/src/Microsoft.Graph/Generated/Models/PlannerPlanDetails.cs index 8e28d99d777..124262f710a 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerPlanDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerPlanDetails.cs @@ -45,7 +45,7 @@ public PlannerUserIds SharedWith { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"categoryDescriptions", n => { CategoryDescriptions = n.GetObjectValue(PlannerCategoryDescriptions.CreateFromDiscriminatorValue); } }, {"sharedWith", n => { SharedWith = n.GetObjectValue(PlannerUserIds.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public PlannerUserIds SharedWith { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("categoryDescriptions", CategoryDescriptions); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerProgressTaskBoardTaskFormat.cs b/src/Microsoft.Graph/Generated/Models/PlannerProgressTaskBoardTaskFormat.cs index 65021704c84..3d220d251cb 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerProgressTaskBoardTaskFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerProgressTaskBoardTaskFormat.cs @@ -31,7 +31,7 @@ public string OrderHint { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"orderHint", n => { OrderHint = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string OrderHint { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("orderHint", OrderHint); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTask.cs b/src/Microsoft.Graph/Generated/Models/PlannerTask.cs index 7a56e497d47..53aadb5fa53 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTask.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTask.cs @@ -268,7 +268,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeChecklistItemCount", n => { ActiveChecklistItemCount = n.GetIntValue(); } }, {"appliedCategories", n => { AppliedCategories = n.GetObjectValue(PlannerAppliedCategories.CreateFromDiscriminatorValue); } }, @@ -301,7 +301,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeChecklistItemCount", ActiveChecklistItemCount); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskCollectionResponse.cs index 317cf3cd36c..50800e11b57 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PlannerTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskDetails.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskDetails.cs index e3bdddf8296..f0ba0d48c8f 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskDetails.cs @@ -64,7 +64,7 @@ public PlannerExternalReferences References { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"checklist", n => { Checklist = n.GetObjectValue(PlannerChecklistItems.CreateFromDiscriminatorValue); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public PlannerExternalReferences References { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("checklist", Checklist); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerUser.cs b/src/Microsoft.Graph/Generated/Models/PlannerUser.cs index 1ebd31bec75..2bae85ba00d 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerUser.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerUser.cs @@ -45,7 +45,7 @@ public List Tasks { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"plans", n => { Plans = n.GetCollectionOfObjectValues(PlannerPlan.CreateFromDiscriminatorValue)?.ToList(); } }, {"tasks", n => { Tasks = n.GetCollectionOfObjectValues(PlannerTask.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public List Tasks { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("plans", Plans); diff --git a/src/Microsoft.Graph/Generated/Models/PlannerUserIds.cs b/src/Microsoft.Graph/Generated/Models/PlannerUserIds.cs index 05ebaf3eda8..835dad77676 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerUserIds.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerUserIds.cs @@ -46,7 +46,7 @@ public static PlannerUserIds CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/PlayPromptOperation.cs b/src/Microsoft.Graph/Generated/Models/PlayPromptOperation.cs index 98068c2982c..3ed649c4968 100644 --- a/src/Microsoft.Graph/Generated/Models/PlayPromptOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/PlayPromptOperation.cs @@ -17,7 +17,7 @@ public class PlayPromptOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class PlayPromptOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/PolicyBase.cs b/src/Microsoft.Graph/Generated/Models/PolicyBase.cs index f6ada54430f..eefb0d54627 100644 --- a/src/Microsoft.Graph/Generated/Models/PolicyBase.cs +++ b/src/Microsoft.Graph/Generated/Models/PolicyBase.cs @@ -66,7 +66,7 @@ public PolicyBase() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public PolicyBase() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs b/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs index 6b8d0ce81c9..97106f49468 100644 --- a/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs @@ -62,7 +62,7 @@ public Microsoft.Graph.Models.AuthenticationFlowsPolicy AuthenticationFlowsPolic set { BackingStore?.Set("authenticationFlowsPolicy", value); } } #endif - /// The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Azure Active Directory (Azure AD). + /// The authentication methods and the users that are allowed to use them to sign in and perform multifactor authentication (MFA) in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.AuthenticationMethodsPolicy? AuthenticationMethodsPolicy { @@ -76,7 +76,7 @@ public Microsoft.Graph.Models.AuthenticationMethodsPolicy AuthenticationMethodsP set { BackingStore?.Set("authenticationMethodsPolicy", value); } } #endif - /// The authentication method combinations that are to be used in scenarios defined by Azure AD Conditional Access. + /// The authentication method combinations that are to be used in scenarios defined by Microsoft Entra Conditional Access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AuthenticationStrengthPolicies { @@ -90,7 +90,7 @@ public List AuthenticationStrengthPolicies { set { BackingStore?.Set("authenticationStrengthPolicies", value); } } #endif - /// The policy that controls Azure AD authorization settings. + /// The policy that controls Microsoft Entra authorization settings. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.AuthorizationPolicy? AuthorizationPolicy { @@ -132,7 +132,7 @@ public List ConditionalAccessPolicies { set { BackingStore?.Set("conditionalAccessPolicies", value); } } #endif - /// The custom rules that define an access scenario when interacting with external Azure AD tenants. + /// The custom rules that define an access scenario when interacting with external Microsoft Entra tenants. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.CrossTenantAccessPolicy? CrossTenantAccessPolicy { @@ -174,7 +174,7 @@ public List FeatureRolloutPolicies { set { BackingStore?.Set("featureRolloutPolicies", value); } } #endif - /// The policy to control Azure AD authentication behavior for federated users. + /// The policy to control Microsoft Entra authentication behavior for federated users. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? HomeRealmDiscoveryPolicies { @@ -244,7 +244,7 @@ public List RoleManagementPolicyAssignmen set { BackingStore?.Set("roleManagementPolicyAssignments", value); } } #endif - /// The policy that specifies the characteristics of SAML tokens issued by Azure AD. + /// The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TokenIssuancePolicies { @@ -258,7 +258,7 @@ public List TokenIssuancePolicies { set { BackingStore?.Set("tokenIssuancePolicies", value); } } #endif - /// The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Azure AD. + /// The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TokenLifetimePolicies { @@ -283,7 +283,7 @@ public List TokenLifetimePolicies { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activityBasedTimeoutPolicies", n => { ActivityBasedTimeoutPolicies = n.GetCollectionOfObjectValues(ActivityBasedTimeoutPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"adminConsentRequestPolicy", n => { AdminConsentRequestPolicy = n.GetObjectValue(Microsoft.Graph.Models.AdminConsentRequestPolicy.CreateFromDiscriminatorValue); } }, @@ -310,7 +310,7 @@ public List TokenLifetimePolicies { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("activityBasedTimeoutPolicies", ActivityBasedTimeoutPolicies); diff --git a/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs b/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs index 44e2a04c992..cfd9d8f51d0 100644 --- a/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/PositiveReinforcementNotification.cs @@ -28,7 +28,7 @@ public PositiveReinforcementNotification() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deliveryPreference", n => { DeliveryPreference = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public PositiveReinforcementNotification() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("deliveryPreference", DeliveryPreference); diff --git a/src/Microsoft.Graph/Generated/Models/Post.cs b/src/Microsoft.Graph/Generated/Models/Post.cs index f0b2a35108b..cc1690c695a 100644 --- a/src/Microsoft.Graph/Generated/Models/Post.cs +++ b/src/Microsoft.Graph/Generated/Models/Post.cs @@ -187,7 +187,7 @@ public Post() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, {"body", n => { Body = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, @@ -208,7 +208,7 @@ public Post() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("attachments", Attachments); diff --git a/src/Microsoft.Graph/Generated/Models/PostCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PostCollectionResponse.cs index daee20f3fff..2e8d5f1f5e1 100644 --- a/src/Microsoft.Graph/Generated/Models/PostCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PostCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Post.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PreAuthorizedApplication.cs b/src/Microsoft.Graph/Generated/Models/PreAuthorizedApplication.cs index 1f7879d624c..58906b4ef8c 100644 --- a/src/Microsoft.Graph/Generated/Models/PreAuthorizedApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/PreAuthorizedApplication.cs @@ -74,7 +74,7 @@ public static PreAuthorizedApplication CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appId", n => { AppId = n.GetStringValue(); } }, {"delegatedPermissionIds", n => { DelegatedPermissionIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appId", AppId); writer.WriteCollectionOfPrimitiveValues("delegatedPermissionIds", DelegatedPermissionIds); diff --git a/src/Microsoft.Graph/Generated/Models/Presence.cs b/src/Microsoft.Graph/Generated/Models/Presence.cs index bf05a289b5e..885dc8889c2 100644 --- a/src/Microsoft.Graph/Generated/Models/Presence.cs +++ b/src/Microsoft.Graph/Generated/Models/Presence.cs @@ -59,7 +59,7 @@ public PresenceStatusMessage StatusMessage { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public PresenceStatusMessage StatusMessage { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("activity", Activity); diff --git a/src/Microsoft.Graph/Generated/Models/PresenceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PresenceCollectionResponse.cs index fa73192eef5..c845846e9d6 100644 --- a/src/Microsoft.Graph/Generated/Models/PresenceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PresenceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Presence.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs b/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs index f30408a2458..5cf3e4b65da 100644 --- a/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs @@ -79,7 +79,7 @@ public static PresenceStatusMessage CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expiryDateTime", n => { ExpiryDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"message", n => { Message = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("expiryDateTime", ExpiryDateTime); writer.WriteObjectValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/PrincipalResourceMembershipsScope.cs b/src/Microsoft.Graph/Generated/Models/PrincipalResourceMembershipsScope.cs index 6f9e62ba416..238787d43ad 100644 --- a/src/Microsoft.Graph/Generated/Models/PrincipalResourceMembershipsScope.cs +++ b/src/Microsoft.Graph/Generated/Models/PrincipalResourceMembershipsScope.cs @@ -51,7 +51,7 @@ public PrincipalResourceMembershipsScope() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"principalScopes", n => { PrincipalScopes = n.GetCollectionOfObjectValues(AccessReviewScope.CreateFromDiscriminatorValue)?.ToList(); } }, {"resourceScopes", n => { ResourceScopes = n.GetCollectionOfObjectValues(AccessReviewScope.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -61,7 +61,7 @@ public PrincipalResourceMembershipsScope() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("principalScopes", PrincipalScopes); diff --git a/src/Microsoft.Graph/Generated/Models/Print.cs b/src/Microsoft.Graph/Generated/Models/Print.cs index 67336201063..b6533f2302c 100644 --- a/src/Microsoft.Graph/Generated/Models/Print.cs +++ b/src/Microsoft.Graph/Generated/Models/Print.cs @@ -144,7 +144,7 @@ public static Print CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"connectors", n => { Connectors = n.GetCollectionOfObjectValues(PrintConnector.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -160,7 +160,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("connectors", Connectors); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrintCertificateSigningRequest.cs b/src/Microsoft.Graph/Generated/Models/PrintCertificateSigningRequest.cs index f437f04f2ac..ae8254d7694 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintCertificateSigningRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintCertificateSigningRequest.cs @@ -74,7 +74,7 @@ public static PrintCertificateSigningRequest CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrintConnector.cs b/src/Microsoft.Graph/Generated/Models/PrintConnector.cs index 8f84526bd30..da33ba323fb 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintConnector.cs @@ -92,7 +92,7 @@ public DateTimeOffset? RegisteredDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appVersion", n => { AppVersion = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public DateTimeOffset? RegisteredDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appVersion", AppVersion); diff --git a/src/Microsoft.Graph/Generated/Models/PrintConnectorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintConnectorCollectionResponse.cs index d0981cb4a46..753797576af 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintConnectorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintConnectorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintConnector.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintDocument.cs b/src/Microsoft.Graph/Generated/Models/PrintDocument.cs index 9ba04f4a2cc..389db2eabc9 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintDocument.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintDocument.cs @@ -50,7 +50,7 @@ public long? Size { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentType", n => { ContentType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public long? Size { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/PrintDocumentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintDocumentCollectionResponse.cs index 99c7738d4ff..f6df22ac252 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintDocumentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintDocumentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintDocument.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintDocumentUploadProperties.cs b/src/Microsoft.Graph/Generated/Models/PrintDocumentUploadProperties.cs index 967f720321d..f58d8b811fc 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintDocumentUploadProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintDocumentUploadProperties.cs @@ -79,7 +79,7 @@ public static PrintDocumentUploadProperties CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, {"documentName", n => { DocumentName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteStringValue("documentName", DocumentName); diff --git a/src/Microsoft.Graph/Generated/Models/PrintJob.cs b/src/Microsoft.Graph/Generated/Models/PrintJob.cs index 8f4edd5341f..d3cff88b80a 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintJob.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintJob.cs @@ -125,7 +125,7 @@ public List Tasks { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configuration", n => { Configuration = n.GetObjectValue(PrintJobConfiguration.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(UserIdentity.CreateFromDiscriminatorValue); } }, @@ -142,7 +142,7 @@ public List Tasks { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("configuration", Configuration); diff --git a/src/Microsoft.Graph/Generated/Models/PrintJobCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintJobCollectionResponse.cs index 166a1ae8fac..6498fb4035e 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintJobCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintJobCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintJobConfiguration.cs b/src/Microsoft.Graph/Generated/Models/PrintJobConfiguration.cs index 6adaee8b370..4d59941d48e 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintJobConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintJobConfiguration.cs @@ -204,7 +204,7 @@ public static PrintJobConfiguration CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"collate", n => { Collate = n.GetBoolValue(); } }, {"colorMode", n => { ColorMode = n.GetEnumValue(); } }, @@ -232,7 +232,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("collate", Collate); writer.WriteEnumValue("colorMode", ColorMode); diff --git a/src/Microsoft.Graph/Generated/Models/PrintJobStatus.cs b/src/Microsoft.Graph/Generated/Models/PrintJobStatus.cs index d26c5061af3..9881ac70f10 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintJobStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintJobStatus.cs @@ -84,7 +84,7 @@ public static PrintJobStatus CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"details", n => { Details = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteCollectionOfEnumValues("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/PrintMargin.cs b/src/Microsoft.Graph/Generated/Models/PrintMargin.cs index 3b215399d41..1bdc03a9a19 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintMargin.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintMargin.cs @@ -66,7 +66,7 @@ public static PrintMargin CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bottom", n => { Bottom = n.GetIntValue(); } }, {"left", n => { Left = n.GetIntValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("bottom", Bottom); writer.WriteIntValue("left", Left); diff --git a/src/Microsoft.Graph/Generated/Models/PrintOperation.cs b/src/Microsoft.Graph/Generated/Models/PrintOperation.cs index 20b07861099..d2e2aa3dcf8 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintOperation.cs @@ -40,7 +40,7 @@ public PrintOperationStatus Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"status", n => { Status = n.GetObjectValue(PrintOperationStatus.CreateFromDiscriminatorValue); } }, @@ -50,7 +50,7 @@ public PrintOperationStatus Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/PrintOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintOperationCollectionResponse.cs index a501e77bab2..f0b323e61f0 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintOperationStatus.cs b/src/Microsoft.Graph/Generated/Models/PrintOperationStatus.cs index a24d34fa492..aa35c8e53f0 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintOperationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintOperationStatus.cs @@ -65,7 +65,7 @@ public static PrintOperationStatus CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrintService.cs b/src/Microsoft.Graph/Generated/Models/PrintService.cs index 25d9c9c61bc..ad7fc2d410d 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintService.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintService.cs @@ -31,7 +31,7 @@ public List Endpoints { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endpoints", n => { Endpoints = n.GetCollectionOfObjectValues(PrintServiceEndpoint.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Endpoints { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("endpoints", Endpoints); diff --git a/src/Microsoft.Graph/Generated/Models/PrintServiceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintServiceCollectionResponse.cs index 8447fb14d0f..6d86d7912bb 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintServiceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintServiceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintService.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintServiceEndpoint.cs b/src/Microsoft.Graph/Generated/Models/PrintServiceEndpoint.cs index 5897ef45412..7924bf34305 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintServiceEndpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintServiceEndpoint.cs @@ -45,7 +45,7 @@ public string Uri { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"uri", n => { Uri = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string Uri { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/PrintServiceEndpointCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintServiceEndpointCollectionResponse.cs index 86b79c549f4..62519b971ea 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintServiceEndpointCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintServiceEndpointCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintServiceEndpoint.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintSettings.cs b/src/Microsoft.Graph/Generated/Models/PrintSettings.cs index 73f16447306..4a6edbe04fe 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintSettings.cs @@ -51,7 +51,7 @@ public static PrintSettings CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"documentConversionEnabled", n => { DocumentConversionEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("documentConversionEnabled", DocumentConversionEnabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTask.cs b/src/Microsoft.Graph/Generated/Models/PrintTask.cs index 580ba02322c..78a38db18d5 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTask.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTask.cs @@ -73,7 +73,7 @@ public PrintTaskTrigger Trigger { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"definition", n => { Definition = n.GetObjectValue(PrintTaskDefinition.CreateFromDiscriminatorValue); } }, {"parentUrl", n => { ParentUrl = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public PrintTaskTrigger Trigger { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("definition", Definition); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskCollectionResponse.cs index a10e270a21c..b4ad7e6d1a9 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs index 7bde4f8b8b8..5413c7e6c3e 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskDefinition.cs @@ -59,7 +59,7 @@ public List Tasks { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(AppIdentity.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public List Tasks { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskDefinitionCollectionResponse.cs index 68e3c8f3908..5a9dffe25e6 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintTaskDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskStatus.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskStatus.cs index bc9573536f6..267ad51df79 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskStatus.cs @@ -65,7 +65,7 @@ public static PrintTaskStatus CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs index 159204ed55f..e548779e99b 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskTrigger.cs @@ -36,7 +36,7 @@ public PrintEvent? Event { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"definition", n => { Definition = n.GetObjectValue(PrintTaskDefinition.CreateFromDiscriminatorValue); } }, {"event", n => { Event = n.GetEnumValue(); } }, @@ -46,7 +46,7 @@ public PrintEvent? Event { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("definition", Definition); diff --git a/src/Microsoft.Graph/Generated/Models/PrintTaskTriggerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintTaskTriggerCollectionResponse.cs index 548086f0631..7425fae35d3 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintTaskTriggerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintTaskTriggerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintTaskTrigger.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintUsage.cs b/src/Microsoft.Graph/Generated/Models/PrintUsage.cs index 24b0dadcd66..5f41355b66b 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintUsage.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintUsage.cs @@ -78,7 +78,7 @@ public Date? UsageDate { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"blackAndWhitePageCount", n => { BlackAndWhitePageCount = n.GetLongValue(); } }, {"colorPageCount", n => { ColorPageCount = n.GetLongValue(); } }, @@ -97,7 +97,7 @@ public Date? UsageDate { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteLongValue("blackAndWhitePageCount", BlackAndWhitePageCount); diff --git a/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinter.cs b/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinter.cs index 6fa81327185..d9e0a61183d 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinter.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinter.cs @@ -51,7 +51,7 @@ public PrintUsageByPrinter() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"printerId", n => { PrinterId = n.GetStringValue(); } }, {"printerName", n => { PrinterName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public PrintUsageByPrinter() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("printerId", PrinterId); diff --git a/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinterCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinterCollectionResponse.cs index 0feb1c3df0e..6dcfc3d5edf 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinterCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintUsageByPrinterCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintUsageByPrinter.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrintUsageByUser.cs b/src/Microsoft.Graph/Generated/Models/PrintUsageByUser.cs index beb8ab1fae0..62029249db5 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintUsageByUser.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintUsageByUser.cs @@ -37,7 +37,7 @@ public PrintUsageByUser() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public PrintUsageByUser() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userPrincipalName", UserPrincipalName); diff --git a/src/Microsoft.Graph/Generated/Models/PrintUsageByUserCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrintUsageByUserCollectionResponse.cs index c0c987a47be..498a5b94221 100644 --- a/src/Microsoft.Graph/Generated/Models/PrintUsageByUserCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrintUsageByUserCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrintUsageByUser.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Printer.cs b/src/Microsoft.Graph/Generated/Models/Printer.cs index eba80c342ba..fbe35acc7ce 100644 --- a/src/Microsoft.Graph/Generated/Models/Printer.cs +++ b/src/Microsoft.Graph/Generated/Models/Printer.cs @@ -85,7 +85,7 @@ public Printer() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"connectors", n => { Connectors = n.GetCollectionOfObjectValues(PrintConnector.CreateFromDiscriminatorValue)?.ToList(); } }, {"hasPhysicalDevice", n => { HasPhysicalDevice = n.GetBoolValue(); } }, @@ -100,7 +100,7 @@ public Printer() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("connectors", Connectors); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterBase.cs b/src/Microsoft.Graph/Generated/Models/PrinterBase.cs index ef0a81712cb..d81ff680e72 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterBase.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterBase.cs @@ -139,7 +139,7 @@ public PrinterStatus Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"capabilities", n => { Capabilities = n.GetObjectValue(PrinterCapabilities.CreateFromDiscriminatorValue); } }, {"defaults", n => { Defaults = n.GetObjectValue(PrinterDefaults.CreateFromDiscriminatorValue); } }, @@ -156,7 +156,7 @@ public PrinterStatus Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("capabilities", Capabilities); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterCapabilities.cs b/src/Microsoft.Graph/Generated/Models/PrinterCapabilities.cs index 333d86d5bfc..0b1cd681237 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterCapabilities.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterCapabilities.cs @@ -360,7 +360,7 @@ public static PrinterCapabilities CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bottomMargins", n => { BottomMargins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"collation", n => { Collation = n.GetBoolValue(); } }, @@ -394,7 +394,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("bottomMargins", BottomMargins); writer.WriteBoolValue("collation", Collation); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrinterCollectionResponse.cs index 213ada961c9..db08a375203 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Printer.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterCreateOperation.cs b/src/Microsoft.Graph/Generated/Models/PrinterCreateOperation.cs index 46c68f241dc..2e9ff93197b 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterCreateOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterCreateOperation.cs @@ -51,7 +51,7 @@ public PrinterCreateOperation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"certificate", n => { Certificate = n.GetStringValue(); } }, {"printer", n => { Printer = n.GetObjectValue(Microsoft.Graph.Models.Printer.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public PrinterCreateOperation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("certificate", Certificate); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterDefaults.cs b/src/Microsoft.Graph/Generated/Models/PrinterDefaults.cs index a14f4e60d87..ef44ff6d66c 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterDefaults.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterDefaults.cs @@ -194,7 +194,7 @@ public static PrinterDefaults CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"colorMode", n => { ColorMode = n.GetEnumValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -220,7 +220,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("colorMode", ColorMode); writer.WriteStringValue("contentType", ContentType); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterLocation.cs b/src/Microsoft.Graph/Generated/Models/PrinterLocation.cs index 91082490f95..fd751c04ac0 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterLocation.cs @@ -257,7 +257,7 @@ public static PrinterLocation CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"altitudeInMeters", n => { AltitudeInMeters = n.GetIntValue(); } }, {"building", n => { Building = n.GetStringValue(); } }, @@ -283,7 +283,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("altitudeInMeters", AltitudeInMeters); writer.WriteStringValue("building", Building); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterShare.cs b/src/Microsoft.Graph/Generated/Models/PrinterShare.cs index 2380db37182..6734fdb71b1 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterShare.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterShare.cs @@ -89,7 +89,7 @@ public PrinterShare() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowAllUsers", n => { AllowAllUsers = n.GetBoolValue(); } }, {"allowedGroups", n => { AllowedGroups = n.GetCollectionOfObjectValues(Group.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -103,7 +103,7 @@ public PrinterShare() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowAllUsers", AllowAllUsers); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterShareCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrinterShareCollectionResponse.cs index 6e10ea85261..87c05fb7ba8 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterShareCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterShareCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrinterShare.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterShareViewpoint.cs b/src/Microsoft.Graph/Generated/Models/PrinterShareViewpoint.cs index 94d9c293ac3..43694822deb 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterShareViewpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterShareViewpoint.cs @@ -51,7 +51,7 @@ public static PrinterShareViewpoint CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastUsedDateTime", n => { LastUsedDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastUsedDateTime", LastUsedDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrinterStatus.cs b/src/Microsoft.Graph/Generated/Models/PrinterStatus.cs index 4c3b40b22ed..41393e5d588 100644 --- a/src/Microsoft.Graph/Generated/Models/PrinterStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/PrinterStatus.cs @@ -79,7 +79,7 @@ public static PrinterStatus CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"details", n => { Details = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteCollectionOfEnumValues("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/Privacy.cs b/src/Microsoft.Graph/Generated/Models/Privacy.cs index f3905a44397..7ff243ad2ee 100644 --- a/src/Microsoft.Graph/Generated/Models/Privacy.cs +++ b/src/Microsoft.Graph/Generated/Models/Privacy.cs @@ -60,7 +60,7 @@ public static Privacy CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"subjectRightsRequests", n => { SubjectRightsRequests = n.GetCollectionOfObjectValues(SubjectRightsRequest.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("subjectRightsRequests", SubjectRightsRequests); diff --git a/src/Microsoft.Graph/Generated/Models/PrivacyProfile.cs b/src/Microsoft.Graph/Generated/Models/PrivacyProfile.cs index 5e2d7748d38..d3f6a92021c 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivacyProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivacyProfile.cs @@ -74,7 +74,7 @@ public static PrivacyProfile CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contactEmail", n => { ContactEmail = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contactEmail", ContactEmail); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs index 2d86970328c..d1724e0cf90 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroup.cs @@ -115,7 +115,7 @@ public List EligibilitySchedules { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignmentApprovals", n => { AssignmentApprovals = n.GetCollectionOfObjectValues(Approval.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentScheduleInstances", n => { AssignmentScheduleInstances = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -130,7 +130,7 @@ public List EligibilitySchedules { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignmentApprovals", AssignmentApprovals); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs index 0045e338264..1dfe3970ea8 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentSchedule.cs @@ -108,7 +108,7 @@ public PrivilegedAccessGroupAssignmentSchedule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessId", n => { AccessId = n.GetEnumValue(); } }, {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, @@ -124,7 +124,7 @@ public PrivilegedAccessGroupAssignmentSchedule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("accessId", AccessId); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs index 5f8e3efe0ec..e5de2579634 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs index eca96a13ea1..fa74679f8ab 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstance.cs @@ -122,7 +122,7 @@ public PrivilegedAccessGroupAssignmentScheduleInstance() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessId", n => { AccessId = n.GetEnumValue(); } }, {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue); } }, @@ -139,7 +139,7 @@ public PrivilegedAccessGroupAssignmentScheduleInstance() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("accessId", AccessId); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs index 65e94e8e3bb..ee75044b7a6 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs index 253be8bb2b4..76bb29fd0f2 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequest.cs @@ -126,7 +126,7 @@ public PrivilegedAccessGroupAssignmentScheduleRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessId", n => { AccessId = n.GetEnumValue(); } }, {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue); } }, @@ -142,7 +142,7 @@ public PrivilegedAccessGroupAssignmentScheduleRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("accessId", AccessId); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs index 0c2ebbf086d..8495fe7d98a 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs index 5a0199e54cc..c877b79eac1 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilitySchedule.cs @@ -89,7 +89,7 @@ public PrivilegedAccessGroupEligibilitySchedule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessId", n => { AccessId = n.GetEnumValue(); } }, {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, @@ -103,7 +103,7 @@ public PrivilegedAccessGroupEligibilitySchedule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("accessId", AccessId); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs index 1ff345567fa..5341f165125 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs index 6a347656c61..797cfacd9a1 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstance.cs @@ -103,7 +103,7 @@ public PrivilegedAccessGroupEligibilityScheduleInstance() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessId", n => { AccessId = n.GetEnumValue(); } }, {"eligibilityScheduleId", n => { EligibilityScheduleId = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public PrivilegedAccessGroupEligibilityScheduleInstance() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("accessId", AccessId); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs index 079967c7a80..e1893def40f 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs index 999ea52f659..efad485d0dc 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequest.cs @@ -112,7 +112,7 @@ public PrivilegedAccessGroupEligibilityScheduleRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accessId", n => { AccessId = n.GetEnumValue(); } }, {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, @@ -127,7 +127,7 @@ public PrivilegedAccessGroupEligibilityScheduleRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("accessId", AccessId); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs index fd98ecde21d..1d0802aa9a6 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PrivilegedAccessGroupEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs index 255f3b78715..12bc311faef 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessRoot.cs @@ -31,7 +31,7 @@ public PrivilegedAccessGroup Group { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"group", n => { Group = n.GetObjectValue(PrivilegedAccessGroup.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public PrivilegedAccessGroup Group { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("group", Group); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs index 91040590cef..e60e57ddc9f 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessSchedule.cs @@ -74,7 +74,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdUsing", n => { CreatedUsing = n.GetStringValue(); } }, @@ -87,7 +87,7 @@ public string Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs index c0813adb42e..026b94c2916 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleInstance.cs @@ -32,7 +32,7 @@ public DateTimeOffset? StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, @@ -42,7 +42,7 @@ public DateTimeOffset? StartDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs index 545f45d6a30..d82926d8bc7 100644 --- a/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/PrivilegedAccessScheduleRequest.cs @@ -74,7 +74,7 @@ public Microsoft.Graph.Models.TicketInfo TicketInfo { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"action", n => { Action = n.GetEnumValue(); } }, {"isValidationOnly", n => { IsValidationOnly = n.GetBoolValue(); } }, @@ -87,7 +87,7 @@ public Microsoft.Graph.Models.TicketInfo TicketInfo { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("action", Action); diff --git a/src/Microsoft.Graph/Generated/Models/Process.cs b/src/Microsoft.Graph/Generated/Models/Process.cs index 4a567701c83..923d546aa02 100644 --- a/src/Microsoft.Graph/Generated/Models/Process.cs +++ b/src/Microsoft.Graph/Generated/Models/Process.cs @@ -160,7 +160,7 @@ public static Process CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accountName", n => { AccountName = n.GetStringValue(); } }, {"commandLine", n => { CommandLine = n.GetStringValue(); } }, @@ -181,7 +181,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("accountName", AccountName); writer.WriteStringValue("commandLine", CommandLine); diff --git a/src/Microsoft.Graph/Generated/Models/ProfileCardAnnotation.cs b/src/Microsoft.Graph/Generated/Models/ProfileCardAnnotation.cs index 8392bfc2e7f..0653a618653 100644 --- a/src/Microsoft.Graph/Generated/Models/ProfileCardAnnotation.cs +++ b/src/Microsoft.Graph/Generated/Models/ProfileCardAnnotation.cs @@ -74,7 +74,7 @@ public static ProfileCardAnnotation CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"localizations", n => { Localizations = n.GetCollectionOfObjectValues(DisplayNameLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteCollectionOfObjectValues("localizations", Localizations); diff --git a/src/Microsoft.Graph/Generated/Models/ProfileCardProperty.cs b/src/Microsoft.Graph/Generated/Models/ProfileCardProperty.cs index e7aeeef9155..e1b7a7db018 100644 --- a/src/Microsoft.Graph/Generated/Models/ProfileCardProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/ProfileCardProperty.cs @@ -45,7 +45,7 @@ public string DirectoryPropertyName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"annotations", n => { Annotations = n.GetCollectionOfObjectValues(ProfileCardAnnotation.CreateFromDiscriminatorValue)?.ToList(); } }, {"directoryPropertyName", n => { DirectoryPropertyName = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string DirectoryPropertyName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("annotations", Annotations); diff --git a/src/Microsoft.Graph/Generated/Models/ProfileCardPropertyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ProfileCardPropertyCollectionResponse.cs index 9a0a27cf845..c2c3a0ab133 100644 --- a/src/Microsoft.Graph/Generated/Models/ProfileCardPropertyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ProfileCardPropertyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ProfileCardProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ProfilePhoto.cs b/src/Microsoft.Graph/Generated/Models/ProfilePhoto.cs index a3d17559e34..cae29ed4447 100644 --- a/src/Microsoft.Graph/Generated/Models/ProfilePhoto.cs +++ b/src/Microsoft.Graph/Generated/Models/ProfilePhoto.cs @@ -27,7 +27,7 @@ public int? Width { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"height", n => { Height = n.GetIntValue(); } }, {"width", n => { Width = n.GetIntValue(); } }, @@ -37,7 +37,7 @@ public int? Width { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("height", Height); diff --git a/src/Microsoft.Graph/Generated/Models/ProfilePhotoCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ProfilePhotoCollectionResponse.cs index beb3b1dca3d..3d5572d1cfe 100644 --- a/src/Microsoft.Graph/Generated/Models/ProfilePhotoCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ProfilePhotoCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ProfilePhoto.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Prompt.cs b/src/Microsoft.Graph/Generated/Models/Prompt.cs index 7cd8a26af3a..eba64c0d392 100644 --- a/src/Microsoft.Graph/Generated/Models/Prompt.cs +++ b/src/Microsoft.Graph/Generated/Models/Prompt.cs @@ -50,7 +50,7 @@ public static Prompt CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -59,7 +59,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisionChannelEmailResult.cs b/src/Microsoft.Graph/Generated/Models/ProvisionChannelEmailResult.cs index 70c0285c723..371a910ce0a 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisionChannelEmailResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisionChannelEmailResult.cs @@ -60,7 +60,7 @@ public static ProvisionChannelEmailResult CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"email", n => { Email = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email", Email); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisionedIdentity.cs b/src/Microsoft.Graph/Generated/Models/ProvisionedIdentity.cs index 00535cd2c4e..b9ed1dd7700 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisionedIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisionedIdentity.cs @@ -51,7 +51,7 @@ public ProvisionedIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"details", n => { Details = n.GetObjectValue(DetailsInfo.CreateFromDiscriminatorValue); } }, {"identityType", n => { IdentityType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public ProvisionedIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisionedPlan.cs b/src/Microsoft.Graph/Generated/Models/ProvisionedPlan.cs index fae244702af..d7767123df7 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisionedPlan.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisionedPlan.cs @@ -88,7 +88,7 @@ public static ProvisionedPlan CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"capabilityStatus", n => { CapabilityStatus = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("capabilityStatus", CapabilityStatus); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs index 7cc79769b9c..742ad8fd363 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningErrorInfo.cs @@ -107,7 +107,7 @@ public static ProvisioningErrorInfo CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"additionalDetails", n => { AdditionalDetails = n.GetStringValue(); } }, {"errorCategory", n => { ErrorCategory = n.GetEnumValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("additionalDetails", AdditionalDetails); writer.WriteEnumValue("errorCategory", ErrorCategory); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs index fdfc9336941..d39d5123959 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummary.cs @@ -86,7 +86,7 @@ public List ModifiedProperties { set { BackingStore?.Set("modifiedProperties", value); } } #endif - /// Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Azure AD activity list. Supports $filter (eq, contains). + /// Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Microsoft Entra activity list. Supports $filter (eq, contains). public Microsoft.Graph.Models.ProvisioningAction? ProvisioningAction { get { return BackingStore?.Get("provisioningAction"); } set { BackingStore?.Set("provisioningAction", value); } @@ -189,7 +189,7 @@ public ProvisioningSystem TargetSystem { set { BackingStore?.Set("targetSystem", value); } } #endif - /// Unique Azure AD tenant ID. Supports $filter (eq, contains). + /// Unique Microsoft Entra tenant ID. Supports $filter (eq, contains). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -214,7 +214,7 @@ public string TenantId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activityDateTime", n => { ActivityDateTime = n.GetDateTimeOffsetValue(); } }, {"changeId", n => { ChangeId = n.GetStringValue(); } }, @@ -238,7 +238,7 @@ public string TenantId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("activityDateTime", ActivityDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs index 251075c1dee..0241f2afab8 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningObjectSummaryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ProvisioningObjectSummary.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningServicePrincipal.cs index 9baf7bd5c40..72099c7f2e7 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningServicePrincipal.cs @@ -23,7 +23,7 @@ public ProvisioningServicePrincipal() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ProvisioningServicePrincipal() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningStatusInfo.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningStatusInfo.cs index 94bf84a8a55..05302c9b908 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningStatusInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningStatusInfo.cs @@ -65,7 +65,7 @@ public static ProvisioningStatusInfo CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"errorInformation", n => { ErrorInformation = n.GetObjectValue(ProvisioningErrorInfo.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("errorInformation", ErrorInformation); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningStep.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningStep.cs index 92705df8691..323f9ab8500 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningStep.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningStep.cs @@ -98,7 +98,7 @@ public static ProvisioningStep CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"details", n => { Details = n.GetObjectValue(DetailsInfo.CreateFromDiscriminatorValue); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteObjectValue("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/ProvisioningSystem.cs b/src/Microsoft.Graph/Generated/Models/ProvisioningSystem.cs index 790110908f5..caad4d7277b 100644 --- a/src/Microsoft.Graph/Generated/Models/ProvisioningSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/ProvisioningSystem.cs @@ -37,7 +37,7 @@ public ProvisioningSystem() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"details", n => { Details = n.GetObjectValue(DetailsInfo.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public ProvisioningSystem() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/ProxiedDomain.cs b/src/Microsoft.Graph/Generated/Models/ProxiedDomain.cs index 593b406958f..5876594043e 100644 --- a/src/Microsoft.Graph/Generated/Models/ProxiedDomain.cs +++ b/src/Microsoft.Graph/Generated/Models/ProxiedDomain.cs @@ -77,7 +77,7 @@ public static ProxiedDomain CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ipAddressOrFQDN", n => { IpAddressOrFQDN = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("ipAddressOrFQDN", IpAddressOrFQDN); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/PublicClientApplication.cs b/src/Microsoft.Graph/Generated/Models/PublicClientApplication.cs index 69ad4b0e91b..4107442aad7 100644 --- a/src/Microsoft.Graph/Generated/Models/PublicClientApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/PublicClientApplication.cs @@ -60,7 +60,7 @@ public static PublicClientApplication CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfPrimitiveValues("redirectUris", RedirectUris); diff --git a/src/Microsoft.Graph/Generated/Models/PublicError.cs b/src/Microsoft.Graph/Generated/Models/PublicError.cs index d91bb10fc91..000475718a4 100644 --- a/src/Microsoft.Graph/Generated/Models/PublicError.cs +++ b/src/Microsoft.Graph/Generated/Models/PublicError.cs @@ -116,7 +116,7 @@ public static PublicError CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"details", n => { Details = n.GetCollectionOfObjectValues(PublicErrorDetail.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteCollectionOfObjectValues("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/PublicErrorDetail.cs b/src/Microsoft.Graph/Generated/Models/PublicErrorDetail.cs index 938ef642fb3..a1fe52456a7 100644 --- a/src/Microsoft.Graph/Generated/Models/PublicErrorDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/PublicErrorDetail.cs @@ -88,7 +88,7 @@ public static PublicErrorDetail CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/PublicInnerError.cs b/src/Microsoft.Graph/Generated/Models/PublicInnerError.cs index 54a4bc2d307..e117a0bca2e 100644 --- a/src/Microsoft.Graph/Generated/Models/PublicInnerError.cs +++ b/src/Microsoft.Graph/Generated/Models/PublicInnerError.cs @@ -102,7 +102,7 @@ public static PublicInnerError CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"details", n => { Details = n.GetCollectionOfObjectValues(PublicErrorDetail.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteCollectionOfObjectValues("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs b/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs index 5b189ef6120..3d59fc81258 100644 --- a/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs +++ b/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs @@ -88,7 +88,7 @@ public static PublicationFacet CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"checkedOutBy", n => { CheckedOutBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"level", n => { Level = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("checkedOutBy", CheckedOutBy); writer.WriteStringValue("level", Level); diff --git a/src/Microsoft.Graph/Generated/Models/Quota.cs b/src/Microsoft.Graph/Generated/Models/Quota.cs index fb72e89a4b3..d8daa4d52ab 100644 --- a/src/Microsoft.Graph/Generated/Models/Quota.cs +++ b/src/Microsoft.Graph/Generated/Models/Quota.cs @@ -94,7 +94,7 @@ public static Quota CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deleted", n => { Deleted = n.GetLongValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -109,7 +109,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("deleted", Deleted); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RbacApplication.cs b/src/Microsoft.Graph/Generated/Models/RbacApplication.cs index 4b5c3f965d7..6aa8e8c6643 100644 --- a/src/Microsoft.Graph/Generated/Models/RbacApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/RbacApplication.cs @@ -143,7 +143,7 @@ public List RoleEligibilitySchedules { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"resourceNamespaces", n => { ResourceNamespaces = n.GetCollectionOfObjectValues(UnifiedRbacResourceNamespace.CreateFromDiscriminatorValue)?.ToList(); } }, {"roleAssignmentScheduleInstances", n => { RoleAssignmentScheduleInstances = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -160,7 +160,7 @@ public List RoleEligibilitySchedules { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("resourceNamespaces", ResourceNamespaces); diff --git a/src/Microsoft.Graph/Generated/Models/RecentNotebook.cs b/src/Microsoft.Graph/Generated/Models/RecentNotebook.cs index c675a0f6532..c174e96daba 100644 --- a/src/Microsoft.Graph/Generated/Models/RecentNotebook.cs +++ b/src/Microsoft.Graph/Generated/Models/RecentNotebook.cs @@ -84,7 +84,7 @@ public static RecentNotebook CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastAccessedTime", n => { LastAccessedTime = n.GetDateTimeOffsetValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteDateTimeOffsetValue("lastAccessedTime", LastAccessedTime); diff --git a/src/Microsoft.Graph/Generated/Models/RecentNotebookLinks.cs b/src/Microsoft.Graph/Generated/Models/RecentNotebookLinks.cs index c9605edb75d..9d34ffb3fbd 100644 --- a/src/Microsoft.Graph/Generated/Models/RecentNotebookLinks.cs +++ b/src/Microsoft.Graph/Generated/Models/RecentNotebookLinks.cs @@ -74,7 +74,7 @@ public static RecentNotebookLinks CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"oneNoteClientUrl", n => { OneNoteClientUrl = n.GetObjectValue(ExternalLink.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("oneNoteClientUrl", OneNoteClientUrl); diff --git a/src/Microsoft.Graph/Generated/Models/Recipient.cs b/src/Microsoft.Graph/Generated/Models/Recipient.cs index 58d8802d785..da60ab2569a 100644 --- a/src/Microsoft.Graph/Generated/Models/Recipient.cs +++ b/src/Microsoft.Graph/Generated/Models/Recipient.cs @@ -65,7 +65,7 @@ public static Recipient CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"emailAddress", n => { EmailAddress = n.GetObjectValue(Microsoft.Graph.Models.EmailAddress.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -75,7 +75,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("emailAddress", EmailAddress); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RecommendedAction.cs b/src/Microsoft.Graph/Generated/Models/RecommendedAction.cs index fb449d0a8bd..06f9d6eec41 100644 --- a/src/Microsoft.Graph/Generated/Models/RecommendedAction.cs +++ b/src/Microsoft.Graph/Generated/Models/RecommendedAction.cs @@ -79,7 +79,7 @@ public static RecommendedAction CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"actionWebUrl", n => { ActionWebUrl = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("actionWebUrl", ActionWebUrl); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RecordOperation.cs b/src/Microsoft.Graph/Generated/Models/RecordOperation.cs index e3301d941c3..69598dad5a5 100644 --- a/src/Microsoft.Graph/Generated/Models/RecordOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/RecordOperation.cs @@ -45,7 +45,7 @@ public string RecordingLocation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"recordingAccessToken", n => { RecordingAccessToken = n.GetStringValue(); } }, {"recordingLocation", n => { RecordingLocation = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string RecordingLocation { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("recordingAccessToken", RecordingAccessToken); diff --git a/src/Microsoft.Graph/Generated/Models/RecordingInfo.cs b/src/Microsoft.Graph/Generated/Models/RecordingInfo.cs index 82ad2d290ff..64b0ccefb31 100644 --- a/src/Microsoft.Graph/Generated/Models/RecordingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/RecordingInfo.cs @@ -65,7 +65,7 @@ public static RecordingInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("initiator", Initiator); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RecurrencePattern.cs b/src/Microsoft.Graph/Generated/Models/RecurrencePattern.cs index d16dc812a6b..39437a7238f 100644 --- a/src/Microsoft.Graph/Generated/Models/RecurrencePattern.cs +++ b/src/Microsoft.Graph/Generated/Models/RecurrencePattern.cs @@ -90,7 +90,7 @@ public static RecurrencePattern CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dayOfMonth", n => { DayOfMonth = n.GetIntValue(); } }, {"daysOfWeek", n => { DaysOfWeek = n.GetCollectionOfEnumValues()?.ToList(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("dayOfMonth", DayOfMonth); writer.WriteCollectionOfEnumValues("daysOfWeek", DaysOfWeek); diff --git a/src/Microsoft.Graph/Generated/Models/RecurrenceRange.cs b/src/Microsoft.Graph/Generated/Models/RecurrenceRange.cs index 1ed15a038b2..adb1723b299 100644 --- a/src/Microsoft.Graph/Generated/Models/RecurrenceRange.cs +++ b/src/Microsoft.Graph/Generated/Models/RecurrenceRange.cs @@ -81,7 +81,7 @@ public static RecurrenceRange CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDate", n => { EndDate = n.GetDateValue(); } }, {"numberOfOccurrences", n => { NumberOfOccurrences = n.GetIntValue(); } }, @@ -95,7 +95,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateValue("endDate", EndDate); writer.WriteIntValue("numberOfOccurrences", NumberOfOccurrences); diff --git a/src/Microsoft.Graph/Generated/Models/RedirectUriSettings.cs b/src/Microsoft.Graph/Generated/Models/RedirectUriSettings.cs index a24572ffcf3..021ead6957d 100644 --- a/src/Microsoft.Graph/Generated/Models/RedirectUriSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/RedirectUriSettings.cs @@ -65,7 +65,7 @@ public static RedirectUriSettings CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"index", n => { Index = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ReferenceAttachment.cs b/src/Microsoft.Graph/Generated/Models/ReferenceAttachment.cs index 8de9d989ef9..642350a17b0 100644 --- a/src/Microsoft.Graph/Generated/Models/ReferenceAttachment.cs +++ b/src/Microsoft.Graph/Generated/Models/ReferenceAttachment.cs @@ -23,7 +23,7 @@ public ReferenceAttachment() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ReferenceAttachment() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ReferenceCreate.cs b/src/Microsoft.Graph/Generated/Models/ReferenceCreate.cs index 1cb643fa81f..35ba3eabece 100644 --- a/src/Microsoft.Graph/Generated/Models/ReferenceCreate.cs +++ b/src/Microsoft.Graph/Generated/Models/ReferenceCreate.cs @@ -46,7 +46,7 @@ public static ReferenceCreate CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.id", n => { OdataId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.id", OdataId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ReferenceUpdate.cs b/src/Microsoft.Graph/Generated/Models/ReferenceUpdate.cs index f2a12ab3646..1ba8a7be7f4 100644 --- a/src/Microsoft.Graph/Generated/Models/ReferenceUpdate.cs +++ b/src/Microsoft.Graph/Generated/Models/ReferenceUpdate.cs @@ -60,7 +60,7 @@ public static ReferenceUpdate CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.id", n => { OdataId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.id", OdataId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ReferencedObject.cs b/src/Microsoft.Graph/Generated/Models/ReferencedObject.cs index e972cdde600..a9dfd7b35c5 100644 --- a/src/Microsoft.Graph/Generated/Models/ReferencedObject.cs +++ b/src/Microsoft.Graph/Generated/Models/ReferencedObject.cs @@ -74,7 +74,7 @@ public static ReferencedObject CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"referencedObjectName", n => { ReferencedObjectName = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("referencedObjectName", ReferencedObjectName); diff --git a/src/Microsoft.Graph/Generated/Models/RegistrationEnforcement.cs b/src/Microsoft.Graph/Generated/Models/RegistrationEnforcement.cs index 10398ea13ca..66509524882 100644 --- a/src/Microsoft.Graph/Generated/Models/RegistrationEnforcement.cs +++ b/src/Microsoft.Graph/Generated/Models/RegistrationEnforcement.cs @@ -60,7 +60,7 @@ public static RegistrationEnforcement CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authenticationMethodsRegistrationCampaign", n => { AuthenticationMethodsRegistrationCampaign = n.GetObjectValue(Microsoft.Graph.Models.AuthenticationMethodsRegistrationCampaign.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("authenticationMethodsRegistrationCampaign", AuthenticationMethodsRegistrationCampaign); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RegistryKeyState.cs b/src/Microsoft.Graph/Generated/Models/RegistryKeyState.cs index 07f6842dc09..a70c4254b7c 100644 --- a/src/Microsoft.Graph/Generated/Models/RegistryKeyState.cs +++ b/src/Microsoft.Graph/Generated/Models/RegistryKeyState.cs @@ -150,7 +150,7 @@ public static RegistryKeyState CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hive", n => { Hive = n.GetEnumValue(); } }, {"key", n => { Key = n.GetStringValue(); } }, @@ -169,7 +169,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("hive", Hive); writer.WriteStringValue("key", Key); diff --git a/src/Microsoft.Graph/Generated/Models/RelatedContact.cs b/src/Microsoft.Graph/Generated/Models/RelatedContact.cs index fcc72510d13..7d819edf675 100644 --- a/src/Microsoft.Graph/Generated/Models/RelatedContact.cs +++ b/src/Microsoft.Graph/Generated/Models/RelatedContact.cs @@ -98,7 +98,7 @@ public static RelatedContact CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accessConsent", n => { AccessConsent = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("accessConsent", AccessConsent); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Reminder.cs b/src/Microsoft.Graph/Generated/Models/Reminder.cs index 232f8786ef1..b1e0596bbfa 100644 --- a/src/Microsoft.Graph/Generated/Models/Reminder.cs +++ b/src/Microsoft.Graph/Generated/Models/Reminder.cs @@ -158,7 +158,7 @@ public static Reminder CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"changeKey", n => { ChangeKey = n.GetStringValue(); } }, {"eventEndTime", n => { EventEndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -175,7 +175,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("changeKey", ChangeKey); writer.WriteObjectValue("eventEndTime", EventEndTime); diff --git a/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs b/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs index d41a6981a63..1d4704fe2b0 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartner.cs @@ -58,7 +58,7 @@ public string OnboardingUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastConnectionDateTime", n => { LastConnectionDateTime = n.GetDateTimeOffsetValue(); } }, @@ -70,7 +70,7 @@ public string OnboardingUrl { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartnerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartnerCollectionResponse.cs index fa9ac52f1e0..efada4ab43e 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartnerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoteAssistancePartnerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RemoteAssistancePartner.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RemoteDesktopSecurityConfiguration.cs b/src/Microsoft.Graph/Generated/Models/RemoteDesktopSecurityConfiguration.cs new file mode 100644 index 00000000000..f88c7596819 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/RemoteDesktopSecurityConfiguration.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class RemoteDesktopSecurityConfiguration : Entity, IParsable { + /// The isRemoteDesktopProtocolEnabled property + public bool? IsRemoteDesktopProtocolEnabled { + get { return BackingStore?.Get("isRemoteDesktopProtocolEnabled"); } + set { BackingStore?.Set("isRemoteDesktopProtocolEnabled", value); } + } + /// The targetDeviceGroups property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? TargetDeviceGroups { + get { return BackingStore?.Get?>("targetDeviceGroups"); } + set { BackingStore?.Set("targetDeviceGroups", value); } + } +#nullable restore +#else + public List TargetDeviceGroups { + get { return BackingStore?.Get>("targetDeviceGroups"); } + set { BackingStore?.Set("targetDeviceGroups", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RemoteDesktopSecurityConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RemoteDesktopSecurityConfiguration(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"isRemoteDesktopProtocolEnabled", n => { IsRemoteDesktopProtocolEnabled = n.GetBoolValue(); } }, + {"targetDeviceGroups", n => { TargetDeviceGroups = n.GetCollectionOfObjectValues(TargetDeviceGroup.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteBoolValue("isRemoteDesktopProtocolEnabled", IsRemoteDesktopProtocolEnabled); + writer.WriteCollectionOfObjectValues("targetDeviceGroups", TargetDeviceGroups); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/RemoteItem.cs b/src/Microsoft.Graph/Generated/Models/RemoteItem.cs index 3387c9bb997..df8770eba83 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoteItem.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoteItem.cs @@ -285,7 +285,7 @@ public static RemoteItem CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -313,7 +313,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("createdBy", CreatedBy); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/RemoteLockActionResult.cs b/src/Microsoft.Graph/Generated/Models/RemoteLockActionResult.cs index d51d6044926..2cd2e02d4f2 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoteLockActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoteLockActionResult.cs @@ -34,7 +34,7 @@ public string UnlockPin { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"unlockPin", n => { UnlockPin = n.GetStringValue(); } }, }; @@ -43,7 +43,7 @@ public string UnlockPin { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("unlockPin", UnlockPin); diff --git a/src/Microsoft.Graph/Generated/Models/RemoveAccessApplyAction.cs b/src/Microsoft.Graph/Generated/Models/RemoveAccessApplyAction.cs index d06e49019b0..ab0e1e4af9c 100644 --- a/src/Microsoft.Graph/Generated/Models/RemoveAccessApplyAction.cs +++ b/src/Microsoft.Graph/Generated/Models/RemoveAccessApplyAction.cs @@ -23,7 +23,7 @@ public RemoveAccessApplyAction() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public RemoveAccessApplyAction() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Report.cs b/src/Microsoft.Graph/Generated/Models/Report.cs index 058c8e45e33..074c1757487 100644 --- a/src/Microsoft.Graph/Generated/Models/Report.cs +++ b/src/Microsoft.Graph/Generated/Models/Report.cs @@ -63,7 +63,7 @@ public static Report CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetByteArrayValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("content", Content); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ReportRoot.cs b/src/Microsoft.Graph/Generated/Models/ReportRoot.cs index 39c7ef1051b..0f99bc50b07 100644 --- a/src/Microsoft.Graph/Generated/Models/ReportRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/ReportRoot.cs @@ -12,7 +12,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("AdditionalData"); } set { BackingStore?.Set("AdditionalData", value); } } - /// Container for navigation properties for Azure AD authentication methods resources. + /// Container for navigation properties for Microsoft Entra authentication methods resources. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public AuthenticationMethodsRoot? AuthenticationMethods { @@ -130,7 +130,7 @@ public static ReportRoot CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authenticationMethods", n => { AuthenticationMethods = n.GetObjectValue(AuthenticationMethodsRoot.CreateFromDiscriminatorValue); } }, {"dailyPrintUsageByPrinter", n => { DailyPrintUsageByPrinter = n.GetCollectionOfObjectValues(PrintUsageByPrinter.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("authenticationMethods", AuthenticationMethods); writer.WriteCollectionOfObjectValues("dailyPrintUsageByPrinter", DailyPrintUsageByPrinter); diff --git a/src/Microsoft.Graph/Generated/Models/Request.cs b/src/Microsoft.Graph/Generated/Models/Request.cs index c2e6b23940e..5c905111517 100644 --- a/src/Microsoft.Graph/Generated/Models/Request.cs +++ b/src/Microsoft.Graph/Generated/Models/Request.cs @@ -92,7 +92,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"approvalId", n => { ApprovalId = n.GetStringValue(); } }, {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -106,7 +106,7 @@ public string Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("approvalId", ApprovalId); diff --git a/src/Microsoft.Graph/Generated/Models/RequestSchedule.cs b/src/Microsoft.Graph/Generated/Models/RequestSchedule.cs index faaafb96670..889ab0a8492 100644 --- a/src/Microsoft.Graph/Generated/Models/RequestSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/RequestSchedule.cs @@ -79,7 +79,7 @@ public static RequestSchedule CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expiration", n => { Expiration = n.GetObjectValue(ExpirationPattern.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("expiration", Expiration); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RequestSignatureVerification.cs b/src/Microsoft.Graph/Generated/Models/RequestSignatureVerification.cs index 40e84f03821..c082ee2d4d9 100644 --- a/src/Microsoft.Graph/Generated/Models/RequestSignatureVerification.cs +++ b/src/Microsoft.Graph/Generated/Models/RequestSignatureVerification.cs @@ -56,7 +56,7 @@ public static RequestSignatureVerification CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedWeakAlgorithms", n => { AllowedWeakAlgorithms = n.GetEnumValue(); } }, {"isSignedRequestRequired", n => { IsSignedRequestRequired = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("allowedWeakAlgorithms", AllowedWeakAlgorithms); writer.WriteBoolValue("isSignedRequestRequired", IsSignedRequestRequired); diff --git a/src/Microsoft.Graph/Generated/Models/RequestorManager.cs b/src/Microsoft.Graph/Generated/Models/RequestorManager.cs index 1af32df6654..fae408df22f 100644 --- a/src/Microsoft.Graph/Generated/Models/RequestorManager.cs +++ b/src/Microsoft.Graph/Generated/Models/RequestorManager.cs @@ -28,7 +28,7 @@ public RequestorManager() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"managerLevel", n => { ManagerLevel = n.GetIntValue(); } }, }; @@ -37,7 +37,7 @@ public RequestorManager() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("managerLevel", ManagerLevel); diff --git a/src/Microsoft.Graph/Generated/Models/RequiredResourceAccess.cs b/src/Microsoft.Graph/Generated/Models/RequiredResourceAccess.cs index 1d0d841af16..189b7b6463a 100644 --- a/src/Microsoft.Graph/Generated/Models/RequiredResourceAccess.cs +++ b/src/Microsoft.Graph/Generated/Models/RequiredResourceAccess.cs @@ -74,7 +74,7 @@ public static RequiredResourceAccess CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resourceAccess", n => { ResourceAccess = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.ResourceAccess.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("resourceAccess", ResourceAccess); diff --git a/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs b/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs index 447575c0e11..33153e926dd 100644 --- a/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/ResellerDelegatedAdminRelationship.cs @@ -36,7 +36,7 @@ public bool? IsPartnerConsentPending { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"indirectProviderTenantId", n => { IndirectProviderTenantId = n.GetStringValue(); } }, {"isPartnerConsentPending", n => { IsPartnerConsentPending = n.GetBoolValue(); } }, @@ -46,7 +46,7 @@ public bool? IsPartnerConsentPending { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("indirectProviderTenantId", IndirectProviderTenantId); diff --git a/src/Microsoft.Graph/Generated/Models/ResetPasscodeActionResult.cs b/src/Microsoft.Graph/Generated/Models/ResetPasscodeActionResult.cs index 42794cdd77d..fbb17d1e55b 100644 --- a/src/Microsoft.Graph/Generated/Models/ResetPasscodeActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ResetPasscodeActionResult.cs @@ -34,7 +34,7 @@ public string Passcode { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"passcode", n => { Passcode = n.GetStringValue(); } }, }; @@ -43,7 +43,7 @@ public string Passcode { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("passcode", Passcode); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceAccess.cs b/src/Microsoft.Graph/Generated/Models/ResourceAccess.cs index 22ef271ceef..0828607f164 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceAccess.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceAccess.cs @@ -65,7 +65,7 @@ public static ResourceAccess CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetGuidValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceAction.cs b/src/Microsoft.Graph/Generated/Models/ResourceAction.cs index 9d32e11b865..c7f1ea5ca1b 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceAction.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceAction.cs @@ -77,7 +77,7 @@ public static ResourceAction CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedResourceActions", n => { AllowedResourceActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"notAllowedResourceActions", n => { NotAllowedResourceActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("allowedResourceActions", AllowedResourceActions); writer.WriteCollectionOfPrimitiveValues("notAllowedResourceActions", NotAllowedResourceActions); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceOperation.cs b/src/Microsoft.Graph/Generated/Models/ResourceOperation.cs index 10dea075514..45a85b65ea0 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceOperation.cs @@ -62,7 +62,7 @@ public string ResourceName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actionName", n => { ActionName = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -73,7 +73,7 @@ public string ResourceName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("actionName", ActionName); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ResourceOperationCollectionResponse.cs index 8552c4ec4ec..1f1f8663d84 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ResourceOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceReference.cs b/src/Microsoft.Graph/Generated/Models/ResourceReference.cs index b1ed19b3957..2dfedce5148 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceReference.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceReference.cs @@ -88,7 +88,7 @@ public static ResourceReference CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermission.cs b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermission.cs index 6c1eadbfc2b..dc35e52e357 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermission.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermission.cs @@ -98,7 +98,7 @@ public static ResourceSpecificPermission CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs index 2ed888e4a02..5407809f8aa 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrant.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class ResourceSpecificPermissionGrant : DirectoryObject, IParsable { - /// ID of the service principal of the Azure AD app that has been granted access. Read-only. + /// ID of the service principal of the Microsoft Entra app that has been granted access. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ClientAppId { @@ -20,7 +20,7 @@ public string ClientAppId { set { BackingStore?.Set("clientAppId", value); } } #endif - /// ID of the Azure AD app that has been granted access. Read-only. + /// ID of the Microsoft Entra app that has been granted access. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ClientId { @@ -62,7 +62,7 @@ public string PermissionType { set { BackingStore?.Set("permissionType", value); } } #endif - /// ID of the Azure AD app that is hosting the resource. Read-only. + /// ID of the Microsoft Entra app that is hosting the resource. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ResourceAppId { @@ -93,7 +93,7 @@ public ResourceSpecificPermissionGrant() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clientAppId", n => { ClientAppId = n.GetStringValue(); } }, {"clientId", n => { ClientId = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public ResourceSpecificPermissionGrant() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("clientAppId", ClientAppId); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrantCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrantCollectionResponse.cs index d26740963ca..0a3efca4ae7 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrantCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceSpecificPermissionGrantCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs b/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs index 3674e312101..6043089e69d 100644 --- a/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs +++ b/src/Microsoft.Graph/Generated/Models/ResourceVisualization.cs @@ -158,7 +158,7 @@ public static ResourceVisualization CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"containerDisplayName", n => { ContainerDisplayName = n.GetStringValue(); } }, {"containerType", n => { ContainerType = n.GetStringValue(); } }, @@ -175,7 +175,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("containerDisplayName", ContainerDisplayName); writer.WriteStringValue("containerType", ContainerType); diff --git a/src/Microsoft.Graph/Generated/Models/ResponseStatus.cs b/src/Microsoft.Graph/Generated/Models/ResponseStatus.cs index 701c5a26040..ad3ea90dc8f 100644 --- a/src/Microsoft.Graph/Generated/Models/ResponseStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/ResponseStatus.cs @@ -56,7 +56,7 @@ public static ResponseStatus CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"response", n => { Response = n.GetEnumValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("response", Response); diff --git a/src/Microsoft.Graph/Generated/Models/ResultInfo.cs b/src/Microsoft.Graph/Generated/Models/ResultInfo.cs index 37583eec5d3..d5ce7c7ceeb 100644 --- a/src/Microsoft.Graph/Generated/Models/ResultInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ResultInfo.cs @@ -70,7 +70,7 @@ public static ResultInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetIntValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/ResultTemplateDictionary.cs b/src/Microsoft.Graph/Generated/Models/ResultTemplateDictionary.cs index 608c353838b..393c0799635 100644 --- a/src/Microsoft.Graph/Generated/Models/ResultTemplateDictionary.cs +++ b/src/Microsoft.Graph/Generated/Models/ResultTemplateDictionary.cs @@ -17,7 +17,7 @@ public class ResultTemplateDictionary : Dictionary, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class ResultTemplateDictionary : Dictionary, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/ResultTemplateOption.cs b/src/Microsoft.Graph/Generated/Models/ResultTemplateOption.cs index fab979fa974..68a59717e6e 100644 --- a/src/Microsoft.Graph/Generated/Models/ResultTemplateOption.cs +++ b/src/Microsoft.Graph/Generated/Models/ResultTemplateOption.cs @@ -51,7 +51,7 @@ public static ResultTemplateOption CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"enableResultTemplate", n => { EnableResultTemplate = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("enableResultTemplate", EnableResultTemplate); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RgbColor.cs b/src/Microsoft.Graph/Generated/Models/RgbColor.cs index 21ec75d088c..333f31f37ff 100644 --- a/src/Microsoft.Graph/Generated/Models/RgbColor.cs +++ b/src/Microsoft.Graph/Generated/Models/RgbColor.cs @@ -64,7 +64,7 @@ public static RgbColor CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"b", n => { B = n.GetByteValue(); } }, {"g", n => { G = n.GetByteValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteValue("b", B); writer.WriteByteValue("g", G); diff --git a/src/Microsoft.Graph/Generated/Models/RichLongRunningOperation.cs b/src/Microsoft.Graph/Generated/Models/RichLongRunningOperation.cs index 08459880e34..50c5d9b5f53 100644 --- a/src/Microsoft.Graph/Generated/Models/RichLongRunningOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/RichLongRunningOperation.cs @@ -64,7 +64,7 @@ public string Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"error", n => { Error = n.GetObjectValue(PublicError.CreateFromDiscriminatorValue); } }, {"percentageComplete", n => { PercentageComplete = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public string Type { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/RichLongRunningOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RichLongRunningOperationCollectionResponse.cs index 94172dad457..22638b90b2c 100644 --- a/src/Microsoft.Graph/Generated/Models/RichLongRunningOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RichLongRunningOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RichLongRunningOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RiskDetection.cs b/src/Microsoft.Graph/Generated/Models/RiskDetection.cs index 485362f1010..b5a576d9f00 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskDetection.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskDetection.cs @@ -202,7 +202,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetEnumValue(); } }, {"activityDateTime", n => { ActivityDateTime = n.GetDateTimeOffsetValue(); } }, @@ -229,7 +229,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("activity", Activity); diff --git a/src/Microsoft.Graph/Generated/Models/RiskDetectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RiskDetectionCollectionResponse.cs index e9396e71d5e..5d5ae007e99 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskDetectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskDetectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RiskDetection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RiskServicePrincipalActivity.cs b/src/Microsoft.Graph/Generated/Models/RiskServicePrincipalActivity.cs index a2e1b70718c..b74e3ff284b 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskServicePrincipalActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskServicePrincipalActivity.cs @@ -65,7 +65,7 @@ public static RiskServicePrincipalActivity CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"detail", n => { Detail = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("detail", Detail); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RiskUserActivity.cs b/src/Microsoft.Graph/Generated/Models/RiskUserActivity.cs index af44f1d951d..23af0e3f3b7 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskUserActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskUserActivity.cs @@ -65,7 +65,7 @@ public static RiskUserActivity CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"detail", n => { Detail = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("detail", Detail); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipal.cs index fa26cdd0cf6..037c1aa2c69 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipal.cs @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Represents the risk history of Azure AD service principals. + /// Represents the risk history of Microsoft Entra service principals. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? History { @@ -53,7 +53,7 @@ public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } } - /// Indicates whether Azure AD is currently processing the service principal's risky state. + /// Indicates whether Microsoft Entra ID is currently processing the service principal's risky state. public bool? IsProcessing { get { return BackingStore?.Get("isProcessing"); } set { BackingStore?.Set("isProcessing", value); } @@ -78,7 +78,7 @@ public Microsoft.Graph.Models.RiskState? RiskState { get { return BackingStore?.Get("riskState"); } set { BackingStore?.Set("riskState", value); } } - /// Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Azure AD internally and is inherited from servicePrincipal. + /// Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ServicePrincipalType { @@ -107,7 +107,7 @@ public string ServicePrincipalType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appId", n => { AppId = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -125,7 +125,7 @@ public string ServicePrincipalType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appId", AppId); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalCollectionResponse.cs index 2d64a524e6c..c9722e5eb25 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RiskyServicePrincipal.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItem.cs index 9217cbac605..1d42a13bc18 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItem.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItem.cs @@ -45,7 +45,7 @@ public string InitiatedBy { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetObjectValue(RiskServicePrincipalActivity.CreateFromDiscriminatorValue); } }, {"initiatedBy", n => { InitiatedBy = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string InitiatedBy { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("activity", Activity); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItemCollectionResponse.cs index bd7c8067cdf..9cf82dbd686 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyServicePrincipalHistoryItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RiskyServicePrincipalHistoryItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyUser.cs b/src/Microsoft.Graph/Generated/Models/RiskyUser.cs index 95a45b7ea01..16ea5b1fe27 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyUser.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyUser.cs @@ -93,7 +93,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"history", n => { History = n.GetCollectionOfObjectValues(RiskyUserHistoryItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"isDeleted", n => { IsDeleted = n.GetBoolValue(); } }, @@ -110,7 +110,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("history", History); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyUserCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RiskyUserCollectionResponse.cs index c64e14ddf6e..f8c70a36c45 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyUserCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyUserCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RiskyUser.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs index f4219e4e5e0..11de3f3fe81 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItem.cs @@ -59,7 +59,7 @@ public string UserId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetObjectValue(RiskUserActivity.CreateFromDiscriminatorValue); } }, {"initiatedBy", n => { InitiatedBy = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public string UserId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("activity", Activity); diff --git a/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItemCollectionResponse.cs index 562bd1953ab..2cae3d5e9eb 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskyUserHistoryItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RiskyUserHistoryItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/RoleAssignment.cs index b47751bb7c7..512546e51f1 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleAssignment.cs @@ -80,7 +80,7 @@ public Microsoft.Graph.Models.RoleDefinition RoleDefinition { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -92,7 +92,7 @@ public Microsoft.Graph.Models.RoleDefinition RoleDefinition { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/RoleAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RoleAssignmentCollectionResponse.cs index c5ce8e5070f..b9529c22f0c 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs b/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs index 79262f36ae1..915ade96820 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs @@ -85,7 +85,7 @@ public List RolePermissions { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -98,7 +98,7 @@ public List RolePermissions { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/RoleDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RoleDefinitionCollectionResponse.cs index 93b89c5b889..7db87a13ef7 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RoleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RoleManagement.cs b/src/Microsoft.Graph/Generated/Models/RoleManagement.cs index 25d08f07500..68a9f1accb7 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleManagement.cs @@ -74,7 +74,7 @@ public static RoleManagement CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"directory", n => { Directory = n.GetObjectValue(RbacApplication.CreateFromDiscriminatorValue); } }, {"entitlementManagement", n => { EntitlementManagement = n.GetObjectValue(RbacApplication.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("directory", Directory); writer.WriteObjectValue("entitlementManagement", EntitlementManagement); diff --git a/src/Microsoft.Graph/Generated/Models/RolePermission.cs b/src/Microsoft.Graph/Generated/Models/RolePermission.cs index ea5eca586c1..d113c7b551e 100644 --- a/src/Microsoft.Graph/Generated/Models/RolePermission.cs +++ b/src/Microsoft.Graph/Generated/Models/RolePermission.cs @@ -63,7 +63,7 @@ public static RolePermission CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resourceActions", n => { ResourceActions = n.GetCollectionOfObjectValues(ResourceAction.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("resourceActions", ResourceActions); diff --git a/src/Microsoft.Graph/Generated/Models/Room.cs b/src/Microsoft.Graph/Generated/Models/Room.cs index 84f6fce5737..1653fd77f66 100644 --- a/src/Microsoft.Graph/Generated/Models/Room.cs +++ b/src/Microsoft.Graph/Generated/Models/Room.cs @@ -169,7 +169,7 @@ public Room() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"audioDeviceName", n => { AudioDeviceName = n.GetStringValue(); } }, {"bookingType", n => { BookingType = n.GetEnumValue(); } }, @@ -190,7 +190,7 @@ public Room() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("audioDeviceName", AudioDeviceName); diff --git a/src/Microsoft.Graph/Generated/Models/RoomCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RoomCollectionResponse.cs index ff16c2fc3ad..f6a6412b813 100644 --- a/src/Microsoft.Graph/Generated/Models/RoomCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RoomCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Room.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/RoomList.cs b/src/Microsoft.Graph/Generated/Models/RoomList.cs index 071192f8ca7..5b33ca9d77c 100644 --- a/src/Microsoft.Graph/Generated/Models/RoomList.cs +++ b/src/Microsoft.Graph/Generated/Models/RoomList.cs @@ -51,7 +51,7 @@ public RoomList() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, {"rooms", n => { Rooms = n.GetCollectionOfObjectValues(Room.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -61,7 +61,7 @@ public RoomList() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("emailAddress", EmailAddress); diff --git a/src/Microsoft.Graph/Generated/Models/RoomListCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/RoomListCollectionResponse.cs index 5d5d7d0f520..c23902762bf 100644 --- a/src/Microsoft.Graph/Generated/Models/RoomListCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/RoomListCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RoomList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Root.cs b/src/Microsoft.Graph/Generated/Models/Root.cs index 648ad8c4274..bc800b67752 100644 --- a/src/Microsoft.Graph/Generated/Models/Root.cs +++ b/src/Microsoft.Graph/Generated/Models/Root.cs @@ -46,7 +46,7 @@ public static Root CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/RotateBitLockerKeysDeviceActionResult.cs b/src/Microsoft.Graph/Generated/Models/RotateBitLockerKeysDeviceActionResult.cs index e314056c13e..47143889eb1 100644 --- a/src/Microsoft.Graph/Generated/Models/RotateBitLockerKeysDeviceActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/RotateBitLockerKeysDeviceActionResult.cs @@ -25,7 +25,7 @@ public int? ErrorCode { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"errorCode", n => { ErrorCode = n.GetIntValue(); } }, }; @@ -34,7 +34,7 @@ public int? ErrorCode { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("errorCode", ErrorCode); diff --git a/src/Microsoft.Graph/Generated/Models/RubricCriterion.cs b/src/Microsoft.Graph/Generated/Models/RubricCriterion.cs index deb1e8e7b8d..382c558345e 100644 --- a/src/Microsoft.Graph/Generated/Models/RubricCriterion.cs +++ b/src/Microsoft.Graph/Generated/Models/RubricCriterion.cs @@ -60,7 +60,7 @@ public static RubricCriterion CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetObjectValue(EducationItemBody.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("description", Description); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RubricLevel.cs b/src/Microsoft.Graph/Generated/Models/RubricLevel.cs index 56ff1cc3c25..b4058418bc2 100644 --- a/src/Microsoft.Graph/Generated/Models/RubricLevel.cs +++ b/src/Microsoft.Graph/Generated/Models/RubricLevel.cs @@ -102,7 +102,7 @@ public static RubricLevel CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetObjectValue(EducationItemBody.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("description", Description); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/RubricQuality.cs b/src/Microsoft.Graph/Generated/Models/RubricQuality.cs index 0bf1251cc30..8e3c43cb066 100644 --- a/src/Microsoft.Graph/Generated/Models/RubricQuality.cs +++ b/src/Microsoft.Graph/Generated/Models/RubricQuality.cs @@ -107,7 +107,7 @@ public static RubricQuality CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetCollectionOfObjectValues(RubricCriterion.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetObjectValue(EducationItemBody.CreateFromDiscriminatorValue); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("criteria", Criteria); writer.WriteObjectValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/RubricQualityFeedbackModel.cs b/src/Microsoft.Graph/Generated/Models/RubricQualityFeedbackModel.cs index c1b1f5ac9f2..14457ae02fe 100644 --- a/src/Microsoft.Graph/Generated/Models/RubricQualityFeedbackModel.cs +++ b/src/Microsoft.Graph/Generated/Models/RubricQualityFeedbackModel.cs @@ -74,7 +74,7 @@ public static RubricQualityFeedbackModel CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"feedback", n => { Feedback = n.GetObjectValue(EducationItemBody.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("feedback", Feedback); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/RubricQualitySelectedColumnModel.cs b/src/Microsoft.Graph/Generated/Models/RubricQualitySelectedColumnModel.cs index 5f8e41ebd04..b957252d7e7 100644 --- a/src/Microsoft.Graph/Generated/Models/RubricQualitySelectedColumnModel.cs +++ b/src/Microsoft.Graph/Generated/Models/RubricQualitySelectedColumnModel.cs @@ -74,7 +74,7 @@ public static RubricQualitySelectedColumnModel CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"columnId", n => { ColumnId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("columnId", ColumnId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SamlOrWsFedExternalDomainFederation.cs b/src/Microsoft.Graph/Generated/Models/SamlOrWsFedExternalDomainFederation.cs index ada45704811..37377ebc351 100644 --- a/src/Microsoft.Graph/Generated/Models/SamlOrWsFedExternalDomainFederation.cs +++ b/src/Microsoft.Graph/Generated/Models/SamlOrWsFedExternalDomainFederation.cs @@ -37,7 +37,7 @@ public SamlOrWsFedExternalDomainFederation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"domains", n => { Domains = n.GetCollectionOfObjectValues(ExternalDomainName.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public SamlOrWsFedExternalDomainFederation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("domains", Domains); diff --git a/src/Microsoft.Graph/Generated/Models/SamlOrWsFedProvider.cs b/src/Microsoft.Graph/Generated/Models/SamlOrWsFedProvider.cs index a9233119ade..281b05bbf67 100644 --- a/src/Microsoft.Graph/Generated/Models/SamlOrWsFedProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/SamlOrWsFedProvider.cs @@ -34,7 +34,7 @@ public string MetadataExchangeUri { set { BackingStore?.Set("metadataExchangeUri", value); } } #endif - /// URI that web-based clients are directed to when signing in to Azure Active Directory (Azure AD) services. + /// URI that web-based clients are directed to when signing in to Microsoft Entra services. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PassiveSignInUri { @@ -53,7 +53,7 @@ public AuthenticationProtocol? PreferredAuthenticationProtocol { get { return BackingStore?.Get("preferredAuthenticationProtocol"); } set { BackingStore?.Set("preferredAuthenticationProtocol", value); } } - /// Current certificate used to sign tokens passed to the Microsoft identity platform. The certificate is formatted as a Base64 encoded string of the public portion of the federated IdP's token signing certificate and must be compatible with the X509Certificate2 class. This property is used in the following scenarios: if a rollover is required outside of the autorollover update a new federation service is being set up if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. Azure AD updates certificates via an autorollover process in which it attempts to retrieve a new certificate from the federation service metadata, 30 days before expiry of the current certificate. If a new certificate isn't available, Azure AD monitors the metadata daily and will update the federation settings for the domain when a new certificate is available. + /// Current certificate used to sign tokens passed to the Microsoft identity platform. The certificate is formatted as a Base64 encoded string of the public portion of the federated IdP's token signing certificate and must be compatible with the X509Certificate2 class. This property is used in the following scenarios: if a rollover is required outside of the autorollover update a new federation service is being set up if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. Microsoft Entra ID updates certificates via an autorollover process in which it attempts to retrieve a new certificate from the federation service metadata, 30 days before expiry of the current certificate. If a new certificate isn't available, Microsoft Entra ID monitors the metadata daily and will update the federation settings for the domain when a new certificate is available. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SigningCertificate { @@ -89,7 +89,7 @@ public SamlOrWsFedProvider() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"issuerUri", n => { IssuerUri = n.GetStringValue(); } }, {"metadataExchangeUri", n => { MetadataExchangeUri = n.GetStringValue(); } }, @@ -102,7 +102,7 @@ public SamlOrWsFedProvider() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("issuerUri", IssuerUri); diff --git a/src/Microsoft.Graph/Generated/Models/SamlSingleSignOnSettings.cs b/src/Microsoft.Graph/Generated/Models/SamlSingleSignOnSettings.cs index d68d6a655bb..592140b213b 100644 --- a/src/Microsoft.Graph/Generated/Models/SamlSingleSignOnSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/SamlSingleSignOnSettings.cs @@ -60,7 +60,7 @@ public static SamlSingleSignOnSettings CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"relayState", n => { RelayState = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("relayState", RelayState); diff --git a/src/Microsoft.Graph/Generated/Models/Schedule.cs b/src/Microsoft.Graph/Generated/Models/Schedule.cs index 36130704e78..a18b157a246 100644 --- a/src/Microsoft.Graph/Generated/Models/Schedule.cs +++ b/src/Microsoft.Graph/Generated/Models/Schedule.cs @@ -220,7 +220,7 @@ public List WorkforceIntegrationIds { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"enabled", n => { Enabled = n.GetBoolValue(); } }, {"offerShiftRequests", n => { OfferShiftRequests = n.GetCollectionOfObjectValues(OfferShiftRequest.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -247,7 +247,7 @@ public List WorkforceIntegrationIds { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("enabled", Enabled); diff --git a/src/Microsoft.Graph/Generated/Models/ScheduleChangeRequest.cs b/src/Microsoft.Graph/Generated/Models/ScheduleChangeRequest.cs index 4d376b833ad..7682e151f27 100644 --- a/src/Microsoft.Graph/Generated/Models/ScheduleChangeRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/ScheduleChangeRequest.cs @@ -106,7 +106,7 @@ public ScheduleChangeRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignedTo", n => { AssignedTo = n.GetEnumValue(); } }, {"managerActionDateTime", n => { ManagerActionDateTime = n.GetDateTimeOffsetValue(); } }, @@ -122,7 +122,7 @@ public ScheduleChangeRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("assignedTo", AssignedTo); diff --git a/src/Microsoft.Graph/Generated/Models/ScheduleEntity.cs b/src/Microsoft.Graph/Generated/Models/ScheduleEntity.cs index 6a150fb6757..ac8a1a4d72f 100644 --- a/src/Microsoft.Graph/Generated/Models/ScheduleEntity.cs +++ b/src/Microsoft.Graph/Generated/Models/ScheduleEntity.cs @@ -67,7 +67,7 @@ public static ScheduleEntity CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ScheduleInformation.cs b/src/Microsoft.Graph/Generated/Models/ScheduleInformation.cs index 3a79c5c045c..ace0e94dbf9 100644 --- a/src/Microsoft.Graph/Generated/Models/ScheduleInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/ScheduleInformation.cs @@ -116,7 +116,7 @@ public static ScheduleInformation CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"availabilityView", n => { AvailabilityView = n.GetStringValue(); } }, {"error", n => { Error = n.GetObjectValue(FreeBusyError.CreateFromDiscriminatorValue); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("availabilityView", AvailabilityView); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/ScheduleItem.cs b/src/Microsoft.Graph/Generated/Models/ScheduleItem.cs index 02d448a8cea..0ff40045eda 100644 --- a/src/Microsoft.Graph/Generated/Models/ScheduleItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ScheduleItem.cs @@ -112,7 +112,7 @@ public static ScheduleItem CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"end", n => { End = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"isPrivate", n => { IsPrivate = n.GetBoolValue(); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("end", End); writer.WriteBoolValue("isPrivate", IsPrivate); diff --git a/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs b/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs index d28834df4c0..f2aee5eb4b7 100644 --- a/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs @@ -56,7 +56,7 @@ public SchedulingGroup() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"isActive", n => { IsActive = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public SchedulingGroup() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/SchedulingGroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SchedulingGroupCollectionResponse.cs index 93ce4ba3474..994360c2f82 100644 --- a/src/Microsoft.Graph/Generated/Models/SchedulingGroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SchedulingGroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SchedulingGroup.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SchemaExtension.cs b/src/Microsoft.Graph/Generated/Models/SchemaExtension.cs index c0412c12f26..ac25d824a91 100644 --- a/src/Microsoft.Graph/Generated/Models/SchemaExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/SchemaExtension.cs @@ -20,7 +20,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Azure AD as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq). + /// The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Microsoft Entra ID as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Owner { @@ -87,7 +87,7 @@ public List TargetTypes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"owner", n => { Owner = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public List TargetTypes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/SchemaExtensionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SchemaExtensionCollectionResponse.cs index 4ddc441406c..85c4a056e26 100644 --- a/src/Microsoft.Graph/Generated/Models/SchemaExtensionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SchemaExtensionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SchemaExtension.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs b/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs index 58615d5b0a8..41b20276536 100644 --- a/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs +++ b/src/Microsoft.Graph/Generated/Models/ScopedRoleMembership.cs @@ -59,7 +59,7 @@ public Identity RoleMemberInfo { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"administrativeUnitId", n => { AdministrativeUnitId = n.GetStringValue(); } }, {"roleId", n => { RoleId = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public Identity RoleMemberInfo { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("administrativeUnitId", AdministrativeUnitId); diff --git a/src/Microsoft.Graph/Generated/Models/ScopedRoleMembershipCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ScopedRoleMembershipCollectionResponse.cs index e33cc31e48d..807c9330363 100644 --- a/src/Microsoft.Graph/Generated/Models/ScopedRoleMembershipCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ScopedRoleMembershipCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScopedRoleMembership.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ScoredEmailAddress.cs b/src/Microsoft.Graph/Generated/Models/ScoredEmailAddress.cs index 8b093becb09..a3529878505 100644 --- a/src/Microsoft.Graph/Generated/Models/ScoredEmailAddress.cs +++ b/src/Microsoft.Graph/Generated/Models/ScoredEmailAddress.cs @@ -84,7 +84,7 @@ public static ScoredEmailAddress CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"itemId", n => { ItemId = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteStringValue("itemId", ItemId); diff --git a/src/Microsoft.Graph/Generated/Models/SearchAggregation.cs b/src/Microsoft.Graph/Generated/Models/SearchAggregation.cs index 75308b2d482..1bd7e81e2bd 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchAggregation.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchAggregation.cs @@ -74,7 +74,7 @@ public static SearchAggregation CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"buckets", n => { Buckets = n.GetCollectionOfObjectValues(SearchBucket.CreateFromDiscriminatorValue)?.ToList(); } }, {"field", n => { Field = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("buckets", Buckets); writer.WriteStringValue("field", Field); diff --git a/src/Microsoft.Graph/Generated/Models/SearchAlteration.cs b/src/Microsoft.Graph/Generated/Models/SearchAlteration.cs index 968df94e841..228d172de8a 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchAlteration.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchAlteration.cs @@ -88,7 +88,7 @@ public static SearchAlteration CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alteredHighlightedQueryString", n => { AlteredHighlightedQueryString = n.GetStringValue(); } }, {"alteredQueryString", n => { AlteredQueryString = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alteredHighlightedQueryString", AlteredHighlightedQueryString); writer.WriteStringValue("alteredQueryString", AlteredQueryString); diff --git a/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs b/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs index 218ad038d51..9e0d43e04eb 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchAlterationOptions.cs @@ -56,7 +56,7 @@ public static SearchAlterationOptions CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"enableModification", n => { EnableModification = n.GetBoolValue(); } }, {"enableSuggestion", n => { EnableSuggestion = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("enableModification", EnableModification); writer.WriteBoolValue("enableSuggestion", EnableSuggestion); diff --git a/src/Microsoft.Graph/Generated/Models/SearchBucket.cs b/src/Microsoft.Graph/Generated/Models/SearchBucket.cs index 695e31e1237..89111c9747a 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchBucket.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchBucket.cs @@ -79,7 +79,7 @@ public static SearchBucket CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"aggregationFilterToken", n => { AggregationFilterToken = n.GetStringValue(); } }, {"count", n => { Count = n.GetIntValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("aggregationFilterToken", AggregationFilterToken); writer.WriteIntValue("count", Count); diff --git a/src/Microsoft.Graph/Generated/Models/SearchEntity.cs b/src/Microsoft.Graph/Generated/Models/SearchEntity.cs index 2130ffbac7d..738f3a6826b 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchEntity.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchEntity.cs @@ -17,7 +17,7 @@ public class SearchEntity : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class SearchEntity : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/SearchHit.cs b/src/Microsoft.Graph/Generated/Models/SearchHit.cs index 38c5c80a0f9..01fac4c3aa3 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchHit.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchHit.cs @@ -126,7 +126,7 @@ public static SearchHit CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentSource", n => { ContentSource = n.GetStringValue(); } }, {"hitId", n => { HitId = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentSource", ContentSource); writer.WriteStringValue("hitId", HitId); diff --git a/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs b/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs index 00faacd32a4..a79dc882f41 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchHitsContainer.cs @@ -84,7 +84,7 @@ public static SearchHitsContainer CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"aggregations", n => { Aggregations = n.GetCollectionOfObjectValues(SearchAggregation.CreateFromDiscriminatorValue)?.ToList(); } }, {"hits", n => { Hits = n.GetCollectionOfObjectValues(SearchHit.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("aggregations", Aggregations); writer.WriteCollectionOfObjectValues("hits", Hits); diff --git a/src/Microsoft.Graph/Generated/Models/SearchQuery.cs b/src/Microsoft.Graph/Generated/Models/SearchQuery.cs index 37e829f888c..404219d66a7 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchQuery.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchQuery.cs @@ -74,7 +74,7 @@ public static SearchQuery CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"queryString", n => { QueryString = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("queryString", QueryString); diff --git a/src/Microsoft.Graph/Generated/Models/SearchRequest.cs b/src/Microsoft.Graph/Generated/Models/SearchRequest.cs index 6171c04e6ef..f79455db993 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchRequest.cs @@ -229,7 +229,7 @@ public static SearchRequest CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"aggregationFilters", n => { AggregationFilters = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"aggregations", n => { Aggregations = n.GetCollectionOfObjectValues(AggregationOption.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -253,7 +253,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("aggregationFilters", AggregationFilters); writer.WriteCollectionOfObjectValues("aggregations", Aggregations); diff --git a/src/Microsoft.Graph/Generated/Models/SearchResponse.cs b/src/Microsoft.Graph/Generated/Models/SearchResponse.cs index 7daf7a1e32e..3c9ae143064 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchResponse.cs @@ -102,7 +102,7 @@ public static SearchResponse CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hitsContainers", n => { HitsContainers = n.GetCollectionOfObjectValues(SearchHitsContainer.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("hitsContainers", HitsContainers); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SearchResult.cs b/src/Microsoft.Graph/Generated/Models/SearchResult.cs index c250a223e51..a5e77d691fc 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchResult.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchResult.cs @@ -60,7 +60,7 @@ public static SearchResult CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"onClickTelemetryUrl", n => { OnClickTelemetryUrl = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("onClickTelemetryUrl", OnClickTelemetryUrl); diff --git a/src/Microsoft.Graph/Generated/Models/SectionGroup.cs b/src/Microsoft.Graph/Generated/Models/SectionGroup.cs index 1c3212dc0d0..2d7a9429b56 100644 --- a/src/Microsoft.Graph/Generated/Models/SectionGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/SectionGroup.cs @@ -107,7 +107,7 @@ public SectionGroup() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"parentNotebook", n => { ParentNotebook = n.GetObjectValue(Notebook.CreateFromDiscriminatorValue); } }, {"parentSectionGroup", n => { ParentSectionGroup = n.GetObjectValue(SectionGroup.CreateFromDiscriminatorValue); } }, @@ -121,7 +121,7 @@ public SectionGroup() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("parentNotebook", ParentNotebook); diff --git a/src/Microsoft.Graph/Generated/Models/SectionGroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SectionGroupCollectionResponse.cs index e3fed06f237..26e2ef31e57 100644 --- a/src/Microsoft.Graph/Generated/Models/SectionGroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SectionGroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SectionGroup.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SectionLinks.cs b/src/Microsoft.Graph/Generated/Models/SectionLinks.cs index 4c6059e7de4..561343b6de1 100644 --- a/src/Microsoft.Graph/Generated/Models/SectionLinks.cs +++ b/src/Microsoft.Graph/Generated/Models/SectionLinks.cs @@ -74,7 +74,7 @@ public static SectionLinks CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"oneNoteClientUrl", n => { OneNoteClientUrl = n.GetObjectValue(ExternalLink.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("oneNoteClientUrl", OneNoteClientUrl); diff --git a/src/Microsoft.Graph/Generated/Models/SecureScore.cs b/src/Microsoft.Graph/Generated/Models/SecureScore.cs index 1e7c3de1f2a..852e937ea4b 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScore.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScore.cs @@ -112,7 +112,7 @@ public SecurityVendorInformation VendorInformation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeUserCount", n => { ActiveUserCount = n.GetIntValue(); } }, {"averageComparativeScores", n => { AverageComparativeScores = n.GetCollectionOfObjectValues(AverageComparativeScore.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -130,7 +130,7 @@ public SecurityVendorInformation VendorInformation { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeUserCount", ActiveUserCount); diff --git a/src/Microsoft.Graph/Generated/Models/SecureScoreCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SecureScoreCollectionResponse.cs index d3f8a2176c6..532654ad1b8 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScoreCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScoreCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SecureScore.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs b/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs index 6253917ddd6..5f192a40c6f 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfile.cs @@ -152,7 +152,7 @@ public string RemediationImpact { set { BackingStore?.Set("remediationImpact", value); } } #endif - /// Service that owns the control (Exchange, Sharepoint, Azure AD). + /// Service that owns the control (Exchange, Sharepoint, Microsoft Entra ID). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Service { @@ -247,7 +247,7 @@ public SecurityVendorInformation VendorInformation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actionType", n => { ActionType = n.GetStringValue(); } }, {"actionUrl", n => { ActionUrl = n.GetStringValue(); } }, @@ -274,7 +274,7 @@ public SecurityVendorInformation VendorInformation { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("actionType", ActionType); diff --git a/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfileCollectionResponse.cs index 77d808b9318..dddbdf5fc27 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfileCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScoreControlProfileCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SecureScoreControlProfile.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SecureScoreControlStateUpdate.cs b/src/Microsoft.Graph/Generated/Models/SecureScoreControlStateUpdate.cs index 70e6bc6d883..f7e1906dd11 100644 --- a/src/Microsoft.Graph/Generated/Models/SecureScoreControlStateUpdate.cs +++ b/src/Microsoft.Graph/Generated/Models/SecureScoreControlStateUpdate.cs @@ -107,7 +107,7 @@ public static SecureScoreControlStateUpdate CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedTo", n => { AssignedTo = n.GetStringValue(); } }, {"comment", n => { Comment = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("assignedTo", AssignedTo); writer.WriteStringValue("comment", Comment); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs index 9b1109c09da..c222c7acdf7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs @@ -208,6 +208,20 @@ public List MitreTechniques { get { return BackingStore?.Get>("mitreTechniques"); } set { BackingStore?.Set("mitreTechniques", value); } } +#endif + /// The productName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ProductName { + get { return BackingStore?.Get("productName"); } + set { BackingStore?.Set("productName", value); } + } +#nullable restore +#else + public string ProductName { + get { return BackingStore?.Get("productName"); } + set { BackingStore?.Set("productName", value); } + } #endif /// The ID of the alert as it appears in the security provider product that generated the alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -257,7 +271,7 @@ public AlertStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } - /// The Azure Active Directory tenant the alert was created in. + /// The Microsoft Entra tenant the alert was created in. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -324,7 +338,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actorDisplayName", n => { ActorDisplayName = n.GetStringValue(); } }, {"alertPolicyId", n => { AlertPolicyId = n.GetStringValue(); } }, @@ -345,6 +359,7 @@ public string Title { {"lastActivityDateTime", n => { LastActivityDateTime = n.GetDateTimeOffsetValue(); } }, {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } }, {"mitreTechniques", n => { MitreTechniques = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"productName", n => { ProductName = n.GetStringValue(); } }, {"providerAlertId", n => { ProviderAlertId = n.GetStringValue(); } }, {"recommendedActions", n => { RecommendedActions = n.GetStringValue(); } }, {"resolvedDateTime", n => { ResolvedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -361,7 +376,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("actorDisplayName", ActorDisplayName); @@ -383,6 +398,7 @@ public string Title { writer.WriteDateTimeOffsetValue("lastActivityDateTime", LastActivityDateTime); writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime); writer.WriteCollectionOfPrimitiveValues("mitreTechniques", MitreTechniques); + writer.WriteStringValue("productName", ProductName); writer.WriteStringValue("providerAlertId", ProviderAlertId); writer.WriteStringValue("recommendedActions", RecommendedActions); writer.WriteDateTimeOffsetValue("resolvedDateTime", ResolvedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/AlertCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/AlertCollectionResponse.cs index f6c68031273..7be8f281ce6 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AlertCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AlertCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Alert.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/AlertComment.cs b/src/Microsoft.Graph/Generated/Models/Security/AlertComment.cs index a60f6b20d1e..09a0bd32493 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AlertComment.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AlertComment.cs @@ -79,7 +79,7 @@ public static AlertComment CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"comment", n => { Comment = n.GetStringValue(); } }, {"createdByDisplayName", n => { CreatedByDisplayName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("createdByDisplayName", CreatedByDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs index c394ec98377..775e6cde61a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs @@ -149,7 +149,7 @@ public static AlertEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"detailedRoles", n => { DetailedRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -165,7 +165,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteCollectionOfPrimitiveValues("detailedRoles", DetailedRoles); diff --git a/src/Microsoft.Graph/Generated/Models/Security/AmazonResourceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/AmazonResourceEvidence.cs index ba550b37c09..02e3dd4dc89 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AmazonResourceEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AmazonResourceEvidence.cs @@ -79,7 +79,7 @@ public AmazonResourceEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"amazonAccountId", n => { AmazonAccountId = n.GetStringValue(); } }, {"amazonResourceId", n => { AmazonResourceId = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public AmazonResourceEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("amazonAccountId", AmazonAccountId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/AnalyzedMessageEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/AnalyzedMessageEvidence.cs index 8e8c67d19d2..fc37cd283f9 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AnalyzedMessageEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AnalyzedMessageEvidence.cs @@ -248,7 +248,7 @@ public AnalyzedMessageEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"antiSpamDirection", n => { AntiSpamDirection = n.GetStringValue(); } }, {"attachmentsCount", n => { AttachmentsCount = n.GetLongValue(); } }, @@ -274,7 +274,7 @@ public AnalyzedMessageEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("antiSpamDirection", AntiSpamDirection); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Article.cs b/src/Microsoft.Graph/Generated/Models/Security/Article.cs index 21fe7aae8d1..93db897d2c8 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Article.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Article.cs @@ -116,7 +116,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"body", n => { Body = n.GetObjectValue(FormattedContent.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -133,7 +133,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("body", Body); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ArticleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/ArticleCollectionResponse.cs index e3112c9ce82..ce20ce0c79f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ArticleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ArticleCollectionResponse.cs @@ -31,7 +31,7 @@ public List
Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues
(Article.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List
Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues
("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicator.cs b/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicator.cs index 2da0d1df130..fcbaa627d1b 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicator.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicator.cs @@ -23,7 +23,7 @@ public ArticleIndicator() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public ArticleIndicator() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicatorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicatorCollectionResponse.cs index 2fc9b452263..81eeb8a6534 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicatorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ArticleIndicatorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArticleIndicator.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs b/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs index 30b1b5199e1..4f5a8b09404 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Artifact.cs @@ -30,7 +30,7 @@ public class Artifact : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -38,7 +38,7 @@ public class Artifact : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/AutonomousSystem.cs b/src/Microsoft.Graph/Generated/Models/Security/AutonomousSystem.cs index edbd269e851..bfa6aeef6b1 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AutonomousSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AutonomousSystem.cs @@ -93,7 +93,7 @@ public static AutonomousSystem CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"number", n => { Number = n.GetIntValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteIntValue("number", Number); diff --git a/src/Microsoft.Graph/Generated/Models/Security/AzureResourceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/AzureResourceEvidence.cs index c0d5ed7c949..6d53f0ed098 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AzureResourceEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AzureResourceEvidence.cs @@ -65,7 +65,7 @@ public AzureResourceEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"resourceId", n => { ResourceId = n.GetStringValue(); } }, {"resourceName", n => { ResourceName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public AzureResourceEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("resourceId", ResourceId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/BlobContainerEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/BlobContainerEvidence.cs index 64ac349572c..833649d6fbe 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/BlobContainerEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/BlobContainerEvidence.cs @@ -65,7 +65,7 @@ public BlobContainerEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, {"storageResource", n => { StorageResource = n.GetObjectValue(AzureResourceEvidence.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public BlobContainerEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/Security/BlobEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/BlobEvidence.cs index 58c6f569119..3b8ac6b3ef5 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/BlobEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/BlobEvidence.cs @@ -93,7 +93,7 @@ public BlobEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"blobContainer", n => { BlobContainer = n.GetObjectValue(BlobContainerEvidence.CreateFromDiscriminatorValue); } }, {"etag", n => { Etag = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public BlobEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("blobContainer", BlobContainer); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Case.cs b/src/Microsoft.Graph/Generated/Models/Security/Case.cs index b4ba6765ec3..ac1694cdf20 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Case.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Case.cs @@ -78,7 +78,7 @@ public CaseStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -92,7 +92,7 @@ public CaseStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/CaseOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/CaseOperation.cs index 9f2c1f30fa7..2a87c1ea89f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CaseOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CaseOperation.cs @@ -80,7 +80,7 @@ public CaseOperationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"action", n => { Action = n.GetEnumValue(); } }, {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -95,7 +95,7 @@ public CaseOperationStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("action", Action); diff --git a/src/Microsoft.Graph/Generated/Models/Security/CaseOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/CaseOperationCollectionResponse.cs index 9a9d5f2195d..8cd0921a8a8 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CaseOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CaseOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(CaseOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/CasesRoot.cs b/src/Microsoft.Graph/Generated/Models/Security/CasesRoot.cs index 2d3e6ead37a..dd466f9df45 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CasesRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CasesRoot.cs @@ -31,7 +31,7 @@ public List EdiscoveryCases { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ediscoveryCases", n => { EdiscoveryCases = n.GetCollectionOfObjectValues(EdiscoveryCase.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List EdiscoveryCases { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("ediscoveryCases", EdiscoveryCases); diff --git a/src/Microsoft.Graph/Generated/Models/Security/CloudApplicationEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/CloudApplicationEvidence.cs index 54248beb8f6..daffd570925 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CloudApplicationEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CloudApplicationEvidence.cs @@ -66,7 +66,7 @@ public CloudApplicationEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appId", n => { AppId = n.GetLongValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public CloudApplicationEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteLongValue("appId", AppId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ContainerEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/ContainerEvidence.cs index b061835db51..3635dbcf7a0 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ContainerEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ContainerEvidence.cs @@ -112,7 +112,7 @@ public ContainerEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"args", n => { Args = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"command", n => { Command = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -127,7 +127,7 @@ public ContainerEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("args", Args); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ContainerImageEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/ContainerImageEvidence.cs index 96b824a3176..bfb0f61c831 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ContainerImageEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ContainerImageEvidence.cs @@ -65,7 +65,7 @@ public ContainerImageEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"digestImage", n => { DigestImage = n.GetObjectValue(ContainerImageEvidence.CreateFromDiscriminatorValue); } }, {"imageId", n => { ImageId = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public ContainerImageEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("digestImage", DigestImage); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ContainerRegistryEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/ContainerRegistryEvidence.cs index dc0752cd4fd..9d59f7b0647 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ContainerRegistryEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ContainerRegistryEvidence.cs @@ -37,7 +37,7 @@ public ContainerRegistryEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"registry", n => { Registry = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public ContainerRegistryEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("registry", Registry); diff --git a/src/Microsoft.Graph/Generated/Models/Security/CvssSummary.cs b/src/Microsoft.Graph/Generated/Models/Security/CvssSummary.cs index b31330a677e..536eb5b76ba 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/CvssSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/CvssSummary.cs @@ -70,7 +70,7 @@ public static CvssSummary CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"score", n => { Score = n.GetDoubleValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteDoubleValue("score", Score); diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSet.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSet.cs index 6537dc2837e..8025a8ae424 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSet.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSet.cs @@ -54,7 +54,7 @@ public string DisplayName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -65,7 +65,7 @@ public string DisplayName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs index fcb76a55198..af2cc86d46b 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSource.cs @@ -61,7 +61,7 @@ public DataSourceHoldStatus? HoldStatus { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public DataSourceHoldStatus? HoldStatus { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceCollectionResponse.cs index 3c86351da4f..2f37b352c8c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DataSource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs index 5983a773af1..c4b0c6a6f7e 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceContainer.cs @@ -61,7 +61,7 @@ public DataSourceContainerStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -75,7 +75,7 @@ public DataSourceContainerStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs b/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs index 0a27392c7e9..2bcd441bbba 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs @@ -41,5 +41,15 @@ public enum DetectionSource { UnknownFutureValue, [EnumMember(Value = "microsoftDefenderForCloud")] MicrosoftDefenderForCloud, + [EnumMember(Value = "nrtAlerts")] + NrtAlerts, + [EnumMember(Value = "scheduledAlerts")] + ScheduledAlerts, + [EnumMember(Value = "microsoftDefenderThreatIntelligenceAnalytics")] + MicrosoftDefenderThreatIntelligenceAnalytics, + [EnumMember(Value = "builtInMl")] + BuiltInMl, + [EnumMember(Value = "microsoftSentinel")] + MicrosoftSentinel, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/DeviceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/DeviceEvidence.cs index d5e7a2ac83f..8fbb0fd099c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DeviceEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DeviceEvidence.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models.Security { public class DeviceEvidence : AlertEvidence, IParsable { - /// A unique identifier assigned to a device by Azure Active Directory (Azure AD) when device is Azure AD-joined. + /// A unique identifier assigned to a device by Microsoft Entra ID when device is Microsoft Entra joined. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AzureAdDeviceId { @@ -184,7 +184,7 @@ public DeviceEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"azureAdDeviceId", n => { AzureAdDeviceId = n.GetStringValue(); } }, {"defenderAvStatus", n => { DefenderAvStatus = n.GetEnumValue(); } }, @@ -208,7 +208,7 @@ public DeviceEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("azureAdDeviceId", AzureAdDeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Dictionary.cs b/src/Microsoft.Graph/Generated/Models/Security/Dictionary.cs index 7968e3c145d..53bb701698e 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Dictionary.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Dictionary.cs @@ -46,7 +46,7 @@ public static Dictionary CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryAddToReviewSetOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryAddToReviewSetOperation.cs index 26e7dd8862e..772e60df9c4 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryAddToReviewSetOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryAddToReviewSetOperation.cs @@ -45,7 +45,7 @@ public EdiscoverySearch Search { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"reviewSet", n => { ReviewSet = n.GetObjectValue(EdiscoveryReviewSet.CreateFromDiscriminatorValue); } }, {"search", n => { Search = n.GetObjectValue(EdiscoverySearch.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public EdiscoverySearch Search { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("reviewSet", ReviewSet); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCase.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCase.cs index 9a11d05f4a1..7b0137b91d2 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCase.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCase.cs @@ -154,7 +154,7 @@ public EdiscoveryCase() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"closedBy", n => { ClosedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, {"closedDateTime", n => { ClosedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -172,7 +172,7 @@ public EdiscoveryCase() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("closedBy", ClosedBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseCollectionResponse.cs index 185f1739a47..f2e0d7c54aa 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryCase.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseSettings.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseSettings.cs index 2589f47f24b..b95a2de7610 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCaseSettings.cs @@ -59,7 +59,7 @@ public TopicModelingSettings TopicModeling { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ocr", n => { Ocr = n.GetObjectValue(OcrSettings.CreateFromDiscriminatorValue); } }, {"redundancyDetection", n => { RedundancyDetection = n.GetObjectValue(RedundancyDetectionSettings.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public TopicModelingSettings TopicModeling { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("ocr", Ocr); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodian.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodian.cs index 1738107afbf..1fe908a1eab 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodian.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodian.cs @@ -98,7 +98,7 @@ public EdiscoveryCustodian() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"acknowledgedDateTime", n => { AcknowledgedDateTime = n.GetDateTimeOffsetValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public EdiscoveryCustodian() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("acknowledgedDateTime", AcknowledgedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodianCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodianCollectionResponse.cs index 8a9668b04be..1bda0160a32 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodianCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryCustodianCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryCustodian.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryEstimateOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryEstimateOperation.cs index 04b1aa98a87..ce63f846f03 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryEstimateOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryEstimateOperation.cs @@ -61,7 +61,7 @@ public long? UnindexedItemsSize { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"indexedItemCount", n => { IndexedItemCount = n.GetLongValue(); } }, {"indexedItemsSize", n => { IndexedItemsSize = n.GetLongValue(); } }, @@ -76,7 +76,7 @@ public long? UnindexedItemsSize { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteLongValue("indexedItemCount", IndexedItemCount); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs index 47d2cc83cc7..a7ee21c8abe 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryExportOperation.cs @@ -97,7 +97,7 @@ public EdiscoveryReviewSetQuery ReviewSetQuery { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"exportFileMetadata", n => { ExportFileMetadata = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Security.ExportFileMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -112,7 +112,7 @@ public EdiscoveryReviewSetQuery ReviewSetQuery { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryHoldOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryHoldOperation.cs index 20523983f1b..26a66c83853 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryHoldOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryHoldOperation.cs @@ -17,7 +17,7 @@ public class EdiscoveryHoldOperation : CaseOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class EdiscoveryHoldOperation : CaseOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryIndexOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryIndexOperation.cs index c5a2ca79cb9..e7fdb46ca6a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryIndexOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryIndexOperation.cs @@ -17,7 +17,7 @@ public class EdiscoveryIndexOperation : CaseOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class EdiscoveryIndexOperation : CaseOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs index 8b972c4c726..fa59fb94d43 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs @@ -51,7 +51,7 @@ public EdiscoveryNoncustodialDataSource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"dataSource", n => { DataSource = n.GetObjectValue(Microsoft.Graph.Models.Security.DataSource.CreateFromDiscriminatorValue); } }, {"lastIndexOperation", n => { LastIndexOperation = n.GetObjectValue(EdiscoveryIndexOperation.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public EdiscoveryNoncustodialDataSource() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("dataSource", DataSource); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSourceCollectionResponse.cs index 14c15c452ed..65df6a5e1b2 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryNoncustodialDataSource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs index 92844ae2e04..29d7f749fe8 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs @@ -17,7 +17,7 @@ public class EdiscoveryPurgeDataOperation : CaseOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class EdiscoveryPurgeDataOperation : CaseOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSet.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSet.cs index cb77ebaa43e..eed03af9325 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSet.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSet.cs @@ -37,7 +37,7 @@ public EdiscoveryReviewSet() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"queries", n => { Queries = n.GetCollectionOfObjectValues(EdiscoveryReviewSetQuery.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public EdiscoveryReviewSet() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("queries", Queries); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetCollectionResponse.cs index 0730a869df5..b9ce5a54433 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewSet.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs index d322b163220..55df48e5234 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs @@ -23,7 +23,7 @@ public EdiscoveryReviewSetQuery() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public EdiscoveryReviewSetQuery() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQueryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQueryCollectionResponse.cs index 0328012e968..3f7127c639d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQueryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQueryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewSetQuery.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTag.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTag.cs index bd5314d2b70..2994fb37f82 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTag.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTag.cs @@ -56,7 +56,7 @@ public EdiscoveryReviewTag() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"childSelectability", n => { ChildSelectability = n.GetEnumValue(); } }, {"childTags", n => { ChildTags = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -67,7 +67,7 @@ public EdiscoveryReviewTag() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("childSelectability", ChildSelectability); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTagCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTagCollectionResponse.cs index 9574af10803..1832300eb70 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTagCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewTagCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs index 27a0f82cd3a..167dbb75805 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearch.cs @@ -98,7 +98,7 @@ public EdiscoverySearch() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addToReviewSetOperation", n => { AddToReviewSetOperation = n.GetObjectValue(EdiscoveryAddToReviewSetOperation.CreateFromDiscriminatorValue); } }, {"additionalSources", n => { AdditionalSources = n.GetCollectionOfObjectValues(DataSource.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -112,7 +112,7 @@ public EdiscoverySearch() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("additionalSources", AdditionalSources); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearchCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearchCollectionResponse.cs index bd4b57b47ee..27f5b8aa0d7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearchCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoverySearchCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoverySearch.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryTagOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryTagOperation.cs index 05534d33773..e4f358d9c8c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryTagOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryTagOperation.cs @@ -17,7 +17,7 @@ public class EdiscoveryTagOperation : CaseOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class EdiscoveryTagOperation : CaseOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/EmailSender.cs b/src/Microsoft.Graph/Generated/Models/Security/EmailSender.cs index fd0c440cd80..da61b567d48 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EmailSender.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EmailSender.cs @@ -88,7 +88,7 @@ public static EmailSender CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"domainName", n => { DomainName = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("domainName", DomainName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EventPropagationResult.cs b/src/Microsoft.Graph/Generated/Models/Security/EventPropagationResult.cs index b6a1e7197e4..27984b165e7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EventPropagationResult.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EventPropagationResult.cs @@ -93,7 +93,7 @@ public static EventPropagationResult CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"location", n => { Location = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("location", Location); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EventQuery.cs b/src/Microsoft.Graph/Generated/Models/Security/EventQuery.cs index 5f016ad97ce..b90530cc2e8 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EventQuery.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EventQuery.cs @@ -65,7 +65,7 @@ public static EventQuery CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"query", n => { Query = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("query", Query); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ExportFileMetadata.cs b/src/Microsoft.Graph/Generated/Models/Security/ExportFileMetadata.cs index a7cec4769a7..b43f6e90526 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ExportFileMetadata.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ExportFileMetadata.cs @@ -79,7 +79,7 @@ public static ExportFileMetadata CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"downloadUrl", n => { DownloadUrl = n.GetStringValue(); } }, {"fileName", n => { FileName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("downloadUrl", DownloadUrl); writer.WriteStringValue("fileName", FileName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/FileDetails.cs b/src/Microsoft.Graph/Generated/Models/Security/FileDetails.cs index 76c90553aae..fa4b5c6c06e 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/FileDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/FileDetails.cs @@ -149,7 +149,7 @@ public static FileDetails CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fileName", n => { FileName = n.GetStringValue(); } }, {"filePath", n => { FilePath = n.GetStringValue(); } }, @@ -166,7 +166,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("fileName", FileName); writer.WriteStringValue("filePath", FilePath); diff --git a/src/Microsoft.Graph/Generated/Models/Security/FileEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/FileEvidence.cs index a36f7d2f2b8..250bb91571d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/FileEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/FileEvidence.cs @@ -56,7 +56,7 @@ public FileEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"detectionStatus", n => { DetectionStatus = n.GetEnumValue(); } }, {"fileDetails", n => { FileDetails = n.GetObjectValue(Microsoft.Graph.Models.Security.FileDetails.CreateFromDiscriminatorValue); } }, @@ -67,7 +67,7 @@ public FileEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("detectionStatus", DetectionStatus); diff --git a/src/Microsoft.Graph/Generated/Models/Security/FileHash.cs b/src/Microsoft.Graph/Generated/Models/Security/FileHash.cs index 1760c8966ba..7d384d0c761 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/FileHash.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/FileHash.cs @@ -65,7 +65,7 @@ public static FileHash CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"algorithm", n => { Algorithm = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("algorithm", Algorithm); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Security/FormattedContent.cs b/src/Microsoft.Graph/Generated/Models/Security/FormattedContent.cs index 49c18282973..a48b6d73a39 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/FormattedContent.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/FormattedContent.cs @@ -65,7 +65,7 @@ public static FormattedContent CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetStringValue(); } }, {"format", n => { Format = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); writer.WriteEnumValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/Security/GoogleCloudResourceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/GoogleCloudResourceEvidence.cs index 966153ad5a0..4d8c728d112 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/GoogleCloudResourceEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/GoogleCloudResourceEvidence.cs @@ -89,7 +89,7 @@ public GoogleCloudResourceEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"location", n => { Location = n.GetStringValue(); } }, {"locationType", n => { LocationType = n.GetEnumValue(); } }, @@ -103,7 +103,7 @@ public GoogleCloudResourceEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("location", Location); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Host.cs b/src/Microsoft.Graph/Generated/Models/Security/Host.cs index e3793180a45..561fef7e6b3 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Host.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Host.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models.Security { public class Host : Artifact, IParsable { - /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ChildHostPairs { @@ -206,7 +206,7 @@ public Host() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"childHostPairs", n => { ChildHostPairs = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, {"components", n => { Components = n.GetCollectionOfObjectValues(HostComponent.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -228,7 +228,7 @@ public Host() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("childHostPairs", ChildHostPairs); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostCollectionResponse.cs index 4b4de63646a..f0b9245a084 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Host.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs b/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs index c5b264c4099..3fbb3e47ba2 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostComponent.cs @@ -89,7 +89,7 @@ public HostComponent() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"category", n => { Category = n.GetStringValue(); } }, {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, @@ -103,7 +103,7 @@ public HostComponent() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("category", Category); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostComponentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostComponentCollectionResponse.cs index 22c531b14c5..3f2b9a9b9fa 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostComponentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostComponentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(HostComponent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostCookie.cs b/src/Microsoft.Graph/Generated/Models/Security/HostCookie.cs index 250598261c4..32ff6defbf2 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostCookie.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostCookie.cs @@ -75,7 +75,7 @@ public HostCookie() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"domain", n => { Domain = n.GetStringValue(); } }, {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, @@ -88,7 +88,7 @@ public HostCookie() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("domain", Domain); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostCookieCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostCookieCollectionResponse.cs index ff41b02e415..c14694a4045 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostCookieCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostCookieCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(HostCookie.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs b/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs index c0d29507b7d..9bbf7490c6d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostPair.cs @@ -69,7 +69,7 @@ public Host ParentHost { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"childHost", n => { ChildHost = n.GetObjectValue(Host.CreateFromDiscriminatorValue); } }, {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, @@ -82,7 +82,7 @@ public Host ParentHost { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("childHost", ChildHost); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs index 1554392f5b6..2c777521fd4 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostPairCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(HostPair.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostReputation.cs b/src/Microsoft.Graph/Generated/Models/Security/HostReputation.cs index db163c63ee8..24e42464fd1 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostReputation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostReputation.cs @@ -41,7 +41,7 @@ public int? Score { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"classification", n => { Classification = n.GetEnumValue(); } }, {"rules", n => { Rules = n.GetCollectionOfObjectValues(HostReputationRule.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -52,7 +52,7 @@ public int? Score { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("classification", Classification); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostReputationRule.cs b/src/Microsoft.Graph/Generated/Models/Security/HostReputationRule.cs index 9d2aba08a9f..c323da1bcb0 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostReputationRule.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostReputationRule.cs @@ -93,7 +93,7 @@ public static HostReputationRule CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs index 8c9259f5d4a..4829237081f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificate.cs @@ -75,7 +75,7 @@ public HostSslCertificate() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, @@ -88,7 +88,7 @@ public HostSslCertificate() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs index a93ac5afda6..e5fed45b300 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(HostSslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs index a394b3a600b..f79ea334cb5 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostSslCertificatePort.cs @@ -61,7 +61,7 @@ public static HostSslCertificatePort CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); writer.WriteDateTimeOffsetValue("lastSeenDateTime", LastSeenDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostTracker.cs b/src/Microsoft.Graph/Generated/Models/Security/HostTracker.cs index 32439fe045b..0a9f994eefb 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostTracker.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostTracker.cs @@ -75,7 +75,7 @@ public HostTracker() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, @@ -88,7 +88,7 @@ public HostTracker() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostTrackerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/HostTrackerCollectionResponse.cs index 8c080bbbf03..ae34a592043 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HostTrackerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HostTrackerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(HostTracker.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Hostname.cs b/src/Microsoft.Graph/Generated/Models/Security/Hostname.cs index 60078095eb7..395375d6464 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Hostname.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Hostname.cs @@ -51,7 +51,7 @@ public Hostname() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"registrant", n => { Registrant = n.GetStringValue(); } }, {"registrar", n => { Registrar = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public Hostname() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("registrant", Registrant); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HuntingQueryResults.cs b/src/Microsoft.Graph/Generated/Models/Security/HuntingQueryResults.cs index 7ff41b5fe40..61a834e9f4f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HuntingQueryResults.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HuntingQueryResults.cs @@ -74,7 +74,7 @@ public static HuntingQueryResults CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"results", n => { Results = n.GetCollectionOfObjectValues(HuntingRowResult.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("results", Results); diff --git a/src/Microsoft.Graph/Generated/Models/Security/HuntingRowResult.cs b/src/Microsoft.Graph/Generated/Models/Security/HuntingRowResult.cs index 1a0bb78b7ca..070165c2759 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/HuntingRowResult.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/HuntingRowResult.cs @@ -46,7 +46,7 @@ public static HuntingRowResult CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Hyperlink.cs b/src/Microsoft.Graph/Generated/Models/Security/Hyperlink.cs index 8aec84d20f3..0bbb98ad05c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Hyperlink.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Hyperlink.cs @@ -74,7 +74,7 @@ public static Hyperlink CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs index b2f9563a7f4..cb79178e652 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs @@ -176,7 +176,7 @@ public List SystemTags { set { BackingStore?.Set("systemTags", value); } } #endif - /// The Azure Active Directory tenant in which the alert was created. + /// The Microsoft Entra tenant in which the alert was created. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -201,7 +201,7 @@ public string TenantId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"alerts", n => { Alerts = n.GetCollectionOfObjectValues(Alert.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignedTo", n => { AssignedTo = n.GetStringValue(); } }, @@ -226,7 +226,7 @@ public string TenantId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("alerts", Alerts); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IncidentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/IncidentCollectionResponse.cs index 075a5dfc7c6..3737f6c7c6a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IncidentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IncidentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Incident.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Indicator.cs b/src/Microsoft.Graph/Generated/Models/Security/Indicator.cs index dbfb0a89177..df8125ea63f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Indicator.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Indicator.cs @@ -41,7 +41,7 @@ public IndicatorSource? Source { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"artifact", n => { Artifact = n.GetObjectValue(Microsoft.Graph.Models.Security.Artifact.CreateFromDiscriminatorValue); } }, {"source", n => { Source = n.GetEnumValue(); } }, @@ -51,7 +51,7 @@ public IndicatorSource? Source { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("artifact", Artifact); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfile.cs b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfile.cs index 73087687a90..7cde76588cb 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfile.cs @@ -139,7 +139,7 @@ public FormattedContent Tradecraft { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"aliases", n => { Aliases = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"countriesOrRegionsOfOrigin", n => { CountriesOrRegionsOfOrigin = n.GetCollectionOfObjectValues(IntelligenceProfileCountryOrRegionOfOrigin.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -157,7 +157,7 @@ public FormattedContent Tradecraft { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("aliases", Aliases); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCollectionResponse.cs index ff266b7152d..d52533f47bf 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IntelligenceProfile.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCountryOrRegionOfOrigin.cs b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCountryOrRegionOfOrigin.cs index c0ca0c0bc8c..893f12fbf17 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCountryOrRegionOfOrigin.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileCountryOrRegionOfOrigin.cs @@ -74,7 +74,7 @@ public static IntelligenceProfileCountryOrRegionOfOrigin CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"label", n => { Label = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("label", Label); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicator.cs b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicator.cs index bf404d0516d..5e893d6dbca 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicator.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicator.cs @@ -33,7 +33,7 @@ public IntelligenceProfileIndicator() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, {"lastSeenDateTime", n => { LastSeenDateTime = n.GetDateTimeOffsetValue(); } }, @@ -43,7 +43,7 @@ public IntelligenceProfileIndicator() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicatorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicatorCollectionResponse.cs index 32e9440350d..2851d57a50c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicatorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IntelligenceProfileIndicatorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(IntelligenceProfileIndicator.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs b/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs index 3e379e43df6..a88eacba93c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IpAddress.cs @@ -79,7 +79,7 @@ public IpAddress() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"autonomousSystem", n => { AutonomousSystem = n.GetObjectValue(Microsoft.Graph.Models.Security.AutonomousSystem.CreateFromDiscriminatorValue); } }, {"countryOrRegion", n => { CountryOrRegion = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IpAddress() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("autonomousSystem", AutonomousSystem); diff --git a/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs index 499f3e0931a..67484a0a2df 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/IpEvidence.cs @@ -51,7 +51,7 @@ public IpEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"countryLetterCode", n => { CountryLetterCode = n.GetStringValue(); } }, {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IpEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("countryLetterCode", CountryLetterCode); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesClusterEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesClusterEvidence.cs index 343a76ab6e7..41226a68fec 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesClusterEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesClusterEvidence.cs @@ -84,7 +84,7 @@ public KubernetesClusterEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cloudResource", n => { CloudResource = n.GetObjectValue(AlertEvidence.CreateFromDiscriminatorValue); } }, {"distribution", n => { Distribution = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public KubernetesClusterEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("cloudResource", CloudResource); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesControllerEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesControllerEvidence.cs index 5dda80a0083..e8011774146 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesControllerEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesControllerEvidence.cs @@ -79,7 +79,7 @@ public KubernetesControllerEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"labels", n => { Labels = n.GetObjectValue(Dictionary.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public KubernetesControllerEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("labels", Labels); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesNamespaceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesNamespaceEvidence.cs index aa9d80ada69..ccb9f36a5ac 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesNamespaceEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesNamespaceEvidence.cs @@ -65,7 +65,7 @@ public KubernetesNamespaceEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cluster", n => { Cluster = n.GetObjectValue(KubernetesClusterEvidence.CreateFromDiscriminatorValue); } }, {"labels", n => { Labels = n.GetObjectValue(Dictionary.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public KubernetesNamespaceEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("cluster", Cluster); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesPodEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesPodEvidence.cs index 955637b869b..bb280fcabcd 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesPodEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesPodEvidence.cs @@ -149,7 +149,7 @@ public KubernetesPodEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"containers", n => { Containers = n.GetCollectionOfObjectValues(ContainerEvidence.CreateFromDiscriminatorValue)?.ToList(); } }, {"controller", n => { Controller = n.GetObjectValue(KubernetesControllerEvidence.CreateFromDiscriminatorValue); } }, @@ -166,7 +166,7 @@ public KubernetesPodEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("containers", Containers); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesSecretEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesSecretEvidence.cs index 0a14bfc2c54..71a0ee546bc 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesSecretEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesSecretEvidence.cs @@ -65,7 +65,7 @@ public KubernetesSecretEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, {"namespace", n => { Namespace = n.GetObjectValue(KubernetesNamespaceEvidence.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public KubernetesSecretEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceAccountEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceAccountEvidence.cs index 485360326ca..f0e5e5d7330 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceAccountEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceAccountEvidence.cs @@ -51,7 +51,7 @@ public KubernetesServiceAccountEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, {"namespace", n => { Namespace = n.GetObjectValue(KubernetesNamespaceEvidence.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public KubernetesServiceAccountEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceEvidence.cs index 9982774af34..8cac1b12032 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesServiceEvidence.cs @@ -126,7 +126,7 @@ public KubernetesServiceEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clusterIP", n => { ClusterIP = n.GetObjectValue(IpEvidence.CreateFromDiscriminatorValue); } }, {"externalIPs", n => { ExternalIPs = n.GetCollectionOfObjectValues(IpEvidence.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -142,7 +142,7 @@ public KubernetesServiceEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("clusterIP", ClusterIP); diff --git a/src/Microsoft.Graph/Generated/Models/Security/KubernetesServicePort.cs b/src/Microsoft.Graph/Generated/Models/Security/KubernetesServicePort.cs index 6367737e399..0501884523c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/KubernetesServicePort.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/KubernetesServicePort.cs @@ -103,7 +103,7 @@ public static KubernetesServicePort CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appProtocol", n => { AppProtocol = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appProtocol", AppProtocol); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/Security/LoggedOnUser.cs b/src/Microsoft.Graph/Generated/Models/Security/LoggedOnUser.cs index e02f61c5abe..73438eb40fb 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/LoggedOnUser.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/LoggedOnUser.cs @@ -74,7 +74,7 @@ public static LoggedOnUser CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accountName", n => { AccountName = n.GetStringValue(); } }, {"domainName", n => { DomainName = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("accountName", AccountName); writer.WriteStringValue("domainName", DomainName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/MailClusterEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/MailClusterEvidence.cs index 24203fc696e..f1167ccf42d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/MailClusterEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/MailClusterEvidence.cs @@ -98,7 +98,7 @@ public MailClusterEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clusterBy", n => { ClusterBy = n.GetStringValue(); } }, {"clusterByValue", n => { ClusterByValue = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public MailClusterEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("clusterBy", ClusterBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/MailboxEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/MailboxEvidence.cs index 5ac19cfc41a..fd3db9d06da 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/MailboxEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/MailboxEvidence.cs @@ -65,7 +65,7 @@ public MailboxEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"primaryAddress", n => { PrimaryAddress = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public MailboxEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/OauthApplicationEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/OauthApplicationEvidence.cs index 7b68b715ea2..f33ed67ed7a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/OauthApplicationEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/OauthApplicationEvidence.cs @@ -79,7 +79,7 @@ public OauthApplicationEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appId", n => { AppId = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public OauthApplicationEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appId", AppId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/OcrSettings.cs b/src/Microsoft.Graph/Generated/Models/Security/OcrSettings.cs index d6c766acea1..ad2be8045c2 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/OcrSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/OcrSettings.cs @@ -61,7 +61,7 @@ public static OcrSettings CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"maxImageSize", n => { MaxImageSize = n.GetIntValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isEnabled", IsEnabled); writer.WriteIntValue("maxImageSize", MaxImageSize); diff --git a/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecord.cs index a65d2ee0681..14bcac89f4c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecord.cs @@ -80,7 +80,7 @@ public PassiveDnsRecord() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"artifact", n => { Artifact = n.GetObjectValue(Microsoft.Graph.Models.Security.Artifact.CreateFromDiscriminatorValue); } }, {"collectedDateTime", n => { CollectedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -94,7 +94,7 @@ public PassiveDnsRecord() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("artifact", Artifact); diff --git a/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecordCollectionResponse.cs index ffc3a5d2e93..1415165e038 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/PassiveDnsRecordCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(PassiveDnsRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ProcessEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/ProcessEvidence.cs index d20cd4e5746..4aa7a233313 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ProcessEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ProcessEvidence.cs @@ -118,7 +118,7 @@ public ProcessEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"detectionStatus", n => { DetectionStatus = n.GetEnumValue(); } }, {"imageFile", n => { ImageFile = n.GetObjectValue(FileDetails.CreateFromDiscriminatorValue); } }, @@ -136,7 +136,7 @@ public ProcessEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("detectionStatus", DetectionStatus); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RedundancyDetectionSettings.cs b/src/Microsoft.Graph/Generated/Models/Security/RedundancyDetectionSettings.cs index e0299fc8f89..86d9d42c8b4 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RedundancyDetectionSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RedundancyDetectionSettings.cs @@ -66,7 +66,7 @@ public static RedundancyDetectionSettings CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"maxWords", n => { MaxWords = n.GetIntValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isEnabled", IsEnabled); writer.WriteIntValue("maxWords", MaxWords); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RegistryKeyEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/RegistryKeyEvidence.cs index b8df9dc3378..48260a247db 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RegistryKeyEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RegistryKeyEvidence.cs @@ -51,7 +51,7 @@ public RegistryKeyEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"registryHive", n => { RegistryHive = n.GetStringValue(); } }, {"registryKey", n => { RegistryKey = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public RegistryKeyEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("registryHive", RegistryHive); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RegistryValueEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/RegistryValueEvidence.cs index 3b0d9bc84b6..ef0c9f4f079 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RegistryValueEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RegistryValueEvidence.cs @@ -107,7 +107,7 @@ public RegistryValueEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"mdeDeviceId", n => { MdeDeviceId = n.GetStringValue(); } }, {"registryHive", n => { RegistryHive = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public RegistryValueEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("mdeDeviceId", MdeDeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionEvent.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionEvent.cs index fd6907955c7..48442522aa9 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RetentionEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionEvent.cs @@ -149,7 +149,7 @@ public Microsoft.Graph.Models.Security.RetentionEventType RetentionEventType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -169,7 +169,7 @@ public Microsoft.Graph.Models.Security.RetentionEventType RetentionEventType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventCollectionResponse.cs index 88a77e67f18..f5b3e0dcab7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RetentionEvent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventStatus.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventStatus.cs index 5f41f8a03d3..8b7764eb971 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventStatus.cs @@ -65,7 +65,7 @@ public static RetentionEventStatus CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"error", n => { Error = n.GetObjectValue(Microsoft.Graph.Models.PublicError.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("error", Error); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventType.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventType.cs index 946c8fedc4a..b26972ce27a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventType.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventType.cs @@ -83,7 +83,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -97,7 +97,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventTypeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventTypeCollectionResponse.cs index 29c5065228f..bdf05c3e405 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/RetentionEventTypeCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionEventTypeCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RetentionEventType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Search.cs b/src/Microsoft.Graph/Generated/Models/Security/Search.cs index 661991eb061..03dc4a790a3 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Search.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Search.cs @@ -102,7 +102,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentQuery", n => { ContentQuery = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, @@ -117,7 +117,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("contentQuery", ContentQuery); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Security.cs b/src/Microsoft.Graph/Generated/Models/Security/Security.cs index 5b4b093a934..a08faaf9815 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Security.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Security.cs @@ -171,7 +171,7 @@ public TriggerTypesRoot TriggerTypes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"alerts", n => { Alerts = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Alert.CreateFromDiscriminatorValue)?.ToList(); } }, {"alerts_v2", n => { AlertsV2 = n.GetCollectionOfObjectValues(Alert.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -190,7 +190,7 @@ public TriggerTypesRoot TriggerTypes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("alerts", Alerts); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SecurityGroupEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/SecurityGroupEvidence.cs index 7994e4dbd1d..e0b6a223b08 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SecurityGroupEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SecurityGroupEvidence.cs @@ -51,7 +51,7 @@ public SecurityGroupEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"securityGroupId", n => { SecurityGroupId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public SecurityGroupEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs b/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs index d7d8d219c19..b3a44a1ab0c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs @@ -25,5 +25,7 @@ public enum ServiceSource { UnknownFutureValue, [EnumMember(Value = "microsoftDefenderForCloud")] MicrosoftDefenderForCloud, + [EnumMember(Value = "microsoftSentinel")] + MicrosoftSentinel, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/SinglePropertySchema.cs b/src/Microsoft.Graph/Generated/Models/Security/SinglePropertySchema.cs index 017de457af2..5bb8264619c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SinglePropertySchema.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SinglePropertySchema.cs @@ -74,7 +74,7 @@ public static SinglePropertySchema CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SiteSource.cs b/src/Microsoft.Graph/Generated/Models/Security/SiteSource.cs index 58e88360e62..03fb88b375f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SiteSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SiteSource.cs @@ -37,7 +37,7 @@ public SiteSource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"site", n => { Site = n.GetObjectValue(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public SiteSource() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("site", Site); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SiteSourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/SiteSourceCollectionResponse.cs index 8f8dd20b936..a1509efe7ae 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SiteSourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SiteSourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SiteSource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs b/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs index fcde91c975e..9e117239e79 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SslCertificate.cs @@ -127,7 +127,7 @@ public SslCertificate() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"fingerprint", n => { Fingerprint = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public SslCertificate() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs index d6f589a2a13..9eb585d1cff 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SslCertificate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs index 8b6a6088804..b29c6f3a6d0 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SslCertificateEntity.cs @@ -172,7 +172,7 @@ public static SslCertificateEntity CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetObjectValue(Microsoft.Graph.Models.PhysicalAddress.CreateFromDiscriminatorValue); } }, {"alternateNames", n => { AlternateNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -190,7 +190,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("address", Address); writer.WriteCollectionOfPrimitiveValues("alternateNames", AlternateNames); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs b/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs index a187afbddc5..95abfe1017e 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Subdomain.cs @@ -36,7 +36,7 @@ public Microsoft.Graph.Models.Security.Host Host { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, @@ -46,7 +46,7 @@ public Microsoft.Graph.Models.Security.Host Host { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs index bc9cf7129fd..2cdab6e6dd5 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SubdomainCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Subdomain.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Tag.cs b/src/Microsoft.Graph/Generated/Models/Security/Tag.cs index 58ce23fb471..2e57d40371a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Tag.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Tag.cs @@ -68,7 +68,7 @@ public DateTimeOffset? LastModifiedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -80,7 +80,7 @@ public DateTimeOffset? LastModifiedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs b/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs index 08f49de721c..2adb1660f0c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ThreatIntelligence.cs @@ -241,7 +241,7 @@ public List WhoisRecords { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"articleIndicators", n => { ArticleIndicators = n.GetCollectionOfObjectValues(ArticleIndicator.CreateFromDiscriminatorValue)?.ToList(); } }, {"articles", n => { Articles = n.GetCollectionOfObjectValues
(Article.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -265,7 +265,7 @@ public List WhoisRecords { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("articleIndicators", ArticleIndicators); diff --git a/src/Microsoft.Graph/Generated/Models/Security/TopicModelingSettings.cs b/src/Microsoft.Graph/Generated/Models/Security/TopicModelingSettings.cs index 0a343d71795..34d960a27ed 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/TopicModelingSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/TopicModelingSettings.cs @@ -66,7 +66,7 @@ public static TopicModelingSettings CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dynamicallyAdjustTopicCount", n => { DynamicallyAdjustTopicCount = n.GetBoolValue(); } }, {"ignoreNumbers", n => { IgnoreNumbers = n.GetBoolValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("dynamicallyAdjustTopicCount", DynamicallyAdjustTopicCount); writer.WriteBoolValue("ignoreNumbers", IgnoreNumbers); diff --git a/src/Microsoft.Graph/Generated/Models/Security/TriggerTypesRoot.cs b/src/Microsoft.Graph/Generated/Models/Security/TriggerTypesRoot.cs index 47334521db4..82ef5dd9613 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/TriggerTypesRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/TriggerTypesRoot.cs @@ -31,7 +31,7 @@ public List RetentionEventTypes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"retentionEventTypes", n => { RetentionEventTypes = n.GetCollectionOfObjectValues(RetentionEventType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List RetentionEventTypes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("retentionEventTypes", RetentionEventTypes); diff --git a/src/Microsoft.Graph/Generated/Models/Security/TriggersRoot.cs b/src/Microsoft.Graph/Generated/Models/Security/TriggersRoot.cs index 108be29d206..cbc48bb849d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/TriggersRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/TriggersRoot.cs @@ -31,7 +31,7 @@ public List RetentionEvents { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"retentionEvents", n => { RetentionEvents = n.GetCollectionOfObjectValues(RetentionEvent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List RetentionEvents { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("retentionEvents", RetentionEvents); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UnclassifiedArtifact.cs b/src/Microsoft.Graph/Generated/Models/Security/UnclassifiedArtifact.cs index fe379e29139..17c8b0c9e9c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UnclassifiedArtifact.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UnclassifiedArtifact.cs @@ -51,7 +51,7 @@ public UnclassifiedArtifact() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"kind", n => { Kind = n.GetStringValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public UnclassifiedArtifact() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("kind", Kind); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSource.cs b/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSource.cs index 7b8a5704247..5c396d743f6 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSource.cs @@ -42,7 +42,7 @@ public UnifiedGroupSource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"group", n => { Group = n.GetObjectValue(Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue); } }, {"includedSources", n => { IncludedSources = n.GetEnumValue(); } }, @@ -52,7 +52,7 @@ public UnifiedGroupSource() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("group", Group); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSourceCollectionResponse.cs index 73dba8273f4..850b078536a 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UnifiedGroupSourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedGroupSource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UrlEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/UrlEvidence.cs index 81fae8e8b8b..a9551c1fd6f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UrlEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UrlEvidence.cs @@ -37,7 +37,7 @@ public UrlEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"url", n => { Url = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public UrlEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("url", Url); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UserAccount.cs b/src/Microsoft.Graph/Generated/Models/Security/UserAccount.cs index 5ed8ec0cbd1..7005c241d62 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UserAccount.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UserAccount.cs @@ -26,7 +26,7 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("AdditionalData"); } set { BackingStore?.Set("AdditionalData", value); } } - /// The user object identifier in Azure Active Directory (Azure AD). + /// The user object identifier in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AzureAdUserId { @@ -42,7 +42,7 @@ public string AzureAdUserId { #endif /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The user display name in Azure AD. + /// The user display name in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -84,7 +84,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The user principal name of the account in Azure AD. + /// The user principal name of the account in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserPrincipalName { @@ -130,7 +130,7 @@ public static UserAccount CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accountName", n => { AccountName = n.GetStringValue(); } }, {"azureAdUserId", n => { AzureAdUserId = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("accountName", AccountName); writer.WriteStringValue("azureAdUserId", AzureAdUserId); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UserEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/UserEvidence.cs index 879e881f92b..cdce6c77936 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UserEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UserEvidence.cs @@ -37,7 +37,7 @@ public UserEvidence() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userAccount", n => { UserAccount = n.GetObjectValue(Microsoft.Graph.Models.Security.UserAccount.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public UserEvidence() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("userAccount", UserAccount); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UserSource.cs b/src/Microsoft.Graph/Generated/Models/Security/UserSource.cs index ade27d0ef1a..8002d44ee99 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UserSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UserSource.cs @@ -56,7 +56,7 @@ public UserSource() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"email", n => { Email = n.GetStringValue(); } }, {"includedSources", n => { IncludedSources = n.GetEnumValue(); } }, @@ -67,7 +67,7 @@ public UserSource() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("email", Email); diff --git a/src/Microsoft.Graph/Generated/Models/Security/UserSourceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/UserSourceCollectionResponse.cs index 2523306982f..228eed8bd1e 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/UserSourceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/UserSourceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserSource.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/VmMetadata.cs b/src/Microsoft.Graph/Generated/Models/Security/VmMetadata.cs index d005ea9bf95..14fb2446f74 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/VmMetadata.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/VmMetadata.cs @@ -93,7 +93,7 @@ public static VmMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cloudProvider", n => { CloudProvider = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("cloudProvider", CloudProvider); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Security/Vulnerability.cs b/src/Microsoft.Graph/Generated/Models/Security/Vulnerability.cs index 0715c847e85..32e6eb0d94c 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Vulnerability.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Vulnerability.cs @@ -183,7 +183,7 @@ public VulnerabilitySeverity? Severity { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeExploitsObserved", n => { ActiveExploitsObserved = n.GetBoolValue(); } }, {"articles", n => { Articles = n.GetCollectionOfObjectValues
(Article.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -208,7 +208,7 @@ public VulnerabilitySeverity? Severity { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("activeExploitsObserved", ActiveExploitsObserved); diff --git a/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityCollectionResponse.cs index c910cad7088..f13a78979dc 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Vulnerability.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponent.cs b/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponent.cs index 969580b241c..1661f015cf1 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponent.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponent.cs @@ -31,7 +31,7 @@ public string Name { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Name { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponentCollectionResponse.cs index 1651b852d43..748e21de2da 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/VulnerabilityComponentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(VulnerabilityComponent.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs index 4984ea675a7..4144077e27b 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisBaseRecord.cs @@ -229,7 +229,7 @@ public WhoisContact Zone { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"abuse", n => { Abuse = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, {"admin", n => { Admin = n.GetObjectValue(WhoisContact.CreateFromDiscriminatorValue); } }, @@ -255,7 +255,7 @@ public WhoisContact Zone { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("abuse", Abuse); diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs index facb3317e4e..4d746d44d88 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisContact.cs @@ -130,7 +130,7 @@ public static WhoisContact CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetObjectValue(Microsoft.Graph.Models.PhysicalAddress.CreateFromDiscriminatorValue); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("address", Address); writer.WriteStringValue("email", Email); diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs index ff05632e099..83fc6c4d903 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecord.cs @@ -23,7 +23,7 @@ public WhoisHistoryRecord() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public WhoisHistoryRecord() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs index c55ebbe0089..89b0bfe6044 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisHistoryRecordCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WhoisHistoryRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs index 0e807b808cb..2d027fec7f4 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisNameserver.cs @@ -70,7 +70,7 @@ public static WhoisNameserver CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"firstSeenDateTime", n => { FirstSeenDateTime = n.GetDateTimeOffsetValue(); } }, {"host", n => { Host = n.GetObjectValue(Microsoft.Graph.Models.Security.Host.CreateFromDiscriminatorValue); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("firstSeenDateTime", FirstSeenDateTime); writer.WriteObjectValue("host", Host); diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs index f8cadc99a2d..a4f8ba1a917 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecord.cs @@ -37,7 +37,7 @@ public WhoisRecord() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"history", n => { History = n.GetCollectionOfObjectValues(WhoisHistoryRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public WhoisRecord() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("history", History); diff --git a/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs index 247ba54f377..a63b62cbafb 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/WhoisRecordCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WhoisRecord.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SecurityReportsRoot.cs b/src/Microsoft.Graph/Generated/Models/SecurityReportsRoot.cs index 240bb4f440e..6f4f4c0de3d 100644 --- a/src/Microsoft.Graph/Generated/Models/SecurityReportsRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/SecurityReportsRoot.cs @@ -17,7 +17,7 @@ public class SecurityReportsRoot : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class SecurityReportsRoot : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/SecurityResource.cs b/src/Microsoft.Graph/Generated/Models/SecurityResource.cs index 2a0dfea7ec8..f29e9ea93d8 100644 --- a/src/Microsoft.Graph/Generated/Models/SecurityResource.cs +++ b/src/Microsoft.Graph/Generated/Models/SecurityResource.cs @@ -65,7 +65,7 @@ public static SecurityResource CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resource", n => { Resource = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("resource", Resource); diff --git a/src/Microsoft.Graph/Generated/Models/SecurityVendorInformation.cs b/src/Microsoft.Graph/Generated/Models/SecurityVendorInformation.cs index f1e2fadef61..de54bd86722 100644 --- a/src/Microsoft.Graph/Generated/Models/SecurityVendorInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/SecurityVendorInformation.cs @@ -102,7 +102,7 @@ public static SecurityVendorInformation CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"provider", n => { Provider = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("provider", Provider); diff --git a/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs b/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs index b2836e41df5..0ec4260b28a 100644 --- a/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/SelfServiceSignUpAuthenticationFlowConfiguration.cs @@ -51,7 +51,7 @@ public static SelfServiceSignUpAuthenticationFlowConfiguration CreateFromDiscrim /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isEnabled", IsEnabled); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SelfSignedCertificate.cs b/src/Microsoft.Graph/Generated/Models/SelfSignedCertificate.cs index d2d941c080b..b4ddd866bb6 100644 --- a/src/Microsoft.Graph/Generated/Models/SelfSignedCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/SelfSignedCertificate.cs @@ -145,7 +145,7 @@ public static SelfSignedCertificate CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"customKeyIdentifier", n => { CustomKeyIdentifier = n.GetByteArrayValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -163,7 +163,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("customKeyIdentifier", CustomKeyIdentifier); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/SensitivityLabelAssignment.cs b/src/Microsoft.Graph/Generated/Models/SensitivityLabelAssignment.cs index f5dd19ad000..25473a2007b 100644 --- a/src/Microsoft.Graph/Generated/Models/SensitivityLabelAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/SensitivityLabelAssignment.cs @@ -79,7 +79,7 @@ public static SensitivityLabelAssignment CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignmentMethod", n => { AssignmentMethod = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("assignmentMethod", AssignmentMethod); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncement.cs b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncement.cs index 3c306c953bc..8d0d84b73a0 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncement.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncement.cs @@ -59,7 +59,7 @@ public List Messages { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"healthOverviews", n => { HealthOverviews = n.GetCollectionOfObjectValues(ServiceHealth.CreateFromDiscriminatorValue)?.ToList(); } }, {"issues", n => { Issues = n.GetCollectionOfObjectValues(ServiceHealthIssue.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public List Messages { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("healthOverviews", HealthOverviews); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachment.cs b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachment.cs index 2ba6c4098b1..c7ca00bf57e 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachment.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachment.cs @@ -69,7 +69,7 @@ public int? Size { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetByteArrayValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public int? Size { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachmentCollectionResponse.cs index 6ce9f91d0af..483fa96a9f7 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementAttachmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServiceAnnouncementAttachment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementBase.cs b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementBase.cs index 48f9606b181..5e621a5cfcf 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementBase.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceAnnouncementBase.cs @@ -65,7 +65,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"details", n => { Details = n.GetCollectionOfObjectValues(KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -78,7 +78,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("details", Details); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHealth.cs b/src/Microsoft.Graph/Generated/Models/ServiceHealth.cs index d26e320f076..a950d5f19c0 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHealth.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHealth.cs @@ -50,7 +50,7 @@ public ServiceHealthStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"issues", n => { Issues = n.GetCollectionOfObjectValues(ServiceHealthIssue.CreateFromDiscriminatorValue)?.ToList(); } }, {"service", n => { Service = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public ServiceHealthStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("issues", Issues); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHealthCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceHealthCollectionResponse.cs index 44e9d034e6d..412787fcf1e 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHealthCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHealthCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServiceHealth.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssue.cs b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssue.cs index cc39d2e9068..28cbeda1865 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssue.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssue.cs @@ -113,7 +113,7 @@ public ServiceHealthIssue() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"classification", n => { Classification = n.GetEnumValue(); } }, {"feature", n => { Feature = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public ServiceHealthIssue() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("classification", Classification); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs index 7940b24fb20..da1196a6ac6 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssueCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServiceHealthIssue.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssuePost.cs b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssuePost.cs index 5c1c5d09059..fa3972e5f21 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHealthIssuePost.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHealthIssuePost.cs @@ -70,7 +70,7 @@ public static ServiceHealthIssuePost CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceHostedMediaConfig.cs b/src/Microsoft.Graph/Generated/Models/ServiceHostedMediaConfig.cs index 867a41f52c8..b0b1a860930 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceHostedMediaConfig.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceHostedMediaConfig.cs @@ -37,7 +37,7 @@ public ServiceHostedMediaConfig() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"preFetchMedia", n => { PreFetchMedia = n.GetCollectionOfObjectValues(MediaInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public ServiceHostedMediaConfig() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("preFetchMedia", PreFetchMedia); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePlanInfo.cs b/src/Microsoft.Graph/Generated/Models/ServicePlanInfo.cs index 4c0ab01c64a..64bd9872667 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePlanInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePlanInfo.cs @@ -93,7 +93,7 @@ public static ServicePlanInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"appliesTo", n => { AppliesTo = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("appliesTo", AppliesTo); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs index 37edd14c7b7..095e2f59954 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs @@ -315,7 +315,7 @@ public List HomeRealmDiscoveryPolicies { set { BackingStore?.Set("homeRealmDiscoveryPolicies", value); } } #endif - /// Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). + /// Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public InformationalUrl? Info { @@ -343,7 +343,7 @@ public List KeyCredentials { set { BackingStore?.Set("keyCredentials", value); } } #endif - /// Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL. + /// Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LoginUrl { @@ -399,7 +399,7 @@ public string Notes { set { BackingStore?.Set("notes", value); } } #endif - /// Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications. + /// Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? NotificationEmailAddresses { @@ -483,7 +483,7 @@ public List PasswordCredentials { set { BackingStore?.Set("passwordCredentials", value); } } #endif - /// Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, notSupported, and oidc. + /// Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PreferredSingleSignOnMode { @@ -510,6 +510,20 @@ public string PreferredTokenSigningKeyThumbprint { get { return BackingStore?.Get("preferredTokenSigningKeyThumbprint"); } set { BackingStore?.Set("preferredTokenSigningKeyThumbprint", value); } } +#endif + /// The remoteDesktopSecurityConfiguration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration? RemoteDesktopSecurityConfiguration { + get { return BackingStore?.Get("remoteDesktopSecurityConfiguration"); } + set { BackingStore?.Set("remoteDesktopSecurityConfiguration", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration RemoteDesktopSecurityConfiguration { + get { return BackingStore?.Get("remoteDesktopSecurityConfiguration"); } + set { BackingStore?.Set("remoteDesktopSecurityConfiguration", value); } + } #endif /// The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -553,7 +567,7 @@ public Microsoft.Graph.Models.SamlSingleSignOnSettings SamlSingleSignOnSettings set { BackingStore?.Set("samlSingleSignOnSettings", value); } } #endif - /// Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + /// Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, not, ge, le, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ServicePrincipalNames { @@ -567,7 +581,7 @@ public List ServicePrincipalNames { set { BackingStore?.Set("servicePrincipalNames", value); } } #endif - /// Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Azure AD internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. + /// Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens are not issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but cannot be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. Legacy service principal can have credentials, service principal names, reply URLs, and other properties which are editable by an authorized user, but does not have an associated app registration. The appId value does not associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ServicePrincipalType { @@ -581,7 +595,7 @@ public string ServicePrincipalType { set { BackingStore?.Set("servicePrincipalType", value); } } #endif - /// Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Azure AD tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Azure AD tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Azure AD tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. + /// Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multi-tenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SignInAudience { @@ -595,7 +609,7 @@ public string SignInAudience { set { BackingStore?.Set("signInAudience", value); } } #endif - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.Synchronization? Synchronization { @@ -623,7 +637,7 @@ public List Tags { set { BackingStore?.Set("tags", value); } } #endif - /// Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. + /// Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. public Guid? TokenEncryptionKeyId { get { return BackingStore?.Get("tokenEncryptionKeyId"); } set { BackingStore?.Set("tokenEncryptionKeyId", value); } @@ -701,7 +715,7 @@ public ServicePrincipal() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountEnabled", n => { AccountEnabled = n.GetBoolValue(); } }, {"addIns", n => { AddIns = n.GetCollectionOfObjectValues(AddIn.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -741,6 +755,7 @@ public ServicePrincipal() : base() { {"passwordCredentials", n => { PasswordCredentials = n.GetCollectionOfObjectValues(PasswordCredential.CreateFromDiscriminatorValue)?.ToList(); } }, {"preferredSingleSignOnMode", n => { PreferredSingleSignOnMode = n.GetStringValue(); } }, {"preferredTokenSigningKeyThumbprint", n => { PreferredTokenSigningKeyThumbprint = n.GetStringValue(); } }, + {"remoteDesktopSecurityConfiguration", n => { RemoteDesktopSecurityConfiguration = n.GetObjectValue(Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration.CreateFromDiscriminatorValue); } }, {"replyUrls", n => { ReplyUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"resourceSpecificApplicationPermissions", n => { ResourceSpecificApplicationPermissions = n.GetCollectionOfObjectValues(ResourceSpecificPermission.CreateFromDiscriminatorValue)?.ToList(); } }, {"samlSingleSignOnSettings", n => { SamlSingleSignOnSettings = n.GetObjectValue(Microsoft.Graph.Models.SamlSingleSignOnSettings.CreateFromDiscriminatorValue); } }, @@ -760,7 +775,7 @@ public ServicePrincipal() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("accountEnabled", AccountEnabled); @@ -801,6 +816,7 @@ public ServicePrincipal() : base() { writer.WriteCollectionOfObjectValues("passwordCredentials", PasswordCredentials); writer.WriteStringValue("preferredSingleSignOnMode", PreferredSingleSignOnMode); writer.WriteStringValue("preferredTokenSigningKeyThumbprint", PreferredTokenSigningKeyThumbprint); + writer.WriteObjectValue("remoteDesktopSecurityConfiguration", RemoteDesktopSecurityConfiguration); writer.WriteCollectionOfPrimitiveValues("replyUrls", ReplyUrls); writer.WriteCollectionOfObjectValues("resourceSpecificApplicationPermissions", ResourceSpecificApplicationPermissions); writer.WriteObjectValue("samlSingleSignOnSettings", SamlSingleSignOnSettings); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs index 60b33f5c5ab..4b6173f0d1a 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipalCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServicePrincipal.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipalIdentity.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipalIdentity.cs index be622fc3732..1b5a219531f 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipalIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipalIdentity.cs @@ -37,7 +37,7 @@ public ServicePrincipalIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appId", n => { AppId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public ServicePrincipalIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appId", AppId); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipalLockConfiguration.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipalLockConfiguration.cs index afe3d034043..4b12f314f8e 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipalLockConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipalLockConfiguration.cs @@ -71,7 +71,7 @@ public static ServicePrincipalLockConfiguration CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allProperties", n => { AllProperties = n.GetBoolValue(); } }, {"credentialsWithUsageSign", n => { CredentialsWithUsageSign = n.GetBoolValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allProperties", AllProperties); writer.WriteBoolValue("credentialsWithUsageSign", CredentialsWithUsageSign); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetection.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetection.cs index 2bae883e53e..e13b0ab9efd 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetection.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetection.cs @@ -216,7 +216,7 @@ public Microsoft.Graph.Models.TokenIssuerType? TokenIssuerType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetEnumValue(); } }, {"activityDateTime", n => { ActivityDateTime = n.GetDateTimeOffsetValue(); } }, @@ -244,7 +244,7 @@ public Microsoft.Graph.Models.TokenIssuerType? TokenIssuerType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("activity", Activity); diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetectionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetectionCollectionResponse.cs index b52cf8d2ee8..5013e35f27b 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetectionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipalRiskDetectionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServicePrincipalRiskDetection.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningError.cs b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningError.cs index e01578a3511..5f51103e7c9 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningError.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningError.cs @@ -74,7 +74,7 @@ public static ServiceProvisioningError CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"isResolved", n => { IsResolved = n.GetBoolValue(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteBoolValue("isResolved", IsResolved); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs index 68950fb7037..6db869dd273 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningErrorCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServiceProvisioningError.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningXmlError.cs b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningXmlError.cs index ee87c6a6e32..aea6e5a5dca 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceProvisioningXmlError.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceProvisioningXmlError.cs @@ -37,7 +37,7 @@ public ServiceProvisioningXmlError() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"errorDetail", n => { ErrorDetail = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public ServiceProvisioningXmlError() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("errorDetail", ErrorDetail); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessage.cs b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessage.cs index be3a778887f..68025421bd0 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessage.cs @@ -132,7 +132,7 @@ public ServiceUpdateMessage() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actionRequiredByDateTime", n => { ActionRequiredByDateTime = n.GetDateTimeOffsetValue(); } }, {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(ServiceAnnouncementAttachment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -151,7 +151,7 @@ public ServiceUpdateMessage() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("actionRequiredByDateTime", ActionRequiredByDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs index b3fba8e804a..b067710d29a 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServiceUpdateMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageViewpoint.cs b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageViewpoint.cs index 7b68b6107ca..87cfa09b364 100644 --- a/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageViewpoint.cs +++ b/src/Microsoft.Graph/Generated/Models/ServiceUpdateMessageViewpoint.cs @@ -61,7 +61,7 @@ public static ServiceUpdateMessageViewpoint CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isArchived", n => { IsArchived = n.GetBoolValue(); } }, {"isFavorited", n => { IsFavorited = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isArchived", IsArchived); writer.WriteBoolValue("isFavorited", IsFavorited); diff --git a/src/Microsoft.Graph/Generated/Models/SettingSource.cs b/src/Microsoft.Graph/Generated/Models/SettingSource.cs index d3eb70199d5..fa2c3248ff2 100644 --- a/src/Microsoft.Graph/Generated/Models/SettingSource.cs +++ b/src/Microsoft.Graph/Generated/Models/SettingSource.cs @@ -79,7 +79,7 @@ public static SettingSource CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummary.cs b/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummary.cs index 75962a21ac8..d4deeb0cfa6 100644 --- a/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummary.cs @@ -83,7 +83,7 @@ public int? UnknownDeviceCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"compliantDeviceCount", n => { CompliantDeviceCount = n.GetIntValue(); } }, {"conflictDeviceCount", n => { ConflictDeviceCount = n.GetIntValue(); } }, @@ -100,7 +100,7 @@ public int? UnknownDeviceCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("compliantDeviceCount", CompliantDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummaryCollectionResponse.cs index 2ee0b4cc23d..dd57472f1f9 100644 --- a/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SettingStateDeviceSummaryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SettingStateDeviceSummary.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SettingTemplateValue.cs b/src/Microsoft.Graph/Generated/Models/SettingTemplateValue.cs index 8c8ca281865..d31ed70e3eb 100644 --- a/src/Microsoft.Graph/Generated/Models/SettingTemplateValue.cs +++ b/src/Microsoft.Graph/Generated/Models/SettingTemplateValue.cs @@ -102,7 +102,7 @@ public static SettingTemplateValue CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"defaultValue", n => { DefaultValue = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("defaultValue", DefaultValue); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/SettingValue.cs b/src/Microsoft.Graph/Generated/Models/SettingValue.cs index b1389e39656..d6c58618134 100644 --- a/src/Microsoft.Graph/Generated/Models/SettingValue.cs +++ b/src/Microsoft.Graph/Generated/Models/SettingValue.cs @@ -74,7 +74,7 @@ public static SettingValue CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SharePointIdentity.cs b/src/Microsoft.Graph/Generated/Models/SharePointIdentity.cs index b0812ef9057..98f6fc1d478 100644 --- a/src/Microsoft.Graph/Generated/Models/SharePointIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/SharePointIdentity.cs @@ -37,7 +37,7 @@ public SharePointIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"loginName", n => { LoginName = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public SharePointIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("loginName", LoginName); diff --git a/src/Microsoft.Graph/Generated/Models/SharePointIdentitySet.cs b/src/Microsoft.Graph/Generated/Models/SharePointIdentitySet.cs index be47163c77d..3296acd6a01 100644 --- a/src/Microsoft.Graph/Generated/Models/SharePointIdentitySet.cs +++ b/src/Microsoft.Graph/Generated/Models/SharePointIdentitySet.cs @@ -65,7 +65,7 @@ public SharePointIdentitySet() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"group", n => { Group = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"siteGroup", n => { SiteGroup = n.GetObjectValue(SharePointIdentity.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public SharePointIdentitySet() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("group", Group); diff --git a/src/Microsoft.Graph/Generated/Models/SharePointOneDriveOptions.cs b/src/Microsoft.Graph/Generated/Models/SharePointOneDriveOptions.cs index 5c22dad33a2..918be27c026 100644 --- a/src/Microsoft.Graph/Generated/Models/SharePointOneDriveOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/SharePointOneDriveOptions.cs @@ -51,7 +51,7 @@ public static SharePointOneDriveOptions CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"includeContent", n => { IncludeContent = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("includeContent", IncludeContent); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Shared.cs b/src/Microsoft.Graph/Generated/Models/Shared.cs index 0d95793058b..570842d917e 100644 --- a/src/Microsoft.Graph/Generated/Models/Shared.cs +++ b/src/Microsoft.Graph/Generated/Models/Shared.cs @@ -93,7 +93,7 @@ public static Shared CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"owner", n => { Owner = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("owner", Owner); diff --git a/src/Microsoft.Graph/Generated/Models/SharedDriveItem.cs b/src/Microsoft.Graph/Generated/Models/SharedDriveItem.cs index bffc97b7ea5..68eb0196d73 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedDriveItem.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedDriveItem.cs @@ -135,7 +135,7 @@ public SharedDriveItem() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"driveItem", n => { DriveItem = n.GetObjectValue(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue); } }, {"items", n => { Items = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -151,7 +151,7 @@ public SharedDriveItem() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("driveItem", DriveItem); diff --git a/src/Microsoft.Graph/Generated/Models/SharedDriveItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SharedDriveItemCollectionResponse.cs index 84c049020c1..d9b4d5ee4de 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedDriveItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedDriveItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SharedDriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SharedInsight.cs b/src/Microsoft.Graph/Generated/Models/SharedInsight.cs index f846fbce381..e1c68d22c35 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedInsight.cs @@ -101,7 +101,7 @@ public List SharingHistory { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lastShared", n => { LastShared = n.GetObjectValue(SharingDetail.CreateFromDiscriminatorValue); } }, {"lastSharedMethod", n => { LastSharedMethod = n.GetObjectValue(Entity.CreateFromDiscriminatorValue); } }, @@ -115,7 +115,7 @@ public List SharingHistory { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("lastShared", LastShared); diff --git a/src/Microsoft.Graph/Generated/Models/SharedInsightCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SharedInsightCollectionResponse.cs index de6e442b11a..8ca2d812b6e 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedInsightCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedInsightCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SharedInsight.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SharedPCAccountManagerPolicy.cs b/src/Microsoft.Graph/Generated/Models/SharedPCAccountManagerPolicy.cs index e5b7e27c5ca..56be13c6938 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedPCAccountManagerPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedPCAccountManagerPolicy.cs @@ -69,7 +69,7 @@ public static SharedPCAccountManagerPolicy CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"accountDeletionPolicy", n => { AccountDeletionPolicy = n.GetEnumValue(); } }, {"cacheAccountsAboveDiskFreePercentage", n => { CacheAccountsAboveDiskFreePercentage = n.GetIntValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("accountDeletionPolicy", AccountDeletionPolicy); writer.WriteIntValue("cacheAccountsAboveDiskFreePercentage", CacheAccountsAboveDiskFreePercentage); diff --git a/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs b/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs index e2b4c8e19d7..bdda78626a8 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedPCConfiguration.cs @@ -114,7 +114,7 @@ public SharedPCConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountManagerPolicy", n => { AccountManagerPolicy = n.GetObjectValue(SharedPCAccountManagerPolicy.CreateFromDiscriminatorValue); } }, {"allowLocalStorage", n => { AllowLocalStorage = n.GetBoolValue(); } }, @@ -134,7 +134,7 @@ public SharedPCConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("accountManagerPolicy", AccountManagerPolicy); diff --git a/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfo.cs b/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfo.cs index 6b6c3ccaf98..223c1aba956 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfo.cs @@ -36,7 +36,7 @@ public bool? IsHostTeam { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedMembers", n => { AllowedMembers = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, {"isHostTeam", n => { IsHostTeam = n.GetBoolValue(); } }, @@ -46,7 +46,7 @@ public bool? IsHostTeam { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("allowedMembers", AllowedMembers); diff --git a/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfoCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfoCollectionResponse.cs index 989f436dc20..dbf18d0a9cb 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfoCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedWithChannelTeamInfoCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SharedWithChannelTeamInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Sharepoint.cs b/src/Microsoft.Graph/Generated/Models/Sharepoint.cs index 7de6dc56ffd..623819b2c3b 100644 --- a/src/Microsoft.Graph/Generated/Models/Sharepoint.cs +++ b/src/Microsoft.Graph/Generated/Models/Sharepoint.cs @@ -31,7 +31,7 @@ public SharepointSettings Settings { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"settings", n => { Settings = n.GetObjectValue(SharepointSettings.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public SharepointSettings Settings { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("settings", Settings); diff --git a/src/Microsoft.Graph/Generated/Models/SharepointIds.cs b/src/Microsoft.Graph/Generated/Models/SharepointIds.cs index aa1f69da3fd..3fe9044841a 100644 --- a/src/Microsoft.Graph/Generated/Models/SharepointIds.cs +++ b/src/Microsoft.Graph/Generated/Models/SharepointIds.cs @@ -144,7 +144,7 @@ public static SharepointIds CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"listId", n => { ListId = n.GetStringValue(); } }, {"listItemId", n => { ListItemId = n.GetStringValue(); } }, @@ -160,7 +160,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("listId", ListId); writer.WriteStringValue("listItemId", ListItemId); diff --git a/src/Microsoft.Graph/Generated/Models/SharepointSettings.cs b/src/Microsoft.Graph/Generated/Models/SharepointSettings.cs index c67c9de3003..7bc8886cb95 100644 --- a/src/Microsoft.Graph/Generated/Models/SharepointSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/SharepointSettings.cs @@ -234,7 +234,7 @@ public string TenantDefaultTimezone { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowedDomainGuidsForSyncApp", n => { AllowedDomainGuidsForSyncApp = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"availableManagedPathsForSiteCreation", n => { AvailableManagedPathsForSiteCreation = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -271,7 +271,7 @@ public string TenantDefaultTimezone { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("allowedDomainGuidsForSyncApp", AllowedDomainGuidsForSyncApp); diff --git a/src/Microsoft.Graph/Generated/Models/SharingDetail.cs b/src/Microsoft.Graph/Generated/Models/SharingDetail.cs index 278e3aa3546..8f20e55f95a 100644 --- a/src/Microsoft.Graph/Generated/Models/SharingDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/SharingDetail.cs @@ -107,7 +107,7 @@ public static SharingDetail CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"sharedBy", n => { SharedBy = n.GetObjectValue(InsightIdentity.CreateFromDiscriminatorValue); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("sharedBy", SharedBy); diff --git a/src/Microsoft.Graph/Generated/Models/SharingInvitation.cs b/src/Microsoft.Graph/Generated/Models/SharingInvitation.cs index d8e7da37f4f..08e3f776885 100644 --- a/src/Microsoft.Graph/Generated/Models/SharingInvitation.cs +++ b/src/Microsoft.Graph/Generated/Models/SharingInvitation.cs @@ -93,7 +93,7 @@ public static SharingInvitation CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"email", n => { Email = n.GetStringValue(); } }, {"invitedBy", n => { InvitedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email", Email); writer.WriteObjectValue("invitedBy", InvitedBy); diff --git a/src/Microsoft.Graph/Generated/Models/SharingLink.cs b/src/Microsoft.Graph/Generated/Models/SharingLink.cs index a4f33f53b37..7657d11ebe3 100644 --- a/src/Microsoft.Graph/Generated/Models/SharingLink.cs +++ b/src/Microsoft.Graph/Generated/Models/SharingLink.cs @@ -121,7 +121,7 @@ public static SharingLink CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"application", n => { Application = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("application", Application); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Shift.cs b/src/Microsoft.Graph/Generated/Models/Shift.cs index 0987129e041..bab138b0314 100644 --- a/src/Microsoft.Graph/Generated/Models/Shift.cs +++ b/src/Microsoft.Graph/Generated/Models/Shift.cs @@ -79,7 +79,7 @@ public Shift() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"draftShift", n => { DraftShift = n.GetObjectValue(ShiftItem.CreateFromDiscriminatorValue); } }, {"schedulingGroupId", n => { SchedulingGroupId = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public Shift() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("draftShift", DraftShift); diff --git a/src/Microsoft.Graph/Generated/Models/ShiftActivity.cs b/src/Microsoft.Graph/Generated/Models/ShiftActivity.cs index e803b8f5d40..af19e8eec51 100644 --- a/src/Microsoft.Graph/Generated/Models/ShiftActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/ShiftActivity.cs @@ -94,7 +94,7 @@ public static ShiftActivity CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -109,7 +109,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/ShiftAvailability.cs b/src/Microsoft.Graph/Generated/Models/ShiftAvailability.cs index b58534089e4..cda730c1903 100644 --- a/src/Microsoft.Graph/Generated/Models/ShiftAvailability.cs +++ b/src/Microsoft.Graph/Generated/Models/ShiftAvailability.cs @@ -88,7 +88,7 @@ public static ShiftAvailability CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"recurrence", n => { Recurrence = n.GetObjectValue(PatternedRecurrence.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("recurrence", Recurrence); diff --git a/src/Microsoft.Graph/Generated/Models/ShiftCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ShiftCollectionResponse.cs index 76dae275460..b762a6398e6 100644 --- a/src/Microsoft.Graph/Generated/Models/ShiftCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ShiftCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Shift.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ShiftItem.cs b/src/Microsoft.Graph/Generated/Models/ShiftItem.cs index 85a6adc5973..72129c87ac1 100644 --- a/src/Microsoft.Graph/Generated/Models/ShiftItem.cs +++ b/src/Microsoft.Graph/Generated/Models/ShiftItem.cs @@ -63,7 +63,7 @@ public string Notes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activities", n => { Activities = n.GetCollectionOfObjectValues(ShiftActivity.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -74,7 +74,7 @@ public string Notes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("activities", Activities); diff --git a/src/Microsoft.Graph/Generated/Models/ShiftPreferences.cs b/src/Microsoft.Graph/Generated/Models/ShiftPreferences.cs index b02769827b7..aec8d2e5ae1 100644 --- a/src/Microsoft.Graph/Generated/Models/ShiftPreferences.cs +++ b/src/Microsoft.Graph/Generated/Models/ShiftPreferences.cs @@ -37,7 +37,7 @@ public ShiftPreferences() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"availability", n => { Availability = n.GetCollectionOfObjectValues(ShiftAvailability.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public ShiftPreferences() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Models/SignIn.cs b/src/Microsoft.Graph/Generated/Models/SignIn.cs index 4f2ebd74d16..1175a84328e 100644 --- a/src/Microsoft.Graph/Generated/Models/SignIn.cs +++ b/src/Microsoft.Graph/Generated/Models/SignIn.cs @@ -20,7 +20,7 @@ public string AppDisplayName { set { BackingStore?.Set("appDisplayName", value); } } #endif - /// Unique GUID representing the app ID in the Azure Active Directory. Supports $filter (eq). + /// Unique GUID representing the app ID in the Microsoft Entra ID. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AppId { @@ -161,7 +161,7 @@ public string ResourceId { set { BackingStore?.Set("resourceId", value); } } #endif - /// Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require an Azure AD Premium P2 license. Other licenses return the value hidden. + /// Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Supports $filter (eq).Note: Details for this property require a Microsoft Entra ID P2 license. Other licenses return the value hidden. public Microsoft.Graph.Models.RiskDetail? RiskDetail { get { return BackingStore?.Get("riskDetail"); } set { BackingStore?.Set("riskDetail", value); } @@ -194,12 +194,12 @@ public List RiskEventTypesV2 { set { BackingStore?.Set("riskEventTypes_v2", value); } } #endif - /// Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + /// Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. public RiskLevel? RiskLevelAggregated { get { return BackingStore?.Get("riskLevelAggregated"); } set { BackingStore?.Set("riskLevelAggregated", value); } } - /// Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers are returned hidden. + /// Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. public RiskLevel? RiskLevelDuringSignIn { get { return BackingStore?.Get("riskLevelDuringSignIn"); } set { BackingStore?.Set("riskLevelDuringSignIn", value); } @@ -276,7 +276,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, @@ -307,7 +307,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appDisplayName", AppDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/SignInActivity.cs b/src/Microsoft.Graph/Generated/Models/SignInActivity.cs index d5d0e7cc57a..72135a94cc3 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInActivity.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Azure AD maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. + /// The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. public DateTimeOffset? LastNonInteractiveSignInDateTime { get { return BackingStore?.Get("lastNonInteractiveSignInDateTime"); } set { BackingStore?.Set("lastNonInteractiveSignInDateTime", value); } @@ -33,7 +33,7 @@ public string LastNonInteractiveSignInRequestId { set { BackingStore?.Set("lastNonInteractiveSignInRequestId", value); } } #endif - /// The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Azure AD maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. + /// The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. public DateTimeOffset? LastSignInDateTime { get { return BackingStore?.Get("lastSignInDateTime"); } set { BackingStore?.Set("lastSignInDateTime", value); } @@ -84,7 +84,7 @@ public static SignInActivity CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastNonInteractiveSignInDateTime", n => { LastNonInteractiveSignInDateTime = n.GetDateTimeOffsetValue(); } }, {"lastNonInteractiveSignInRequestId", n => { LastNonInteractiveSignInRequestId = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastNonInteractiveSignInDateTime", LastNonInteractiveSignInDateTime); writer.WriteStringValue("lastNonInteractiveSignInRequestId", LastNonInteractiveSignInRequestId); diff --git a/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs index fe0b6d1bb90..8622328228a 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SignIn.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SignInFrequencySessionControl.cs b/src/Microsoft.Graph/Generated/Models/SignInFrequencySessionControl.cs index fc7e7ea775c..7b7480d351a 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInFrequencySessionControl.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInFrequencySessionControl.cs @@ -43,7 +43,7 @@ public SignInFrequencySessionControl() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationType", n => { AuthenticationType = n.GetEnumValue(); } }, {"frequencyInterval", n => { FrequencyInterval = n.GetEnumValue(); } }, @@ -55,7 +55,7 @@ public SignInFrequencySessionControl() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("authenticationType", AuthenticationType); diff --git a/src/Microsoft.Graph/Generated/Models/SignInLocation.cs b/src/Microsoft.Graph/Generated/Models/SignInLocation.cs index 3d9b05e4160..28ed793534f 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInLocation.cs @@ -102,7 +102,7 @@ public static SignInLocation CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"city", n => { City = n.GetStringValue(); } }, {"countryOrRegion", n => { CountryOrRegion = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("city", City); writer.WriteStringValue("countryOrRegion", CountryOrRegion); diff --git a/src/Microsoft.Graph/Generated/Models/SignInStatus.cs b/src/Microsoft.Graph/Generated/Models/SignInStatus.cs index 0c91cb2ff30..3031a5cf63c 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInStatus.cs @@ -79,7 +79,7 @@ public static SignInStatus CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"additionalDetails", n => { AdditionalDetails = n.GetStringValue(); } }, {"errorCode", n => { ErrorCode = n.GetIntValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("additionalDetails", AdditionalDetails); writer.WriteIntValue("errorCode", ErrorCode); diff --git a/src/Microsoft.Graph/Generated/Models/SigningCertificateUpdateStatus.cs b/src/Microsoft.Graph/Generated/Models/SigningCertificateUpdateStatus.cs index 2641a68b7cd..b804d2f3d8e 100644 --- a/src/Microsoft.Graph/Generated/Models/SigningCertificateUpdateStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SigningCertificateUpdateStatus.cs @@ -65,7 +65,7 @@ public static SigningCertificateUpdateStatus CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificateUpdateResult", n => { CertificateUpdateResult = n.GetStringValue(); } }, {"lastRunDateTime", n => { LastRunDateTime = n.GetDateTimeOffsetValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("certificateUpdateResult", CertificateUpdateResult); writer.WriteDateTimeOffsetValue("lastRunDateTime", LastRunDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/Simulation.cs b/src/Microsoft.Graph/Generated/Models/Simulation.cs index 44a6d08023d..5e759ea31eb 100644 --- a/src/Microsoft.Graph/Generated/Models/Simulation.cs +++ b/src/Microsoft.Graph/Generated/Models/Simulation.cs @@ -263,7 +263,7 @@ public Microsoft.Graph.Models.TrainingSetting TrainingSetting { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attackTechnique", n => { AttackTechnique = n.GetEnumValue(); } }, {"attackType", n => { AttackType = n.GetEnumValue(); } }, @@ -295,7 +295,7 @@ public Microsoft.Graph.Models.TrainingSetting TrainingSetting { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("attackTechnique", AttackTechnique); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs index 52c2b4a5463..6be80fd11cc 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomation.cs @@ -112,7 +112,7 @@ public SimulationAutomationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -130,7 +130,7 @@ public SimulationAutomationStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("createdBy", CreatedBy); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomationCollectionResponse.cs index 5913864654e..1b121a44c39 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SimulationAutomation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs index 0ad47fe2c43..edaa2e37fdd 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRun.cs @@ -46,7 +46,7 @@ public SimulationAutomationRunStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"simulationId", n => { SimulationId = n.GetStringValue(); } }, @@ -58,7 +58,7 @@ public SimulationAutomationRunStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunCollectionResponse.cs index 1a619c69676..f9d95dc81fa 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationAutomationRunCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SimulationAutomationRun.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SimulationCollectionResponse.cs index f310c4ab15b..a508e3afdc9 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Simulation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationEvent.cs b/src/Microsoft.Graph/Generated/Models/SimulationEvent.cs index 8aef446b2ec..de6499ea08a 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationEvent.cs @@ -65,7 +65,7 @@ public static SimulationEvent CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"count", n => { Count = n.GetIntValue(); } }, {"eventName", n => { EventName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteStringValue("eventName", EventName); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationEventsContent.cs b/src/Microsoft.Graph/Generated/Models/SimulationEventsContent.cs index d61e29c0527..ea697873650 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationEventsContent.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationEventsContent.cs @@ -65,7 +65,7 @@ public static SimulationEventsContent CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"compromisedRate", n => { CompromisedRate = n.GetDoubleValue(); } }, {"events", n => { Events = n.GetCollectionOfObjectValues(SimulationEvent.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("compromisedRate", CompromisedRate); writer.WriteCollectionOfObjectValues("events", Events); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs b/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs index 7ca6a6f5211..6c13045cb5f 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationNotification.cs @@ -28,7 +28,7 @@ public SimulationNotification() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"targettedUserType", n => { TargettedUserType = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public SimulationNotification() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("targettedUserType", TargettedUserType); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationReport.cs b/src/Microsoft.Graph/Generated/Models/SimulationReport.cs index 9e108849f78..479e40d06f8 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationReport.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationReport.cs @@ -74,7 +74,7 @@ public static SimulationReport CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"overview", n => { Overview = n.GetObjectValue(SimulationReportOverview.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("overview", Overview); diff --git a/src/Microsoft.Graph/Generated/Models/SimulationReportOverview.cs b/src/Microsoft.Graph/Generated/Models/SimulationReportOverview.cs index ad0e51faca5..fe4e15e6716 100644 --- a/src/Microsoft.Graph/Generated/Models/SimulationReportOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/SimulationReportOverview.cs @@ -93,7 +93,7 @@ public static SimulationReportOverview CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"recommendedActions", n => { RecommendedActions = n.GetCollectionOfObjectValues(RecommendedAction.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -106,7 +106,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("recommendedActions", RecommendedActions); diff --git a/src/Microsoft.Graph/Generated/Models/SingleServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/SingleServicePrincipal.cs index cebda9d063e..b9fe2dd9a7c 100644 --- a/src/Microsoft.Graph/Generated/Models/SingleServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/SingleServicePrincipal.cs @@ -51,7 +51,7 @@ public SingleServicePrincipal() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"servicePrincipalId", n => { ServicePrincipalId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public SingleServicePrincipal() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/SingleUser.cs b/src/Microsoft.Graph/Generated/Models/SingleUser.cs index 6c72dc955e8..f31087be098 100644 --- a/src/Microsoft.Graph/Generated/Models/SingleUser.cs +++ b/src/Microsoft.Graph/Generated/Models/SingleUser.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class SingleUser : SubjectSet, IParsable { - /// The name of the user in Azure AD. Read only. + /// The name of the user in Microsoft Entra ID. Read only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -20,7 +20,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The ID of the user in Azure AD. + /// The ID of the user in Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -51,7 +51,7 @@ public SingleUser() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"userId", n => { UserId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public SingleUser() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs b/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs index 982386137fa..6b873aaf922 100644 --- a/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/SingleValueLegacyExtendedProperty.cs @@ -31,7 +31,7 @@ public string Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Site.cs b/src/Microsoft.Graph/Generated/Models/Site.cs index de50d2ee9fb..8ca4d66745b 100644 --- a/src/Microsoft.Graph/Generated/Models/Site.cs +++ b/src/Microsoft.Graph/Generated/Models/Site.cs @@ -295,7 +295,7 @@ public Site() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"analytics", n => { Analytics = n.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); } }, {"columns", n => { Columns = n.GetCollectionOfObjectValues(ColumnDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -323,7 +323,7 @@ public Site() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("analytics", Analytics); diff --git a/src/Microsoft.Graph/Generated/Models/SiteCollection.cs b/src/Microsoft.Graph/Generated/Models/SiteCollection.cs index 861b4b6095c..3308e1ace6f 100644 --- a/src/Microsoft.Graph/Generated/Models/SiteCollection.cs +++ b/src/Microsoft.Graph/Generated/Models/SiteCollection.cs @@ -88,7 +88,7 @@ public static SiteCollection CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dataLocationCode", n => { DataLocationCode = n.GetStringValue(); } }, {"hostname", n => { Hostname = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("dataLocationCode", DataLocationCode); writer.WriteStringValue("hostname", Hostname); diff --git a/src/Microsoft.Graph/Generated/Models/SiteCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SiteCollectionResponse.cs index 02e37454d59..581d0337f5e 100644 --- a/src/Microsoft.Graph/Generated/Models/SiteCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SiteCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SizeRange.cs b/src/Microsoft.Graph/Generated/Models/SizeRange.cs index 4aaedfac4a2..a24ad2684e4 100644 --- a/src/Microsoft.Graph/Generated/Models/SizeRange.cs +++ b/src/Microsoft.Graph/Generated/Models/SizeRange.cs @@ -56,7 +56,7 @@ public static SizeRange CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"maximumSize", n => { MaximumSize = n.GetIntValue(); } }, {"minimumSize", n => { MinimumSize = n.GetIntValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("maximumSize", MaximumSize); writer.WriteIntValue("minimumSize", MinimumSize); diff --git a/src/Microsoft.Graph/Generated/Models/SkypeForBusinessUserConversationMember.cs b/src/Microsoft.Graph/Generated/Models/SkypeForBusinessUserConversationMember.cs index a920697a44f..447bba90b62 100644 --- a/src/Microsoft.Graph/Generated/Models/SkypeForBusinessUserConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/SkypeForBusinessUserConversationMember.cs @@ -20,7 +20,7 @@ public string TenantId { set { BackingStore?.Set("tenantId", value); } } #endif - /// Azure Active Directory ID of the user. + /// Microsoft Entra ID of the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -51,7 +51,7 @@ public SkypeForBusinessUserConversationMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"tenantId", n => { TenantId = n.GetStringValue(); } }, {"userId", n => { UserId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public SkypeForBusinessUserConversationMember() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("tenantId", TenantId); diff --git a/src/Microsoft.Graph/Generated/Models/SkypeUserConversationMember.cs b/src/Microsoft.Graph/Generated/Models/SkypeUserConversationMember.cs index 0412e0d9c3c..57833a1ea0c 100644 --- a/src/Microsoft.Graph/Generated/Models/SkypeUserConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/SkypeUserConversationMember.cs @@ -37,7 +37,7 @@ public SkypeUserConversationMember() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"skypeId", n => { SkypeId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public SkypeUserConversationMember() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("skypeId", SkypeId); diff --git a/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodConfiguration.cs index 6b48c9a9a58..7956f3a8053 100644 --- a/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodConfiguration.cs @@ -37,7 +37,7 @@ public SmsAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(SmsAuthenticationMethodTarget.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public SmsAuthenticationMethodConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("includeTargets", IncludeTargets); diff --git a/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodTarget.cs b/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodTarget.cs index ba692ba25ed..da4d332e829 100644 --- a/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/SmsAuthenticationMethodTarget.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class SmsAuthenticationMethodTarget : AuthenticationMethodTarget, IParsable { - /// Determines if users can use this authentication method to sign in to Azure AD. true if users can use this method for primary authentication, otherwise false. + /// Determines if users can use this authentication method to sign in to Microsoft Entra ID. true if users can use this method for primary authentication, otherwise false. public bool? IsUsableForSignIn { get { return BackingStore?.Get("isUsableForSignIn"); } set { BackingStore?.Set("isUsableForSignIn", value); } @@ -22,7 +22,7 @@ public bool? IsUsableForSignIn { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isUsableForSignIn", n => { IsUsableForSignIn = n.GetBoolValue(); } }, }; @@ -31,7 +31,7 @@ public bool? IsUsableForSignIn { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isUsableForSignIn", IsUsableForSignIn); diff --git a/src/Microsoft.Graph/Generated/Models/SocialIdentityProvider.cs b/src/Microsoft.Graph/Generated/Models/SocialIdentityProvider.cs index 6d3e40ad6bb..724e9663f48 100644 --- a/src/Microsoft.Graph/Generated/Models/SocialIdentityProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/SocialIdentityProvider.cs @@ -65,7 +65,7 @@ public SocialIdentityProvider() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"clientSecret", n => { ClientSecret = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public SocialIdentityProvider() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("clientId", ClientId); diff --git a/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethod.cs index 03b8cfbfe2f..cee5b4cd046 100644 --- a/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethod.cs @@ -37,7 +37,7 @@ public SoftwareOathAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"secretKey", n => { SecretKey = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public SoftwareOathAuthenticationMethod() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("secretKey", SecretKey); diff --git a/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodCollectionResponse.cs index 6a585f5465f..730c64e8db5 100644 --- a/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SoftwareOathAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodConfiguration.cs index cf63b92f3cf..25ed1946de3 100644 --- a/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/SoftwareOathAuthenticationMethodConfiguration.cs @@ -37,7 +37,7 @@ public SoftwareOathAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(AuthenticationMethodTarget.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -46,7 +46,7 @@ public SoftwareOathAuthenticationMethodConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("includeTargets", IncludeTargets); diff --git a/src/Microsoft.Graph/Generated/Models/SoftwareUpdateStatusSummary.cs b/src/Microsoft.Graph/Generated/Models/SoftwareUpdateStatusSummary.cs index 4e8af6ee1fb..71ef7d1e076 100644 --- a/src/Microsoft.Graph/Generated/Models/SoftwareUpdateStatusSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/SoftwareUpdateStatusSummary.cs @@ -101,7 +101,7 @@ public int? UnknownUserCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"compliantDeviceCount", n => { CompliantDeviceCount = n.GetIntValue(); } }, {"compliantUserCount", n => { CompliantUserCount = n.GetIntValue(); } }, @@ -124,7 +124,7 @@ public int? UnknownUserCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("compliantDeviceCount", CompliantDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/SolutionsRoot.cs b/src/Microsoft.Graph/Generated/Models/SolutionsRoot.cs index b63aa8ff467..dcb9f59bf2a 100644 --- a/src/Microsoft.Graph/Generated/Models/SolutionsRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/SolutionsRoot.cs @@ -74,7 +74,7 @@ public static SolutionsRoot CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"bookingBusinesses", n => { BookingBusinesses = n.GetCollectionOfObjectValues(BookingBusiness.CreateFromDiscriminatorValue)?.ToList(); } }, {"bookingCurrencies", n => { BookingCurrencies = n.GetCollectionOfObjectValues(BookingCurrency.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("bookingBusinesses", BookingBusinesses); writer.WriteCollectionOfObjectValues("bookingCurrencies", BookingCurrencies); diff --git a/src/Microsoft.Graph/Generated/Models/SortProperty.cs b/src/Microsoft.Graph/Generated/Models/SortProperty.cs index 15241219625..c750f9a9d95 100644 --- a/src/Microsoft.Graph/Generated/Models/SortProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/SortProperty.cs @@ -65,7 +65,7 @@ public static SortProperty CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isDescending", n => { IsDescending = n.GetBoolValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isDescending", IsDescending); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/SpaApplication.cs b/src/Microsoft.Graph/Generated/Models/SpaApplication.cs index 1745fb71802..d0e4182581f 100644 --- a/src/Microsoft.Graph/Generated/Models/SpaApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/SpaApplication.cs @@ -60,7 +60,7 @@ public static SpaApplication CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfPrimitiveValues("redirectUris", RedirectUris); diff --git a/src/Microsoft.Graph/Generated/Models/SpecialFolder.cs b/src/Microsoft.Graph/Generated/Models/SpecialFolder.cs index 6d38761cfff..ff4e059e273 100644 --- a/src/Microsoft.Graph/Generated/Models/SpecialFolder.cs +++ b/src/Microsoft.Graph/Generated/Models/SpecialFolder.cs @@ -60,7 +60,7 @@ public static SpecialFolder CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/StaffAvailabilityItem.cs b/src/Microsoft.Graph/Generated/Models/StaffAvailabilityItem.cs index 680ed9ae301..03db1213f21 100644 --- a/src/Microsoft.Graph/Generated/Models/StaffAvailabilityItem.cs +++ b/src/Microsoft.Graph/Generated/Models/StaffAvailabilityItem.cs @@ -74,7 +74,7 @@ public static StaffAvailabilityItem CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"availabilityItems", n => { AvailabilityItems = n.GetCollectionOfObjectValues(AvailabilityItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("availabilityItems", AvailabilityItems); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/StandardTimeZoneOffset.cs b/src/Microsoft.Graph/Generated/Models/StandardTimeZoneOffset.cs index 7c9266d3beb..d81740bf52f 100644 --- a/src/Microsoft.Graph/Generated/Models/StandardTimeZoneOffset.cs +++ b/src/Microsoft.Graph/Generated/Models/StandardTimeZoneOffset.cs @@ -76,7 +76,7 @@ public static StandardTimeZoneOffset CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"dayOccurrence", n => { DayOccurrence = n.GetIntValue(); } }, {"dayOfWeek", n => { DayOfWeek = n.GetEnumValue(); } }, @@ -90,7 +90,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("dayOccurrence", DayOccurrence); writer.WriteEnumValue("dayOfWeek", DayOfWeek); diff --git a/src/Microsoft.Graph/Generated/Models/StartHoldMusicOperation.cs b/src/Microsoft.Graph/Generated/Models/StartHoldMusicOperation.cs index f51adfc3ae7..5565b265880 100644 --- a/src/Microsoft.Graph/Generated/Models/StartHoldMusicOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/StartHoldMusicOperation.cs @@ -17,7 +17,7 @@ public class StartHoldMusicOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class StartHoldMusicOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/StopHoldMusicOperation.cs b/src/Microsoft.Graph/Generated/Models/StopHoldMusicOperation.cs index ccaea56e601..e572de72b0f 100644 --- a/src/Microsoft.Graph/Generated/Models/StopHoldMusicOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/StopHoldMusicOperation.cs @@ -17,7 +17,7 @@ public class StopHoldMusicOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class StopHoldMusicOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/StoragePlanInformation.cs b/src/Microsoft.Graph/Generated/Models/StoragePlanInformation.cs index a12bcc725a7..8c548506c9f 100644 --- a/src/Microsoft.Graph/Generated/Models/StoragePlanInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/StoragePlanInformation.cs @@ -51,7 +51,7 @@ public static StoragePlanInformation CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"upgradeAvailable", n => { UpgradeAvailable = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteBoolValue("upgradeAvailable", UpgradeAvailable); diff --git a/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs index 92788d2b5cd..6f815356599 100644 --- a/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/StringCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/StringKeyAttributeMappingSourceValuePair.cs b/src/Microsoft.Graph/Generated/Models/StringKeyAttributeMappingSourceValuePair.cs index be14e3425d0..80eb1ad9ac4 100644 --- a/src/Microsoft.Graph/Generated/Models/StringKeyAttributeMappingSourceValuePair.cs +++ b/src/Microsoft.Graph/Generated/Models/StringKeyAttributeMappingSourceValuePair.cs @@ -74,7 +74,7 @@ public static StringKeyAttributeMappingSourceValuePair CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/StringKeyLongValuePair.cs b/src/Microsoft.Graph/Generated/Models/StringKeyLongValuePair.cs index 1f989494b05..86aa35ff0a7 100644 --- a/src/Microsoft.Graph/Generated/Models/StringKeyLongValuePair.cs +++ b/src/Microsoft.Graph/Generated/Models/StringKeyLongValuePair.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The mapping of the user type from the source system to the target system. For example:User to User - For Azure AD to Azure AD synchronization worker to user - For Workday to Azure AD synchronization. + /// The mapping of the user type from the source system to the target system. For example:User to User - For Microsoft Entra ID to Microsoft Entra ID synchronization worker to user - For Workday to Microsoft Entra synchronization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Key { @@ -65,7 +65,7 @@ public static StringKeyLongValuePair CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/StringKeyObjectValuePair.cs b/src/Microsoft.Graph/Generated/Models/StringKeyObjectValuePair.cs index 9bfd54636a4..2294ab8a9dc 100644 --- a/src/Microsoft.Graph/Generated/Models/StringKeyObjectValuePair.cs +++ b/src/Microsoft.Graph/Generated/Models/StringKeyObjectValuePair.cs @@ -60,7 +60,7 @@ public static StringKeyObjectValuePair CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/StringKeyStringValuePair.cs b/src/Microsoft.Graph/Generated/Models/StringKeyStringValuePair.cs index f0b998a70ae..8fb54b0958d 100644 --- a/src/Microsoft.Graph/Generated/Models/StringKeyStringValuePair.cs +++ b/src/Microsoft.Graph/Generated/Models/StringKeyStringValuePair.cs @@ -74,7 +74,7 @@ public static StringKeyStringValuePair CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/StsPolicy.cs b/src/Microsoft.Graph/Generated/Models/StsPolicy.cs index 19358393170..eaaeba40ab0 100644 --- a/src/Microsoft.Graph/Generated/Models/StsPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/StsPolicy.cs @@ -64,7 +64,7 @@ public StsPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appliesTo", n => { AppliesTo = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"definition", n => { Definition = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -75,7 +75,7 @@ public StsPolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("appliesTo", AppliesTo); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs index c998acd5cda..7e17b813d05 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs @@ -319,7 +319,7 @@ public SubjectRightsRequestType? Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"approvers", n => { Approvers = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignedTo", n => { AssignedTo = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, @@ -355,7 +355,7 @@ public SubjectRightsRequestType? Type { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("approvers", Approvers); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs index ac0f3c00419..d37f398da4b 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs @@ -23,7 +23,7 @@ public SubjectRightsRequestAllMailboxLocation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public SubjectRightsRequestAllMailboxLocation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs index d0d91bbdfa0..9d34c039c16 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs @@ -23,7 +23,7 @@ public SubjectRightsRequestAllSiteLocation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public SubjectRightsRequestAllSiteLocation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestCollectionResponse.cs index c25953d84da..dddfb48ca23 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SubjectRightsRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestDetail.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestDetail.cs index 767dc3cf826..f8a08887d60 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestDetail.cs @@ -99,7 +99,7 @@ public static SubjectRightsRequestDetail CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"excludedItemCount", n => { ExcludedItemCount = n.GetLongValue(); } }, {"insightCounts", n => { InsightCounts = n.GetCollectionOfObjectValues(KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("excludedItemCount", ExcludedItemCount); writer.WriteCollectionOfObjectValues("insightCounts", InsightCounts); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs index 5814b99a438..7768737d8d3 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs @@ -37,7 +37,7 @@ public SubjectRightsRequestEnumeratedMailboxLocation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userPrincipalNames", n => { UserPrincipalNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public SubjectRightsRequestEnumeratedMailboxLocation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("userPrincipalNames", UserPrincipalNames); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs index c992b5050c8..44e78a10f12 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs @@ -37,7 +37,7 @@ public SubjectRightsRequestEnumeratedSiteLocation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"urls", n => { Urls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public SubjectRightsRequestEnumeratedSiteLocation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("urls", Urls); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestHistory.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestHistory.cs index e1735cdc5a8..1bf93a82992 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestHistory.cs @@ -89,7 +89,7 @@ public static SubjectRightsRequestHistory CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"changedBy", n => { ChangedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"eventDateTime", n => { EventDateTime = n.GetDateTimeOffsetValue(); } }, @@ -103,7 +103,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("changedBy", ChangedBy); writer.WriteDateTimeOffsetValue("eventDateTime", EventDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs index 43fccef31e1..62660aee543 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs @@ -51,7 +51,7 @@ public static SubjectRightsRequestMailboxLocation CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs index 2c488c02e18..ddeb225203e 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs @@ -51,7 +51,7 @@ public static SubjectRightsRequestSiteLocation CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageDetail.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageDetail.cs index e3f8e107b39..d5ee3b6028c 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStageDetail.cs @@ -70,7 +70,7 @@ public static SubjectRightsRequestStageDetail CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"error", n => { Error = n.GetObjectValue(PublicError.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("error", Error); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectSet.cs b/src/Microsoft.Graph/Generated/Models/SubjectSet.cs index f01ab1427cc..65c5ef2f0b9 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectSet.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectSet.cs @@ -61,7 +61,7 @@ public static SubjectSet CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/SubscribeToToneOperation.cs b/src/Microsoft.Graph/Generated/Models/SubscribeToToneOperation.cs index 4e88802c4a0..c11f380a3af 100644 --- a/src/Microsoft.Graph/Generated/Models/SubscribeToToneOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/SubscribeToToneOperation.cs @@ -17,7 +17,7 @@ public class SubscribeToToneOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class SubscribeToToneOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/SubscribedSku.cs b/src/Microsoft.Graph/Generated/Models/SubscribedSku.cs index 3acf1a69008..910178be84c 100644 --- a/src/Microsoft.Graph/Generated/Models/SubscribedSku.cs +++ b/src/Microsoft.Graph/Generated/Models/SubscribedSku.cs @@ -139,7 +139,7 @@ public List SubscriptionIds { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountId", n => { AccountId = n.GetStringValue(); } }, {"accountName", n => { AccountName = n.GetStringValue(); } }, @@ -157,7 +157,7 @@ public List SubscriptionIds { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("accountId", AccountId); diff --git a/src/Microsoft.Graph/Generated/Models/SubscribedSkuCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SubscribedSkuCollectionResponse.cs index 61e0e51306a..0a9369eb34c 100644 --- a/src/Microsoft.Graph/Generated/Models/SubscribedSkuCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SubscribedSkuCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SubscribedSku.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Subscription.cs b/src/Microsoft.Graph/Generated/Models/Subscription.cs index 10c8d5948b7..8ae3d6cb266 100644 --- a/src/Microsoft.Graph/Generated/Models/Subscription.cs +++ b/src/Microsoft.Graph/Generated/Models/Subscription.cs @@ -195,7 +195,7 @@ public string Resource { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicationId", n => { ApplicationId = n.GetStringValue(); } }, {"changeType", n => { ChangeType = n.GetStringValue(); } }, @@ -217,7 +217,7 @@ public string Resource { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("applicationId", ApplicationId); diff --git a/src/Microsoft.Graph/Generated/Models/SubscriptionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SubscriptionCollectionResponse.cs index 3f0528c29b1..e5dde1679a2 100644 --- a/src/Microsoft.Graph/Generated/Models/SubscriptionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SubscriptionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Subscription.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequest.cs b/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequest.cs index 36aa52897c3..1bba64f062e 100644 --- a/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequest.cs @@ -37,7 +37,7 @@ public SwapShiftsChangeRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"recipientShiftId", n => { RecipientShiftId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public SwapShiftsChangeRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("recipientShiftId", RecipientShiftId); diff --git a/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequestCollectionResponse.cs index 9ac31c9127b..ceb381b2ddd 100644 --- a/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SwapShiftsChangeRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SwapShiftsChangeRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Synchronization.cs b/src/Microsoft.Graph/Generated/Models/Synchronization.cs index 54bb5a4ffde..c186f907f29 100644 --- a/src/Microsoft.Graph/Generated/Models/Synchronization.cs +++ b/src/Microsoft.Graph/Generated/Models/Synchronization.cs @@ -59,7 +59,7 @@ public List Templates { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"jobs", n => { Jobs = n.GetCollectionOfObjectValues(SynchronizationJob.CreateFromDiscriminatorValue)?.ToList(); } }, {"secrets", n => { Secrets = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public List Templates { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("jobs", Jobs); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs index 47f25d29389..b73e8ee23b0 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs @@ -79,7 +79,7 @@ public static SynchronizationError CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("message", Message); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJob.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJob.cs index bf3015e9617..73a1c5d1a3b 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJob.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJob.cs @@ -87,7 +87,7 @@ public string TemplateId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"schedule", n => { Schedule = n.GetObjectValue(SynchronizationSchedule.CreateFromDiscriminatorValue); } }, {"schema", n => { Schema = n.GetObjectValue(SynchronizationSchema.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public string TemplateId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("schedule", Schedule); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJobApplicationParameters.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJobApplicationParameters.cs index d6d46d81d63..bc32036d642 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJobApplicationParameters.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJobApplicationParameters.cs @@ -74,7 +74,7 @@ public static SynchronizationJobApplicationParameters CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"ruleId", n => { RuleId = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("ruleId", RuleId); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJobCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJobCollectionResponse.cs index d9d0331a154..58baeb162b1 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJobCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJobCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SynchronizationJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs index fa308f24c90..c24d84fb70a 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartCriteria.cs @@ -51,7 +51,7 @@ public static SynchronizationJobRestartCriteria CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resetScope", n => { ResetScope = n.GetEnumValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("resetScope", ResetScope); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJobSubject.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJobSubject.cs index 5df7b5dcaff..96afaf263bb 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJobSubject.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJobSubject.cs @@ -28,7 +28,7 @@ public SynchronizationLinkedObjects Links { set { BackingStore?.Set("links", value); } } #endif - /// The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Azure AD to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Azure AD. + /// The identifier of an object to which a synchronizationJob is to be applied. Can be one of the following: An onPremisesDistinguishedName for synchronization from Active Directory to Azure AD.The user ID for synchronization from Microsoft Entra ID to a third-party.The Worker ID of the Workday worker for synchronization from Workday to either Active Directory or Microsoft Entra ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ObjectId { @@ -42,7 +42,7 @@ public string ObjectId { set { BackingStore?.Set("objectId", value); } } #endif - /// The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Azure AD and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Azure AD.Group for synchronizing a group between Azure AD and a third-party application. + /// The type of the object to which a synchronizationJob is to be applied. Can be one of the following: user for synchronizing between Active Directory and Azure AD.User for synchronizing a user between Microsoft Entra ID and a third-party application. Worker for synchronization a user between Workday and either Active Directory or Microsoft Entra ID.Group for synchronizing a group between Microsoft Entra ID and a third-party application. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ObjectTypeName { @@ -88,7 +88,7 @@ public static SynchronizationJobSubject CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"links", n => { Links = n.GetObjectValue(SynchronizationLinkedObjects.CreateFromDiscriminatorValue); } }, {"objectId", n => { ObjectId = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("links", Links); writer.WriteStringValue("objectId", ObjectId); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationLinkedObjects.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationLinkedObjects.cs index 2774bce4982..8dbb7e09899 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationLinkedObjects.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationLinkedObjects.cs @@ -88,7 +88,7 @@ public static SynchronizationLinkedObjects CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"manager", n => { Manager = n.GetObjectValue(SynchronizationJobSubject.CreateFromDiscriminatorValue); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(SynchronizationJobSubject.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("manager", Manager); writer.WriteCollectionOfObjectValues("members", Members); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationMetadataEntry.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationMetadataEntry.cs index 8822d2a8951..282975e1baa 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationMetadataEntry.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationMetadataEntry.cs @@ -65,7 +65,7 @@ public static SynchronizationMetadataEntry CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationProgress.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationProgress.cs index d945b25e4ec..691647608b1 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationProgress.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationProgress.cs @@ -75,7 +75,7 @@ public static SynchronizationProgress CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"completedUnits", n => { CompletedUnits = n.GetLongValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("completedUnits", CompletedUnits); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationQuarantine.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationQuarantine.cs index 4764a49aff3..d88a61c98a8 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationQuarantine.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationQuarantine.cs @@ -85,7 +85,7 @@ public static SynchronizationQuarantine CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"currentBegan", n => { CurrentBegan = n.GetDateTimeOffsetValue(); } }, {"error", n => { Error = n.GetObjectValue(SynchronizationError.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("currentBegan", CurrentBegan); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs index b2b7ec81262..b251e43e4fa 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationRule.cs @@ -168,7 +168,7 @@ public static SynchronizationRule CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"containerFilter", n => { ContainerFilter = n.GetObjectValue(Microsoft.Graph.Models.ContainerFilter.CreateFromDiscriminatorValue); } }, {"editable", n => { Editable = n.GetBoolValue(); } }, @@ -187,7 +187,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("containerFilter", ContainerFilter); writer.WriteBoolValue("editable", Editable); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs index 970af44fb25..0b0654bebc4 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationSchedule.cs @@ -61,7 +61,7 @@ public static SynchronizationSchedule CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expiration", n => { Expiration = n.GetDateTimeOffsetValue(); } }, {"interval", n => { Interval = n.GetTimeSpanValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("expiration", Expiration); writer.WriteTimeSpanValue("interval", Interval); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationSchema.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationSchema.cs index abe7a2defa9..e65927e930f 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationSchema.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationSchema.cs @@ -59,7 +59,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"directories", n => { Directories = n.GetCollectionOfObjectValues(DirectoryDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"synchronizationRules", n => { SynchronizationRules = n.GetCollectionOfObjectValues(SynchronizationRule.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("directories", Directories); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationSecretKeyStringValuePair.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationSecretKeyStringValuePair.cs index a0c635f006c..e53b980f55b 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationSecretKeyStringValuePair.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationSecretKeyStringValuePair.cs @@ -65,7 +65,7 @@ public static SynchronizationSecretKeyStringValuePair CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"key", n => { Key = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("key", Key); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationStatus.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationStatus.cs index 59251ff955f..c46f845733d 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationStatus.cs @@ -169,7 +169,7 @@ public static SynchronizationStatus CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetEnumValue(); } }, {"countSuccessiveCompleteFailures", n => { CountSuccessiveCompleteFailures = n.GetLongValue(); } }, @@ -190,7 +190,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("code", Code); writer.WriteLongValue("countSuccessiveCompleteFailures", CountSuccessiveCompleteFailures); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationTaskExecution.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationTaskExecution.cs index 53d55d4f40f..8e1a63dbb38 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationTaskExecution.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationTaskExecution.cs @@ -134,7 +134,7 @@ public static SynchronizationTaskExecution CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityIdentifier", n => { ActivityIdentifier = n.GetStringValue(); } }, {"countEntitled", n => { CountEntitled = n.GetLongValue(); } }, @@ -157,7 +157,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityIdentifier", ActivityIdentifier); writer.WriteLongValue("countEntitled", CountEntitled); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationTemplate.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationTemplate.cs index d3985788e3f..de55047b7a0 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationTemplate.cs @@ -88,7 +88,7 @@ public SynchronizationSchema Schema { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicationId", n => { ApplicationId = n.GetGuidValue(); } }, {"default", n => { Default = n.GetBoolValue(); } }, @@ -103,7 +103,7 @@ public SynchronizationSchema Schema { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteGuidValue("applicationId", ApplicationId); diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationTemplateCollectionResponse.cs index 08d5858b450..9248927c513 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SynchronizationTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/SystemFacet.cs b/src/Microsoft.Graph/Generated/Models/SystemFacet.cs index d1313b439bb..72a2ffcbd6b 100644 --- a/src/Microsoft.Graph/Generated/Models/SystemFacet.cs +++ b/src/Microsoft.Graph/Generated/Models/SystemFacet.cs @@ -46,7 +46,7 @@ public static SystemFacet CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/TabUpdatedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TabUpdatedEventMessageDetail.cs index d8327836d5b..1b88a324421 100644 --- a/src/Microsoft.Graph/Generated/Models/TabUpdatedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TabUpdatedEventMessageDetail.cs @@ -51,7 +51,7 @@ public TabUpdatedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"tabId", n => { TabId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public TabUpdatedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TargetApplicationOwners.cs b/src/Microsoft.Graph/Generated/Models/TargetApplicationOwners.cs index 1833e6ec813..820ee134ae1 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetApplicationOwners.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetApplicationOwners.cs @@ -23,7 +23,7 @@ public TargetApplicationOwners() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public TargetApplicationOwners() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TargetDeviceGroup.cs b/src/Microsoft.Graph/Generated/Models/TargetDeviceGroup.cs new file mode 100644 index 00000000000..d41b1f60e0c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TargetDeviceGroup.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TargetDeviceGroup : Entity, IParsable { + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TargetDeviceGroup CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TargetDeviceGroup(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("displayName", DisplayName); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TargetDeviceGroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TargetDeviceGroupCollectionResponse.cs new file mode 100644 index 00000000000..4ef91806e83 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TargetDeviceGroupCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TargetDeviceGroupCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TargetDeviceGroupCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TargetDeviceGroupCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TargetDeviceGroup.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TargetManager.cs b/src/Microsoft.Graph/Generated/Models/TargetManager.cs index 7885df0a97f..81b2cea1314 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetManager.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetManager.cs @@ -28,7 +28,7 @@ public TargetManager() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"managerLevel", n => { ManagerLevel = n.GetIntValue(); } }, }; @@ -37,7 +37,7 @@ public TargetManager() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("managerLevel", ManagerLevel); diff --git a/src/Microsoft.Graph/Generated/Models/TargetResource.cs b/src/Microsoft.Graph/Generated/Models/TargetResource.cs index 3c737a42f28..dcec9270170 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetResource.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetResource.cs @@ -121,7 +121,7 @@ public static TargetResource CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"groupType", n => { GroupType = n.GetEnumValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteEnumValue("groupType", GroupType); diff --git a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfiguration.cs b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfiguration.cs index ed49d2480fb..6801a2c9205 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfiguration.cs @@ -78,7 +78,7 @@ public TargetedManagedAppConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -91,7 +91,7 @@ public TargetedManagedAppConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("apps", Apps); diff --git a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfigurationCollectionResponse.cs index 87158403ef5..1e903a6b001 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TargetedManagedAppConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignment.cs b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignment.cs index ff2de2805c9..481b85b1cac 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignmentCollectionResponse.cs index 9bc43c549aa..ce49da769e3 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppPolicyAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppProtection.cs b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppProtection.cs index 03d8a16e463..2617bd32515 100644 --- a/src/Microsoft.Graph/Generated/Models/TargetedManagedAppProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/TargetedManagedAppProtection.cs @@ -50,7 +50,7 @@ public TargetedManagedAppProtection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"isAssigned", n => { IsAssigned = n.GetBoolValue(); } }, @@ -60,7 +60,7 @@ public TargetedManagedAppProtection() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/TaskFileAttachment.cs b/src/Microsoft.Graph/Generated/Models/TaskFileAttachment.cs index 400ece48376..25589bf9a46 100644 --- a/src/Microsoft.Graph/Generated/Models/TaskFileAttachment.cs +++ b/src/Microsoft.Graph/Generated/Models/TaskFileAttachment.cs @@ -37,7 +37,7 @@ public TaskFileAttachment() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentBytes", n => { ContentBytes = n.GetByteArrayValue(); } }, }; @@ -46,7 +46,7 @@ public TaskFileAttachment() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("contentBytes", ContentBytes); diff --git a/src/Microsoft.Graph/Generated/Models/Team.cs b/src/Microsoft.Graph/Generated/Models/Team.cs index 9c9649b91bd..84794e040dc 100644 --- a/src/Microsoft.Graph/Generated/Models/Team.cs +++ b/src/Microsoft.Graph/Generated/Models/Team.cs @@ -329,7 +329,7 @@ public TeamsTemplate Template { set { BackingStore?.Set("template", value); } } #endif - /// The ID of the Azure Active Directory tenant. + /// The ID of the Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -373,7 +373,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allChannels", n => { AllChannels = n.GetCollectionOfObjectValues(Channel.CreateFromDiscriminatorValue)?.ToList(); } }, {"channels", n => { Channels = n.GetCollectionOfObjectValues(Channel.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -409,7 +409,7 @@ public string WebUrl { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("allChannels", AllChannels); diff --git a/src/Microsoft.Graph/Generated/Models/TeamArchivedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamArchivedEventMessageDetail.cs index fb5ae7446b5..076f8d67d11 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamArchivedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamArchivedEventMessageDetail.cs @@ -51,7 +51,7 @@ public TeamArchivedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamId", n => { TeamId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public TeamArchivedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamCollectionResponse.cs index 41ffb4bd4cd..124aa5563e5 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Team.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamCreatedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamCreatedEventMessageDetail.cs index 36b41bbc677..04e94fdb9f2 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamCreatedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamCreatedEventMessageDetail.cs @@ -79,7 +79,7 @@ public TeamCreatedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamDescription", n => { TeamDescription = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public TeamCreatedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamDescriptionUpdatedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamDescriptionUpdatedEventMessageDetail.cs index 8f4be8d86e6..9b61da7c40b 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamDescriptionUpdatedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamDescriptionUpdatedEventMessageDetail.cs @@ -65,7 +65,7 @@ public TeamDescriptionUpdatedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamDescription", n => { TeamDescription = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public TeamDescriptionUpdatedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamFunSettings.cs b/src/Microsoft.Graph/Generated/Models/TeamFunSettings.cs index f07b9ff4909..95f5287cadf 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamFunSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamFunSettings.cs @@ -66,7 +66,7 @@ public static TeamFunSettings CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowCustomMemes", n => { AllowCustomMemes = n.GetBoolValue(); } }, {"allowGiphy", n => { AllowGiphy = n.GetBoolValue(); } }, @@ -79,7 +79,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowCustomMemes", AllowCustomMemes); writer.WriteBoolValue("allowGiphy", AllowGiphy); diff --git a/src/Microsoft.Graph/Generated/Models/TeamGuestSettings.cs b/src/Microsoft.Graph/Generated/Models/TeamGuestSettings.cs index e984b203987..a0e184ddd0f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamGuestSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamGuestSettings.cs @@ -56,7 +56,7 @@ public static TeamGuestSettings CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowCreateUpdateChannels", n => { AllowCreateUpdateChannels = n.GetBoolValue(); } }, {"allowDeleteChannels", n => { AllowDeleteChannels = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowCreateUpdateChannels", AllowCreateUpdateChannels); writer.WriteBoolValue("allowDeleteChannels", AllowDeleteChannels); diff --git a/src/Microsoft.Graph/Generated/Models/TeamInfo.cs b/src/Microsoft.Graph/Generated/Models/TeamInfo.cs index b8ed221bb6a..e572dec9935 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamInfo.cs @@ -34,7 +34,7 @@ public Microsoft.Graph.Models.Team Team { set { BackingStore?.Set("team", value); } } #endif - /// The ID of the Azure Active Directory tenant. + /// The ID of the Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -64,7 +64,7 @@ public string TenantId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"team", n => { Team = n.GetObjectValue(Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue); } }, @@ -75,7 +75,7 @@ public string TenantId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/TeamJoiningDisabledEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamJoiningDisabledEventMessageDetail.cs index 82c40c27355..7019ead2b3f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamJoiningDisabledEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamJoiningDisabledEventMessageDetail.cs @@ -51,7 +51,7 @@ public TeamJoiningDisabledEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamId", n => { TeamId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public TeamJoiningDisabledEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamJoiningEnabledEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamJoiningEnabledEventMessageDetail.cs index a320b7e96ca..587d71a8e5c 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamJoiningEnabledEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamJoiningEnabledEventMessageDetail.cs @@ -51,7 +51,7 @@ public TeamJoiningEnabledEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamId", n => { TeamId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public TeamJoiningEnabledEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamMemberSettings.cs b/src/Microsoft.Graph/Generated/Models/TeamMemberSettings.cs index f7508f8fa68..0479ca6ca11 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamMemberSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamMemberSettings.cs @@ -76,7 +76,7 @@ public static TeamMemberSettings CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowAddRemoveApps", n => { AllowAddRemoveApps = n.GetBoolValue(); } }, {"allowCreatePrivateChannels", n => { AllowCreatePrivateChannels = n.GetBoolValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowAddRemoveApps", AllowAddRemoveApps); writer.WriteBoolValue("allowCreatePrivateChannels", AllowCreatePrivateChannels); diff --git a/src/Microsoft.Graph/Generated/Models/TeamMembersNotificationRecipient.cs b/src/Microsoft.Graph/Generated/Models/TeamMembersNotificationRecipient.cs index efe286ba4cc..a1e5dde7159 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamMembersNotificationRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamMembersNotificationRecipient.cs @@ -37,7 +37,7 @@ public TeamMembersNotificationRecipient() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"teamId", n => { TeamId = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public TeamMembersNotificationRecipient() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("teamId", TeamId); diff --git a/src/Microsoft.Graph/Generated/Models/TeamMessagingSettings.cs b/src/Microsoft.Graph/Generated/Models/TeamMessagingSettings.cs index 5ec0c9219f8..8a13a3fac0b 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamMessagingSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamMessagingSettings.cs @@ -71,7 +71,7 @@ public static TeamMessagingSettings CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowChannelMentions", n => { AllowChannelMentions = n.GetBoolValue(); } }, {"allowOwnerDeleteMessages", n => { AllowOwnerDeleteMessages = n.GetBoolValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowChannelMentions", AllowChannelMentions); writer.WriteBoolValue("allowOwnerDeleteMessages", AllowOwnerDeleteMessages); diff --git a/src/Microsoft.Graph/Generated/Models/TeamRenamedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamRenamedEventMessageDetail.cs index f95521b9879..7b3e5ae1dc9 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamRenamedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamRenamedEventMessageDetail.cs @@ -65,7 +65,7 @@ public TeamRenamedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamDisplayName", n => { TeamDisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public TeamRenamedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamSummary.cs b/src/Microsoft.Graph/Generated/Models/TeamSummary.cs index 78d5eff5a7f..65191de63de 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamSummary.cs @@ -61,7 +61,7 @@ public static TeamSummary CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"guestsCount", n => { GuestsCount = n.GetIntValue(); } }, {"membersCount", n => { MembersCount = n.GetIntValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("guestsCount", GuestsCount); writer.WriteIntValue("membersCount", MembersCount); diff --git a/src/Microsoft.Graph/Generated/Models/TeamUnarchivedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamUnarchivedEventMessageDetail.cs index 9feccbc9333..c45ef360cbd 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamUnarchivedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamUnarchivedEventMessageDetail.cs @@ -51,7 +51,7 @@ public TeamUnarchivedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamId", n => { TeamId = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public TeamUnarchivedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsApp.cs b/src/Microsoft.Graph/Generated/Models/TeamsApp.cs index 98773dc68e4..73f9a47daa8 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsApp.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsApp.cs @@ -64,7 +64,7 @@ public string ExternalId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDefinitions", n => { AppDefinitions = n.GetCollectionOfObjectValues(TeamsAppDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public string ExternalId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("appDefinitions", AppDefinitions); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppAuthorization.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppAuthorization.cs index ffa2e94f03d..b46afe1f73f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppAuthorization.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppAuthorization.cs @@ -60,7 +60,7 @@ public static TeamsAppAuthorization CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"requiredPermissionSet", n => { RequiredPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("requiredPermissionSet", RequiredPermissionSet); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs index c4fb1f67207..f3c275c1e3e 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs index 2556481d69f..cd2e7e8d15f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs @@ -139,7 +139,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authorization", n => { Authorization = n.GetObjectValue(TeamsAppAuthorization.CreateFromDiscriminatorValue); } }, {"bot", n => { Bot = n.GetObjectValue(TeamworkBot.CreateFromDiscriminatorValue); } }, @@ -157,7 +157,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("authorization", Authorization); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinitionCollectionResponse.cs index 2adad6b30dc..6cb28622c41 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsAppDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs index e51f86e14bd..f5f1de18804 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallation.cs @@ -63,7 +63,7 @@ public Microsoft.Graph.Models.TeamsAppDefinition TeamsAppDefinition { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, {"teamsApp", n => { TeamsApp = n.GetObjectValue(Microsoft.Graph.Models.TeamsApp.CreateFromDiscriminatorValue); } }, @@ -74,7 +74,7 @@ public Microsoft.Graph.Models.TeamsAppDefinition TeamsAppDefinition { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs index 749c4b65f13..6a16cc28a82 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppInstallationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsAppInstallation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppInstalledEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppInstalledEventMessageDetail.cs index 1c0dbc0570d..cb84a28bdff 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppInstalledEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppInstalledEventMessageDetail.cs @@ -65,7 +65,7 @@ public TeamsAppInstalledEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamsAppDisplayName", n => { TeamsAppDisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public TeamsAppInstalledEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppPermissionSet.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppPermissionSet.cs index ad245dbad6a..044092f9019 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppPermissionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppPermissionSet.cs @@ -60,7 +60,7 @@ public static TeamsAppPermissionSet CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resourceSpecificPermissions", n => { ResourceSpecificPermissions = n.GetCollectionOfObjectValues(TeamsAppResourceSpecificPermission.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("resourceSpecificPermissions", ResourceSpecificPermissions); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppRemovedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppRemovedEventMessageDetail.cs index bfb32278bb2..fc8e2307201 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppRemovedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppRemovedEventMessageDetail.cs @@ -65,7 +65,7 @@ public TeamsAppRemovedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamsAppDisplayName", n => { TeamsAppDisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public TeamsAppRemovedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppResourceSpecificPermission.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppResourceSpecificPermission.cs index a3b751a86a7..e3ee28279df 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppResourceSpecificPermission.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppResourceSpecificPermission.cs @@ -65,7 +65,7 @@ public static TeamsAppResourceSpecificPermission CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"permissionType", n => { PermissionType = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("permissionType", PermissionType); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs index efa1373f7b4..7cc23f2993e 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppSettings.cs @@ -22,7 +22,7 @@ public bool? AllowUserRequestsForAppAccess { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowUserRequestsForAppAccess", n => { AllowUserRequestsForAppAccess = n.GetBoolValue(); } }, }; @@ -31,7 +31,7 @@ public bool? AllowUserRequestsForAppAccess { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowUserRequestsForAppAccess", AllowUserRequestsForAppAccess); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppUpgradedEventMessageDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppUpgradedEventMessageDetail.cs index 7b5c98193e4..0d3a884fe76 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppUpgradedEventMessageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppUpgradedEventMessageDetail.cs @@ -65,7 +65,7 @@ public TeamsAppUpgradedEventMessageDetail() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"initiator", n => { Initiator = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"teamsAppDisplayName", n => { TeamsAppDisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public TeamsAppUpgradedEventMessageDetail() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("initiator", Initiator); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs index 616ed0ec7b3..a0679f120bb 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperation.cs @@ -84,7 +84,7 @@ public string TargetResourceLocation { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attemptsCount", n => { AttemptsCount = n.GetIntValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -100,7 +100,7 @@ public string TargetResourceLocation { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("attemptsCount", AttemptsCount); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationCollectionResponse.cs index b941a28bee5..8b3082820ca 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAsyncOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsAsyncOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTab.cs b/src/Microsoft.Graph/Generated/Models/TeamsTab.cs index 82056081e72..c1ad33221fc 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTab.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTab.cs @@ -73,7 +73,7 @@ public string WebUrl { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"configuration", n => { Configuration = n.GetObjectValue(TeamsTabConfiguration.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public string WebUrl { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("configuration", Configuration); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTabCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsTabCollectionResponse.cs index d8e1e15b11c..f5694b9c73e 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTabCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTabCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsTab.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTabConfiguration.cs b/src/Microsoft.Graph/Generated/Models/TeamsTabConfiguration.cs index 024ad0e83e1..a403e50a887 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTabConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTabConfiguration.cs @@ -102,7 +102,7 @@ public static TeamsTabConfiguration CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentUrl", n => { ContentUrl = n.GetStringValue(); } }, {"entityId", n => { EntityId = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentUrl", ContentUrl); writer.WriteStringValue("entityId", EntityId); diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTemplate.cs b/src/Microsoft.Graph/Generated/Models/TeamsTemplate.cs index 6ba8e1a6864..20f4e8e5442 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTemplate.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTemplate.cs @@ -17,7 +17,7 @@ public class TeamsTemplate : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class TeamsTemplate : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamsTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsTemplateCollectionResponse.cs index 442f3fd86ce..77c5b5bec10 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsTemplateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsTemplateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Teamwork.cs b/src/Microsoft.Graph/Generated/Models/Teamwork.cs index e01baa1c3be..fa8062b46da 100644 --- a/src/Microsoft.Graph/Generated/Models/Teamwork.cs +++ b/src/Microsoft.Graph/Generated/Models/Teamwork.cs @@ -59,7 +59,7 @@ public List WorkforceIntegrations { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deletedTeams", n => { DeletedTeams = n.GetCollectionOfObjectValues(DeletedTeam.CreateFromDiscriminatorValue)?.ToList(); } }, {"teamsAppSettings", n => { TeamsAppSettings = n.GetObjectValue(Microsoft.Graph.Models.TeamsAppSettings.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public List WorkforceIntegrations { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("deletedTeams", DeletedTeams); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs b/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs index 74961c05677..def069a9e00 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkActivityTopic.cs @@ -79,7 +79,7 @@ public static TeamworkActivityTopic CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"source", n => { Source = n.GetEnumValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentity.cs b/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentity.cs index be0b3fb89f0..9f12c7ffbc2 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkApplicationIdentity.cs @@ -28,7 +28,7 @@ public TeamworkApplicationIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicationIdentityType", n => { ApplicationIdentityType = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public TeamworkApplicationIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("applicationIdentityType", ApplicationIdentityType); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkBot.cs b/src/Microsoft.Graph/Generated/Models/TeamworkBot.cs index 7dd440a014a..15f1df03943 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkBot.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkBot.cs @@ -17,7 +17,7 @@ public class TeamworkBot : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class TeamworkBot : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentity.cs b/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentity.cs index 3595dc10bb8..73a5d2cf6e7 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkConversationIdentity.cs @@ -28,7 +28,7 @@ public TeamworkConversationIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"conversationIdentityType", n => { ConversationIdentityType = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public TeamworkConversationIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("conversationIdentityType", ConversationIdentityType); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs b/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs index 942f9785383..cdad5623202 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkHostedContent.cs @@ -49,7 +49,7 @@ public string ContentType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contentBytes", n => { ContentBytes = n.GetByteArrayValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -59,7 +59,7 @@ public string ContentType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteByteArrayValue("contentBytes", ContentBytes); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkNotificationRecipient.cs b/src/Microsoft.Graph/Generated/Models/TeamworkNotificationRecipient.cs index 6a09be056db..2970667e67a 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkNotificationRecipient.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkNotificationRecipient.cs @@ -53,7 +53,7 @@ public static TeamworkNotificationRecipient CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkOnlineMeetingInfo.cs b/src/Microsoft.Graph/Generated/Models/TeamworkOnlineMeetingInfo.cs index 84aa08c12e2..6cff8ffccd8 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkOnlineMeetingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkOnlineMeetingInfo.cs @@ -88,7 +88,7 @@ public static TeamworkOnlineMeetingInfo CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"calendarEventId", n => { CalendarEventId = n.GetStringValue(); } }, {"joinWebUrl", n => { JoinWebUrl = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("calendarEventId", CalendarEventId); writer.WriteStringValue("joinWebUrl", JoinWebUrl); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs index 8f91f558d40..51d9e7bacb2 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTag.cs @@ -83,7 +83,7 @@ public string TeamId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public string TeamId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTagCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTagCollectionResponse.cs index 536ea1e89e8..d4d85dd5b0f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTagCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTagCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamworkTag.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTagIdentity.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTagIdentity.cs index f605f5a36dd..0cfa3416e5f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTagIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTagIdentity.cs @@ -23,7 +23,7 @@ public TeamworkTagIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public TeamworkTagIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs index 648ad89a01c..7bb01d7ed35 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTagMember.cs @@ -59,7 +59,7 @@ public string UserId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public string UserId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkTagMemberCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamworkTagMemberCollectionResponse.cs index 149692ec94f..ad8c624fc70 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkTagMemberCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkTagMemberCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TeamworkTagMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentity.cs b/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentity.cs index 5922761faf6..0ca57af4975 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamworkUserIdentity.cs @@ -28,7 +28,7 @@ public TeamworkUserIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userIdentityType", n => { UserIdentityType = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public TeamworkUserIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("userIdentityType", UserIdentityType); diff --git a/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs b/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs index b912d26c2ec..83c9645ccad 100644 --- a/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartner.cs @@ -63,7 +63,7 @@ public string Url { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appAuthorized", n => { AppAuthorized = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public string Url { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("appAuthorized", AppAuthorized); diff --git a/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartnerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartnerCollectionResponse.cs index 4e0c0c40a0e..37dcc48ccbf 100644 --- a/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartnerCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TelecomExpenseManagementPartnerCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TelecomExpenseManagementPartner.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceAudioQuality.cs b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceAudioQuality.cs index 4ebe5d1dba8..c5cbf3ed71f 100644 --- a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceAudioQuality.cs +++ b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceAudioQuality.cs @@ -23,7 +23,7 @@ public TeleconferenceDeviceAudioQuality() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public TeleconferenceDeviceAudioQuality() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceMediaQuality.cs b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceMediaQuality.cs index 8ed96ed6549..850554efe56 100644 --- a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceMediaQuality.cs +++ b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceMediaQuality.cs @@ -175,7 +175,7 @@ public static TeleconferenceDeviceMediaQuality CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"averageInboundJitter", n => { AverageInboundJitter = n.GetTimeSpanValue(); } }, {"averageInboundPacketLossRateInPercentage", n => { AverageInboundPacketLossRateInPercentage = n.GetDoubleValue(); } }, @@ -205,7 +205,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("averageInboundJitter", AverageInboundJitter); writer.WriteDoubleValue("averageInboundPacketLossRateInPercentage", AverageInboundPacketLossRateInPercentage); diff --git a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceQuality.cs b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceQuality.cs index 5ad6d5c4d3c..1fa2da00358 100644 --- a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceQuality.cs +++ b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceQuality.cs @@ -159,7 +159,7 @@ public static TeleconferenceDeviceQuality CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"callChainId", n => { CallChainId = n.GetGuidValue(); } }, {"cloudServiceDeploymentEnvironment", n => { CloudServiceDeploymentEnvironment = n.GetStringValue(); } }, @@ -178,7 +178,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("callChainId", CallChainId); writer.WriteStringValue("cloudServiceDeploymentEnvironment", CloudServiceDeploymentEnvironment); diff --git a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceScreenSharingQuality.cs b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceScreenSharingQuality.cs index e5b3fe5c700..a83594bcf87 100644 --- a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceScreenSharingQuality.cs +++ b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceScreenSharingQuality.cs @@ -17,7 +17,7 @@ public class TeleconferenceDeviceScreenSharingQuality : TeleconferenceDeviceVide /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class TeleconferenceDeviceScreenSharingQuality : TeleconferenceDeviceVide /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceVideoQuality.cs b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceVideoQuality.cs index 9b22178ee82..843d792a5bb 100644 --- a/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceVideoQuality.cs +++ b/src/Microsoft.Graph/Generated/Models/TeleconferenceDeviceVideoQuality.cs @@ -47,7 +47,7 @@ public TeleconferenceDeviceVideoQuality() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"averageInboundBitRate", n => { AverageInboundBitRate = n.GetDoubleValue(); } }, {"averageInboundFrameRate", n => { AverageInboundFrameRate = n.GetDoubleValue(); } }, @@ -59,7 +59,7 @@ public TeleconferenceDeviceVideoQuality() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("averageInboundBitRate", AverageInboundBitRate); diff --git a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs index 04cc0efd2a9..4bb517af025 100644 --- a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs @@ -76,7 +76,7 @@ public TemporaryAccessPassAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"isUsable", n => { IsUsable = n.GetBoolValue(); } }, @@ -91,7 +91,7 @@ public TemporaryAccessPassAuthenticationMethod() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodCollectionResponse.cs index b16332360ec..cc4305e2844 100644 --- a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TemporaryAccessPassAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodConfiguration.cs index 8238a1c823c..e3f2441dc67 100644 --- a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethodConfiguration.cs @@ -62,7 +62,7 @@ public TemporaryAccessPassAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"defaultLength", n => { DefaultLength = n.GetIntValue(); } }, {"defaultLifetimeInMinutes", n => { DefaultLifetimeInMinutes = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public TemporaryAccessPassAuthenticationMethodConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("defaultLength", DefaultLength); diff --git a/src/Microsoft.Graph/Generated/Models/TenantAppManagementPolicy.cs b/src/Microsoft.Graph/Generated/Models/TenantAppManagementPolicy.cs index 502b2442b5e..a1dce1a2361 100644 --- a/src/Microsoft.Graph/Generated/Models/TenantAppManagementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/TenantAppManagementPolicy.cs @@ -56,7 +56,7 @@ public TenantAppManagementPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicationRestrictions", n => { ApplicationRestrictions = n.GetObjectValue(AppManagementConfiguration.CreateFromDiscriminatorValue); } }, {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public TenantAppManagementPolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("applicationRestrictions", ApplicationRestrictions); diff --git a/src/Microsoft.Graph/Generated/Models/TenantInformation.cs b/src/Microsoft.Graph/Generated/Models/TenantInformation.cs index c0917fd004c..680ba57ee62 100644 --- a/src/Microsoft.Graph/Generated/Models/TenantInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/TenantInformation.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Primary domain name of an Azure AD tenant. + /// Primary domain name of a Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DefaultDomainName { @@ -28,7 +28,7 @@ public string DefaultDomainName { set { BackingStore?.Set("defaultDomainName", value); } } #endif - /// Display name of an Azure AD tenant. + /// Display name of a Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -42,7 +42,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Name shown to users that sign in to an Azure AD tenant. + /// Name shown to users that sign in to a Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? FederationBrandName { @@ -70,7 +70,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Unique identifier of an Azure AD tenant. + /// Unique identifier of a Microsoft Entra tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TenantId { @@ -102,7 +102,7 @@ public static TenantInformation CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"defaultDomainName", n => { DefaultDomainName = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("defaultDomainName", DefaultDomainName); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs b/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs index 9cfb240a1c1..094d1141f74 100644 --- a/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs @@ -74,7 +74,7 @@ public static TenantRelationship CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"delegatedAdminCustomers", n => { DelegatedAdminCustomers = n.GetCollectionOfObjectValues(DelegatedAdminCustomer.CreateFromDiscriminatorValue)?.ToList(); } }, {"delegatedAdminRelationships", n => { DelegatedAdminRelationships = n.GetCollectionOfObjectValues(DelegatedAdminRelationship.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("delegatedAdminCustomers", DelegatedAdminCustomers); writer.WriteCollectionOfObjectValues("delegatedAdminRelationships", DelegatedAdminRelationships); diff --git a/src/Microsoft.Graph/Generated/Models/TermColumn.cs b/src/Microsoft.Graph/Generated/Models/TermColumn.cs index 33187cf7fc8..c39d32ef32f 100644 --- a/src/Microsoft.Graph/Generated/Models/TermColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/TermColumn.cs @@ -85,7 +85,7 @@ public static TermColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowMultipleValues", n => { AllowMultipleValues = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -98,7 +98,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowMultipleValues", AllowMultipleValues); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs index 29ce8011e6b..7be387cec84 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Group.cs @@ -83,7 +83,7 @@ public List Sets { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public List Sets { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/GroupCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermStore/GroupCollectionResponse.cs index 8fd4525c534..ffa56dbb1fa 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/GroupCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/GroupCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Group.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedDescription.cs b/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedDescription.cs index 9ff4b17fdb7..15329a2e154 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedDescription.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedDescription.cs @@ -74,7 +74,7 @@ public static LocalizedDescription CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteStringValue("languageTag", LanguageTag); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedLabel.cs b/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedLabel.cs index d687d1bc432..1721834632f 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedLabel.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedLabel.cs @@ -79,7 +79,7 @@ public static LocalizedLabel CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isDefault", IsDefault); writer.WriteStringValue("languageTag", LanguageTag); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedName.cs b/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedName.cs index 72ce84a28f9..8a5bd6ac527 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedName.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/LocalizedName.cs @@ -74,7 +74,7 @@ public static LocalizedName CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("languageTag", LanguageTag); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs index 1b518b9c9af..0a9d81d999e 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Relation.cs @@ -64,7 +64,7 @@ public Term ToTerm { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fromTerm", n => { FromTerm = n.GetObjectValue(Term.CreateFromDiscriminatorValue); } }, {"relationship", n => { Relationship = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public Term ToTerm { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fromTerm", FromTerm); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/RelationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermStore/RelationCollectionResponse.cs index 5d6a2bb0296..2bb9ea0a6c7 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/RelationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/RelationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Relation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Set.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Set.cs index 05fd5db0b87..5e0c6b6b0d5 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Set.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Set.cs @@ -120,7 +120,7 @@ public List Terms { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"children", n => { Children = n.GetCollectionOfObjectValues(Term.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -136,7 +136,7 @@ public List Terms { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("children", Children); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/SetCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermStore/SetCollectionResponse.cs index 6aec64d0cf8..89e0d2eeb11 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/SetCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/SetCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Set.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Store.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Store.cs index a08d9fdbc78..5ae4b4691a1 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Store.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Store.cs @@ -73,7 +73,7 @@ public List Sets { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"defaultLanguageTag", n => { DefaultLanguageTag = n.GetStringValue(); } }, {"groups", n => { Groups = n.GetCollectionOfObjectValues(Group.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -85,7 +85,7 @@ public List Sets { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("defaultLanguageTag", DefaultLanguageTag); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/StoreCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermStore/StoreCollectionResponse.cs index 084090b7dc8..e250e0209e5 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/StoreCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/StoreCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Store.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/Term.cs b/src/Microsoft.Graph/Generated/Models/TermStore/Term.cs index 6c79671aa6a..d10bc148b04 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/Term.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/Term.cs @@ -111,7 +111,7 @@ public Microsoft.Graph.Models.TermStore.Set Set { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"children", n => { Children = n.GetCollectionOfObjectValues(Term.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -127,7 +127,7 @@ public Microsoft.Graph.Models.TermStore.Set Set { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("children", Children); diff --git a/src/Microsoft.Graph/Generated/Models/TermStore/TermCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermStore/TermCollectionResponse.cs index ce5104e38fc..c9db385cf17 100644 --- a/src/Microsoft.Graph/Generated/Models/TermStore/TermCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermStore/TermCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Term.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs index f544ea34102..32da0b235aa 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs @@ -133,7 +133,7 @@ public int? Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"acceptanceStatement", n => { AcceptanceStatement = n.GetStringValue(); } }, {"acceptanceStatuses", n => { AcceptanceStatuses = n.GetCollectionOfObjectValues(TermsAndConditionsAcceptanceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -151,7 +151,7 @@ public int? Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("acceptanceStatement", AcceptanceStatement); diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatus.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatus.cs index 6b934b496e1..cde1de65745 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatus.cs @@ -72,7 +72,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"acceptedDateTime", n => { AcceptedDateTime = n.GetDateTimeOffsetValue(); } }, {"acceptedVersion", n => { AcceptedVersion = n.GetIntValue(); } }, @@ -85,7 +85,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("acceptedDateTime", AcceptedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatusCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatusCollectionResponse.cs index a4a321619d6..4841cc66926 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatusCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAcceptanceStatusCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TermsAndConditionsAcceptanceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignment.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignment.cs index b0b42dc27b8..f1425278bc3 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignment.cs @@ -34,7 +34,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; @@ -43,7 +43,7 @@ public DeviceAndAppManagementAssignmentTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignmentCollectionResponse.cs index 49cf5fe2ee3..9b2ac4d17b0 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TermsAndConditionsAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsCollectionResponse.cs index 96192289e45..712bbdcae04 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditionsCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditionsCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TermsAndConditions.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs b/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs index 9b38a230326..a28844b0233 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsExpiration.cs @@ -56,7 +56,7 @@ public static TermsExpiration CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"frequency", n => { Frequency = n.GetTimeSpanValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeSpanValue("frequency", Frequency); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TermsOfUseContainer.cs b/src/Microsoft.Graph/Generated/Models/TermsOfUseContainer.cs index b0e1a35621f..2474f57dd11 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsOfUseContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsOfUseContainer.cs @@ -20,7 +20,7 @@ public List AgreementAcceptances { set { BackingStore?.Set("agreementAcceptances", value); } } #endif - /// Represents a tenant's customizable terms of use agreement that's created and managed with Azure Active Directory (Azure AD). + /// Represents a tenant's customizable terms of use agreement that's created and managed with Microsoft Entra ID Governance. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Agreements { @@ -45,7 +45,7 @@ public List Agreements { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"agreementAcceptances", n => { AgreementAcceptances = n.GetCollectionOfObjectValues(AgreementAcceptance.CreateFromDiscriminatorValue)?.ToList(); } }, {"agreements", n => { Agreements = n.GetCollectionOfObjectValues(Agreement.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public List Agreements { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("agreementAcceptances", AgreementAcceptances); diff --git a/src/Microsoft.Graph/Generated/Models/TextColumn.cs b/src/Microsoft.Graph/Generated/Models/TextColumn.cs index be3caa144c9..be5e76e0cb2 100644 --- a/src/Microsoft.Graph/Generated/Models/TextColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/TextColumn.cs @@ -80,7 +80,7 @@ public static TextColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowMultipleLines", n => { AllowMultipleLines = n.GetBoolValue(); } }, {"appendChangesToExistingText", n => { AppendChangesToExistingText = n.GetBoolValue(); } }, @@ -94,7 +94,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowMultipleLines", AllowMultipleLines); writer.WriteBoolValue("appendChangesToExistingText", AppendChangesToExistingText); diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs index 372ebd7e3e6..68717827d99 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequest.cs @@ -82,7 +82,7 @@ public ThreatAssessmentStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"category", n => { Category = n.GetEnumValue(); } }, {"contentType", n => { ContentType = n.GetEnumValue(); } }, @@ -98,7 +98,7 @@ public ThreatAssessmentStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("category", Category); diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestCollectionResponse.cs index 72d0e315fab..6e43a17637a 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ThreatAssessmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs index bf794466b13..a4c217f13e3 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResult.cs @@ -41,7 +41,7 @@ public ThreatAssessmentResultType? ResultType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, @@ -52,7 +52,7 @@ public ThreatAssessmentResultType? ResultType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultCollectionResponse.cs index 7856360018b..e951a6468a4 100644 --- a/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ThreatAssessmentResultCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ThreatAssessmentResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Thumbnail.cs b/src/Microsoft.Graph/Generated/Models/Thumbnail.cs index d2b7581b3a6..a201deb3a24 100644 --- a/src/Microsoft.Graph/Generated/Models/Thumbnail.cs +++ b/src/Microsoft.Graph/Generated/Models/Thumbnail.cs @@ -98,7 +98,7 @@ public static Thumbnail CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetByteArrayValue(); } }, {"height", n => { Height = n.GetIntValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("content", Content); writer.WriteIntValue("height", Height); diff --git a/src/Microsoft.Graph/Generated/Models/ThumbnailColumn.cs b/src/Microsoft.Graph/Generated/Models/ThumbnailColumn.cs index 78fbc4d444a..9ac97d1eab0 100644 --- a/src/Microsoft.Graph/Generated/Models/ThumbnailColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/ThumbnailColumn.cs @@ -46,7 +46,7 @@ public static ThumbnailColumn CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/ThumbnailSet.cs b/src/Microsoft.Graph/Generated/Models/ThumbnailSet.cs index 047207a1a87..b0336a70bea 100644 --- a/src/Microsoft.Graph/Generated/Models/ThumbnailSet.cs +++ b/src/Microsoft.Graph/Generated/Models/ThumbnailSet.cs @@ -73,7 +73,7 @@ public Thumbnail Source { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"large", n => { Large = n.GetObjectValue(Thumbnail.CreateFromDiscriminatorValue); } }, {"medium", n => { Medium = n.GetObjectValue(Thumbnail.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public Thumbnail Source { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("large", Large); diff --git a/src/Microsoft.Graph/Generated/Models/ThumbnailSetCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ThumbnailSetCollectionResponse.cs index cdad491ca75..44cbd4b5134 100644 --- a/src/Microsoft.Graph/Generated/Models/ThumbnailSetCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/ThumbnailSetCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ThumbnailSet.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TicketInfo.cs b/src/Microsoft.Graph/Generated/Models/TicketInfo.cs index 1e2e5380a95..a0109db8e25 100644 --- a/src/Microsoft.Graph/Generated/Models/TicketInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/TicketInfo.cs @@ -74,7 +74,7 @@ public static TicketInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"ticketNumber", n => { TicketNumber = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("ticketNumber", TicketNumber); diff --git a/src/Microsoft.Graph/Generated/Models/TimeConstraint.cs b/src/Microsoft.Graph/Generated/Models/TimeConstraint.cs index 7c5d486bbe8..f490680bba4 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeConstraint.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeConstraint.cs @@ -65,7 +65,7 @@ public static TimeConstraint CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityDomain", n => { ActivityDomain = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("activityDomain", ActivityDomain); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOff.cs b/src/Microsoft.Graph/Generated/Models/TimeOff.cs index 83defb8ccb9..dc7773f4ab0 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOff.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOff.cs @@ -65,7 +65,7 @@ public TimeOff() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"draftTimeOff", n => { DraftTimeOff = n.GetObjectValue(TimeOffItem.CreateFromDiscriminatorValue); } }, {"sharedTimeOff", n => { SharedTimeOff = n.GetObjectValue(TimeOffItem.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public TimeOff() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("draftTimeOff", DraftTimeOff); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TimeOffCollectionResponse.cs index b9f162b8432..4494ad72945 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeOff.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffItem.cs b/src/Microsoft.Graph/Generated/Models/TimeOffItem.cs index b1a7f37dbdb..dbc0f713995 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffItem.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffItem.cs @@ -31,7 +31,7 @@ public string TimeOffReasonId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"timeOffReasonId", n => { TimeOffReasonId = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string TimeOffReasonId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("timeOffReasonId", TimeOffReasonId); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs b/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs index 8a94e7f4aae..4aeb779d861 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs @@ -47,7 +47,7 @@ public TimeOffReason() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"iconType", n => { IconType = n.GetEnumValue(); } }, @@ -58,7 +58,7 @@ public TimeOffReason() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffReasonCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TimeOffReasonCollectionResponse.cs index b9bce0c9dc4..136c7be9004 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffReasonCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffReasonCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeOffReason.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffRequest.cs b/src/Microsoft.Graph/Generated/Models/TimeOffRequest.cs index ef8d4c7de68..b39c77fbc6b 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffRequest.cs @@ -47,7 +47,7 @@ public TimeOffRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, @@ -58,7 +58,7 @@ public TimeOffRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TimeOffRequestCollectionResponse.cs index 6a101caffa1..98a305ca011 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeOffRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TimeRange.cs b/src/Microsoft.Graph/Generated/Models/TimeRange.cs index 38f1d8dac90..89aa127bbb3 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeRange.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeRange.cs @@ -57,7 +57,7 @@ public static TimeRange CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endTime", n => { EndTime = n.GetTimeValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -68,7 +68,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteTimeValue("endTime", EndTime); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TimeSlot.cs b/src/Microsoft.Graph/Generated/Models/TimeSlot.cs index b403f49e81f..816deb471db 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeSlot.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeSlot.cs @@ -74,7 +74,7 @@ public static TimeSlot CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"end", n => { End = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("end", End); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TimeZoneBase.cs b/src/Microsoft.Graph/Generated/Models/TimeZoneBase.cs index 27f9e05f6c8..3f4da67c34e 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeZoneBase.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeZoneBase.cs @@ -64,7 +64,7 @@ public static TimeZoneBase CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -74,7 +74,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TimeZoneInformation.cs b/src/Microsoft.Graph/Generated/Models/TimeZoneInformation.cs index 6da50d5ad97..4217450f968 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeZoneInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeZoneInformation.cs @@ -74,7 +74,7 @@ public static TimeZoneInformation CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"alias", n => { Alias = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Todo.cs b/src/Microsoft.Graph/Generated/Models/Todo.cs index 74ca8d689d0..48c3edc5ac2 100644 --- a/src/Microsoft.Graph/Generated/Models/Todo.cs +++ b/src/Microsoft.Graph/Generated/Models/Todo.cs @@ -31,7 +31,7 @@ public List Lists { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lists", n => { Lists = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Lists { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("lists", Lists); diff --git a/src/Microsoft.Graph/Generated/Models/TodoTask.cs b/src/Microsoft.Graph/Generated/Models/TodoTask.cs index 512b9546267..5b66ad8e4f4 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTask.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTask.cs @@ -234,7 +234,7 @@ public string Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"attachmentSessions", n => { AttachmentSessions = n.GetCollectionOfObjectValues(AttachmentSession.CreateFromDiscriminatorValue)?.ToList(); } }, {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(AttachmentBase.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -262,7 +262,7 @@ public string Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("attachments", Attachments); diff --git a/src/Microsoft.Graph/Generated/Models/TodoTaskCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TodoTaskCollectionResponse.cs index 41b393bb17a..8eaa82297cb 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTaskCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTaskCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs b/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs index 1ce46bc4a42..0a049998e8f 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTaskList.cs @@ -74,7 +74,7 @@ public Microsoft.Graph.Models.WellknownListName? WellknownListName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"extensions", n => { Extensions = n.GetCollectionOfObjectValues(Extension.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -88,7 +88,7 @@ public Microsoft.Graph.Models.WellknownListName? WellknownListName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/TodoTaskListCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TodoTaskListCollectionResponse.cs index 7894f5016bb..06eab5eb49d 100644 --- a/src/Microsoft.Graph/Generated/Models/TodoTaskListCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TodoTaskListCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicy.cs b/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicy.cs index ce3e03143f1..66d73ac2626 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicy.cs @@ -23,7 +23,7 @@ public TokenIssuancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public TokenIssuancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicyCollectionResponse.cs index 5159c6cf5d4..541ffa91be1 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenIssuancePolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TokenIssuancePolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicy.cs b/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicy.cs index d80da5508db..ee289f12b45 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicy.cs @@ -23,7 +23,7 @@ public TokenLifetimePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -31,7 +31,7 @@ public TokenLifetimePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs index 803b6897439..fd39b35d41d 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenLifetimePolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TokenLifetimePolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TokenMeetingInfo.cs b/src/Microsoft.Graph/Generated/Models/TokenMeetingInfo.cs index 7a081f70cbc..393d1147e3a 100644 --- a/src/Microsoft.Graph/Generated/Models/TokenMeetingInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/TokenMeetingInfo.cs @@ -37,7 +37,7 @@ public TokenMeetingInfo() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"token", n => { Token = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public TokenMeetingInfo() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("token", Token); diff --git a/src/Microsoft.Graph/Generated/Models/ToneInfo.cs b/src/Microsoft.Graph/Generated/Models/ToneInfo.cs index 68df03e8b4c..abb1cb9e828 100644 --- a/src/Microsoft.Graph/Generated/Models/ToneInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/ToneInfo.cs @@ -56,7 +56,7 @@ public static ToneInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"sequenceId", n => { SequenceId = n.GetLongValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteLongValue("sequenceId", SequenceId); diff --git a/src/Microsoft.Graph/Generated/Models/Training.cs b/src/Microsoft.Graph/Generated/Models/Training.cs index b6481cf00de..85e43841ea0 100644 --- a/src/Microsoft.Graph/Generated/Models/Training.cs +++ b/src/Microsoft.Graph/Generated/Models/Training.cs @@ -150,7 +150,7 @@ public TrainingType? Type { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"availabilityStatus", n => { AvailabilityStatus = n.GetEnumValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, @@ -172,7 +172,7 @@ public TrainingType? Type { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("availabilityStatus", AvailabilityStatus); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs index 9e7e708b88f..0e99a0784a8 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Training.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingEventsContent.cs b/src/Microsoft.Graph/Generated/Models/TrainingEventsContent.cs index 54b8c1228d3..84fb66f1e2b 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingEventsContent.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingEventsContent.cs @@ -65,7 +65,7 @@ public static TrainingEventsContent CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedTrainingsInfos", n => { AssignedTrainingsInfos = n.GetCollectionOfObjectValues(AssignedTrainingInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("assignedTrainingsInfos", AssignedTrainingsInfos); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs index 5e9d736ddb1..ee015a64dca 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetail.cs @@ -116,7 +116,7 @@ public string Locale { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(EmailIdentity.CreateFromDiscriminatorValue); } }, @@ -133,7 +133,7 @@ public string Locale { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs index 380f2da17ae..9ace467d31f 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingLanguageDetailCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TrainingLanguageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs b/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs index ed6c599f265..71c3c2240c7 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingNotificationSetting.cs @@ -51,7 +51,7 @@ public TrainingNotificationSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"trainingAssignment", n => { TrainingAssignment = n.GetObjectValue(BaseEndUserNotification.CreateFromDiscriminatorValue); } }, {"trainingReminder", n => { TrainingReminder = n.GetObjectValue(TrainingReminderNotification.CreateFromDiscriminatorValue); } }, @@ -61,7 +61,7 @@ public TrainingNotificationSetting() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("trainingAssignment", TrainingAssignment); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs b/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs index acd234233ce..976c7cf17f4 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingReminderNotification.cs @@ -28,7 +28,7 @@ public TrainingReminderNotification() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deliveryFrequency", n => { DeliveryFrequency = n.GetEnumValue(); } }, }; @@ -37,7 +37,7 @@ public TrainingReminderNotification() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("deliveryFrequency", DeliveryFrequency); diff --git a/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs b/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs index 999b72aeff5..121f7968082 100644 --- a/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/TrainingSetting.cs @@ -59,7 +59,7 @@ public static TrainingSetting CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"settingType", n => { SettingType = n.GetEnumValue(); } }, @@ -69,7 +69,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("settingType", SettingType); diff --git a/src/Microsoft.Graph/Generated/Models/Trending.cs b/src/Microsoft.Graph/Generated/Models/Trending.cs index e634ec17103..dd8b03e642e 100644 --- a/src/Microsoft.Graph/Generated/Models/Trending.cs +++ b/src/Microsoft.Graph/Generated/Models/Trending.cs @@ -69,7 +69,7 @@ public double? Weight { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"resource", n => { Resource = n.GetObjectValue(Entity.CreateFromDiscriminatorValue); } }, @@ -82,7 +82,7 @@ public double? Weight { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/TrendingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TrendingCollectionResponse.cs index d9346184507..6bd177da40f 100644 --- a/src/Microsoft.Graph/Generated/Models/TrendingCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/TrendingCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Trending.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedApprovalStage.cs b/src/Microsoft.Graph/Generated/Models/UnifiedApprovalStage.cs index b4377c6210e..2edf14d22a3 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedApprovalStage.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedApprovalStage.cs @@ -94,7 +94,7 @@ public static UnifiedApprovalStage CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"approvalStageTimeOutInDays", n => { ApprovalStageTimeOutInDays = n.GetIntValue(); } }, {"escalationApprovers", n => { EscalationApprovers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -109,7 +109,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("approvalStageTimeOutInDays", ApprovalStageTimeOutInDays); writer.WriteCollectionOfObjectValues("escalationApprovers", EscalationApprovers); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceAction.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceAction.cs index b041c09f559..72d44690b1a 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceAction.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceAction.cs @@ -92,7 +92,7 @@ public string ResourceScopeId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"actionVerb", n => { ActionVerb = n.GetStringValue(); } }, {"authenticationContextId", n => { AuthenticationContextId = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public string ResourceScopeId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("actionVerb", ActionVerb); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceActionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceActionCollectionResponse.cs index 97ff0b4b5d0..95cd1fbf659 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceActionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceActionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRbacResourceAction.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespace.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespace.cs index 7941f5dd423..9162a96653c 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespace.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespace.cs @@ -45,7 +45,7 @@ public List ResourceActions { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, {"resourceActions", n => { ResourceActions = n.GetCollectionOfObjectValues(UnifiedRbacResourceAction.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public List ResourceActions { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespaceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespaceCollectionResponse.cs index 21176b3a694..c916ee622d8 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespaceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRbacResourceNamespaceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRbacResourceNamespace.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRole.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRole.cs index 21d186c333c..25c0a11e847 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRole.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRole.cs @@ -60,7 +60,7 @@ public static UnifiedRole CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"roleDefinitionId", n => { RoleDefinitionId = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("roleDefinitionId", RoleDefinitionId); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs index e03e21ac64f..a6a8c890c11 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignment.cs @@ -143,7 +143,7 @@ public string RoleDefinitionId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appScope", n => { AppScope = n.GetObjectValue(Microsoft.Graph.Models.AppScope.CreateFromDiscriminatorValue); } }, {"appScopeId", n => { AppScopeId = n.GetStringValue(); } }, @@ -160,7 +160,7 @@ public string RoleDefinitionId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("appScope", AppScope); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentCollectionResponse.cs index 308627e67da..ab93d6de0a1 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentSchedule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentSchedule.cs index 19d6afcde18..761b4e8f603 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentSchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentSchedule.cs @@ -73,7 +73,7 @@ public RequestSchedule ScheduleInfo { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue); } }, {"assignmentType", n => { AssignmentType = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public RequestSchedule ScheduleInfo { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("activatedUsing", ActivatedUsing); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleCollectionResponse.cs index 96449ceba11..4ceb24913fc 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstance.cs index b687663041e..0e55a95e1ba 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstance.cs @@ -53,7 +53,7 @@ public string MemberType { set { BackingStore?.Set("memberType", value); } } #endif - /// The identifier of the role assignment in Azure AD. Supports $filter (eq, ne). + /// The identifier of the role assignment in Microsoft Entra. Supports $filter (eq, ne). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RoleAssignmentOriginId { @@ -97,7 +97,7 @@ public DateTimeOffset? StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue); } }, {"assignmentType", n => { AssignmentType = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public DateTimeOffset? StartDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("activatedUsing", ActivatedUsing); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstanceCollectionResponse.cs index 3b7370683cb..f56321e0fbd 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleInstanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequest.cs index 5361be27850..ca83d75b894 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequest.cs @@ -223,7 +223,7 @@ public Microsoft.Graph.Models.TicketInfo TicketInfo { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"action", n => { Action = n.GetEnumValue(); } }, {"activatedUsing", n => { ActivatedUsing = n.GetObjectValue(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue); } }, @@ -247,7 +247,7 @@ public Microsoft.Graph.Models.TicketInfo TicketInfo { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("action", Action); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequestCollectionResponse.cs index c8f1c9e4662..b4f2619bfe6 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleAssignmentScheduleRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinition.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinition.cs index 7347a01c970..8fd29dd3563 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinition.cs @@ -34,7 +34,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? InheritsPermissionsFrom { @@ -48,7 +48,7 @@ public List InheritsPermissionsFrom { set { BackingStore?.Set("inheritsPermissionsFrom", value); } } #endif - /// Flag indicating whether the role definition is part of the default set included in Azure Active Directory (Azure AD) or a custom definition. Read-only. Supports $filter (eq, in). + /// Flag indicating whether the role definition is part of the default set included in Microsoft Entra or a custom definition. Read-only. Supports $filter (eq, in). public bool? IsBuiltIn { get { return BackingStore?.Get("isBuiltIn"); } set { BackingStore?.Set("isBuiltIn", value); } @@ -125,7 +125,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinitionCollectionResponse.cs index a25981e9670..916a7d6b0f0 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinitionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleDefinitionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilitySchedule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilitySchedule.cs index 167f767078a..f98cf951153 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilitySchedule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilitySchedule.cs @@ -45,7 +45,7 @@ public RequestSchedule ScheduleInfo { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"memberType", n => { MemberType = n.GetStringValue(); } }, {"scheduleInfo", n => { ScheduleInfo = n.GetObjectValue(RequestSchedule.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public RequestSchedule ScheduleInfo { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("memberType", MemberType); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleCollectionResponse.cs index ad285abae7b..74eea27e56f 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstance.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstance.cs index cac55a14be1..a41e7c61ecf 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstance.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstance.cs @@ -55,7 +55,7 @@ public DateTimeOffset? StartDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"memberType", n => { MemberType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public DateTimeOffset? StartDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstanceCollectionResponse.cs index 09419125c89..176831c7051 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleInstanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequest.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequest.cs index 82ab69a1647..b07ff5424b2 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequest.cs @@ -209,7 +209,7 @@ public Microsoft.Graph.Models.TicketInfo TicketInfo { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"action", n => { Action = n.GetEnumValue(); } }, {"appScope", n => { AppScope = n.GetObjectValue(Microsoft.Graph.Models.AppScope.CreateFromDiscriminatorValue); } }, @@ -232,7 +232,7 @@ public Microsoft.Graph.Models.TicketInfo TicketInfo { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("action", Action); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequestCollectionResponse.cs index 05fbbb16e52..5cb7e8b395c 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleEligibilityScheduleRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs index 8d750b3ebd3..2a89461c95a 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicy.cs @@ -125,7 +125,7 @@ public string ScopeType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -142,7 +142,7 @@ public string ScopeType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyApprovalRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyApprovalRule.cs index fb2cdd9b3a8..149c4f564e3 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyApprovalRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyApprovalRule.cs @@ -37,7 +37,7 @@ public UnifiedRoleManagementPolicyApprovalRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"setting", n => { Setting = n.GetObjectValue(ApprovalSettings.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public UnifiedRoleManagementPolicyApprovalRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("setting", Setting); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs index 508f9d7fd84..7e399b24b74 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignment.cs @@ -34,7 +34,7 @@ public string PolicyId { set { BackingStore?.Set("policyId", value); } } #endif - /// For Azure AD roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq). + /// For Microsoft Entra roles policy, it's the identifier of the role definition object where the policy applies. For PIM for groups membership and ownership, it's either member or owner. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RoleDefinitionId { @@ -87,7 +87,7 @@ public string ScopeType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"policy", n => { Policy = n.GetObjectValue(UnifiedRoleManagementPolicy.CreateFromDiscriminatorValue); } }, {"policyId", n => { PolicyId = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public string ScopeType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("policy", Policy); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignmentCollectionResponse.cs index ec142994e94..e38e4411dcf 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignmentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAssignmentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleManagementPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs index f1b4bd96ee7..eda529a3bbb 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyAuthenticationContextRule.cs @@ -42,7 +42,7 @@ public UnifiedRoleManagementPolicyAuthenticationContextRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"claimValue", n => { ClaimValue = n.GetStringValue(); } }, {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, @@ -52,7 +52,7 @@ public UnifiedRoleManagementPolicyAuthenticationContextRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("claimValue", ClaimValue); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyCollectionResponse.cs index 23b85534c2e..c57564cb6dc 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleManagementPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyEnablementRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyEnablementRule.cs index 1ab152a9026..02f8cbd8c39 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyEnablementRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyEnablementRule.cs @@ -37,7 +37,7 @@ public UnifiedRoleManagementPolicyEnablementRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"enabledRules", n => { EnabledRules = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -46,7 +46,7 @@ public UnifiedRoleManagementPolicyEnablementRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("enabledRules", EnabledRules); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyExpirationRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyExpirationRule.cs index 229a3801301..93233934be4 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyExpirationRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyExpirationRule.cs @@ -33,7 +33,7 @@ public UnifiedRoleManagementPolicyExpirationRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isExpirationRequired", n => { IsExpirationRequired = n.GetBoolValue(); } }, {"maximumDuration", n => { MaximumDuration = n.GetTimeSpanValue(); } }, @@ -43,7 +43,7 @@ public UnifiedRoleManagementPolicyExpirationRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isExpirationRequired", IsExpirationRequired); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyNotificationRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyNotificationRule.cs index b2d4d6e447e..4c613770618 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyNotificationRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyNotificationRule.cs @@ -84,7 +84,7 @@ public UnifiedRoleManagementPolicyNotificationRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isDefaultRecipientsEnabled", n => { IsDefaultRecipientsEnabled = n.GetBoolValue(); } }, {"notificationLevel", n => { NotificationLevel = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public UnifiedRoleManagementPolicyNotificationRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isDefaultRecipientsEnabled", IsDefaultRecipientsEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs index 564352c090d..ebd7cfd6ab9 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRule.cs @@ -39,7 +39,7 @@ public UnifiedRoleManagementPolicyRuleTarget Target { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"target", n => { Target = n.GetObjectValue(UnifiedRoleManagementPolicyRuleTarget.CreateFromDiscriminatorValue); } }, }; @@ -48,7 +48,7 @@ public UnifiedRoleManagementPolicyRuleTarget Target { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("target", Target); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleCollectionResponse.cs index f1a5c4e2299..480aba22a89 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleManagementPolicyRule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTarget.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTarget.cs index a0b18706e33..944d877e7a3 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTarget.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleManagementPolicyRuleTarget.cs @@ -130,7 +130,7 @@ public static UnifiedRoleManagementPolicyRuleTarget CreateFromDiscriminatorValue /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"caller", n => { Caller = n.GetStringValue(); } }, {"enforcedSettings", n => { EnforcedSettings = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("caller", Caller); writer.WriteCollectionOfPrimitiveValues("enforcedSettings", EnforcedSettings); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRolePermission.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRolePermission.cs index 4a39d539e18..2ca99e1a552 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRolePermission.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRolePermission.cs @@ -88,7 +88,7 @@ public static UnifiedRolePermission CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedResourceActions", n => { AllowedResourceActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"condition", n => { Condition = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("allowedResourceActions", AllowedResourceActions); writer.WriteStringValue("condition", Condition); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs index d1b681bad41..38060e6a1da 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleBase.cs @@ -172,7 +172,7 @@ public string Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appScope", n => { AppScope = n.GetObjectValue(Microsoft.Graph.Models.AppScope.CreateFromDiscriminatorValue); } }, {"appScopeId", n => { AppScopeId = n.GetStringValue(); } }, @@ -192,7 +192,7 @@ public string Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("appScope", AppScope); diff --git a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs index f09586f5455..8f4595826aa 100644 --- a/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs +++ b/src/Microsoft.Graph/Generated/Models/UnifiedRoleScheduleInstanceBase.cs @@ -134,7 +134,7 @@ public string RoleDefinitionId { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appScope", n => { AppScope = n.GetObjectValue(Microsoft.Graph.Models.AppScope.CreateFromDiscriminatorValue); } }, {"appScopeId", n => { AppScopeId = n.GetStringValue(); } }, @@ -150,7 +150,7 @@ public string RoleDefinitionId { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("appScope", AppScope); diff --git a/src/Microsoft.Graph/Generated/Models/UnmuteParticipantOperation.cs b/src/Microsoft.Graph/Generated/Models/UnmuteParticipantOperation.cs index b206db6b552..fc4c9c4ba16 100644 --- a/src/Microsoft.Graph/Generated/Models/UnmuteParticipantOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/UnmuteParticipantOperation.cs @@ -17,7 +17,7 @@ public class UnmuteParticipantOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class UnmuteParticipantOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs b/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs index e47a30528d7..8364fb3752c 100644 --- a/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs +++ b/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs @@ -102,7 +102,7 @@ public static UpdateAllowedCombinationsResult CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, {"conditionalAccessReferences", n => { ConditionalAccessReferences = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("additionalInformation", AdditionalInformation); writer.WriteCollectionOfPrimitiveValues("conditionalAccessReferences", ConditionalAccessReferences); diff --git a/src/Microsoft.Graph/Generated/Models/UpdateRecordingStatusOperation.cs b/src/Microsoft.Graph/Generated/Models/UpdateRecordingStatusOperation.cs index 5aec2fc51f8..2c5245d238c 100644 --- a/src/Microsoft.Graph/Generated/Models/UpdateRecordingStatusOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/UpdateRecordingStatusOperation.cs @@ -17,7 +17,7 @@ public class UpdateRecordingStatusOperation : CommsOperation, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class UpdateRecordingStatusOperation : CommsOperation, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/UpdateWindowsDeviceAccountActionParameter.cs b/src/Microsoft.Graph/Generated/Models/UpdateWindowsDeviceAccountActionParameter.cs index bd55ce5b518..fe63c3dd7fa 100644 --- a/src/Microsoft.Graph/Generated/Models/UpdateWindowsDeviceAccountActionParameter.cs +++ b/src/Microsoft.Graph/Generated/Models/UpdateWindowsDeviceAccountActionParameter.cs @@ -112,7 +112,7 @@ public static UpdateWindowsDeviceAccountActionParameter CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"calendarSyncEnabled", n => { CalendarSyncEnabled = n.GetBoolValue(); } }, {"deviceAccount", n => { DeviceAccount = n.GetObjectValue(WindowsDeviceAccount.CreateFromDiscriminatorValue); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("calendarSyncEnabled", CalendarSyncEnabled); writer.WriteObjectValue("deviceAccount", DeviceAccount); diff --git a/src/Microsoft.Graph/Generated/Models/UploadSession.cs b/src/Microsoft.Graph/Generated/Models/UploadSession.cs index e1197c3b00e..b7e14151cda 100644 --- a/src/Microsoft.Graph/Generated/Models/UploadSession.cs +++ b/src/Microsoft.Graph/Generated/Models/UploadSession.cs @@ -79,7 +79,7 @@ public static UploadSession CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"nextExpectedRanges", n => { NextExpectedRanges = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteCollectionOfPrimitiveValues("nextExpectedRanges", NextExpectedRanges); diff --git a/src/Microsoft.Graph/Generated/Models/UriClickSecurityState.cs b/src/Microsoft.Graph/Generated/Models/UriClickSecurityState.cs index 049b17eba7f..d34735666b7 100644 --- a/src/Microsoft.Graph/Generated/Models/UriClickSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/UriClickSecurityState.cs @@ -121,7 +121,7 @@ public static UriClickSecurityState CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"clickAction", n => { ClickAction = n.GetStringValue(); } }, {"clickDateTime", n => { ClickDateTime = n.GetDateTimeOffsetValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clickAction", ClickAction); writer.WriteDateTimeOffsetValue("clickDateTime", ClickDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UrlAssessmentRequest.cs b/src/Microsoft.Graph/Generated/Models/UrlAssessmentRequest.cs index 212685bce22..417c749b854 100644 --- a/src/Microsoft.Graph/Generated/Models/UrlAssessmentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/UrlAssessmentRequest.cs @@ -37,7 +37,7 @@ public UrlAssessmentRequest() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"url", n => { Url = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public UrlAssessmentRequest() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("url", Url); diff --git a/src/Microsoft.Graph/Generated/Models/UsageDetails.cs b/src/Microsoft.Graph/Generated/Models/UsageDetails.cs index 9e2c13c2041..aaf20436079 100644 --- a/src/Microsoft.Graph/Generated/Models/UsageDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/UsageDetails.cs @@ -56,7 +56,7 @@ public static UsageDetails CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastAccessedDateTime", n => { LastAccessedDateTime = n.GetDateTimeOffsetValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastAccessedDateTime", LastAccessedDateTime); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UsedInsight.cs b/src/Microsoft.Graph/Generated/Models/UsedInsight.cs index 6144de5b1cc..545fcd7a393 100644 --- a/src/Microsoft.Graph/Generated/Models/UsedInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/UsedInsight.cs @@ -73,7 +73,7 @@ public Microsoft.Graph.Models.ResourceVisualization ResourceVisualization { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lastUsed", n => { LastUsed = n.GetObjectValue(UsageDetails.CreateFromDiscriminatorValue); } }, {"resource", n => { Resource = n.GetObjectValue(Entity.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public Microsoft.Graph.Models.ResourceVisualization ResourceVisualization { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("lastUsed", LastUsed); diff --git a/src/Microsoft.Graph/Generated/Models/UsedInsightCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UsedInsightCollectionResponse.cs index 86bf2a9e132..0599c9ed2c9 100644 --- a/src/Microsoft.Graph/Generated/Models/UsedInsightCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UsedInsightCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UsedInsight.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index 08d72a3df71..8f86117d3e2 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -310,7 +310,7 @@ public string Country { set { BackingStore?.Set("country", value); } } #endif - /// The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Azure AD. Property is null for some users created before June 2018 and on-premises users that were synced to Azure AD before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). + /// The date and time the user was created, in ISO 8601 format and in UTC time. The value cannot be modified and is automatically populated when the entity is created. Nullable. For on-premises users, the value represents when they were first created in Microsoft Entra ID. Property is null for some users created before June 2018 and on-premises users that were synced to Microsoft Entra ID before June 2018. Read-only. Returned only on $select. Supports $filter (eq, ne, not , ge, le, in). public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } @@ -479,7 +479,7 @@ public string EmployeeId { set { BackingStore?.Set("employeeId", value); } } #endif - /// The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. + /// The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Microsoft Entra roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. public DateTimeOffset? EmployeeLeaveDateTime { get { return BackingStore?.Get("employeeLeaveDateTime"); } set { BackingStore?.Set("employeeLeaveDateTime", value); } @@ -709,7 +709,7 @@ public List JoinedTeams { set { BackingStore?.Set("joinedTeams", value); } } #endif - /// The time when this Azure AD user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. + /// The time when this Microsoft Entra user last changed their password or when their password was created, whichever date the latest action was performed. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. public DateTimeOffset? LastPasswordChangeDateTime { get { return BackingStore?.Get("lastPasswordChangeDateTime"); } set { BackingStore?.Set("lastPasswordChangeDateTime", value); } @@ -966,7 +966,7 @@ public List OnlineMeetings { set { BackingStore?.Set("onlineMeetings", value); } } #endif - /// Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. + /// Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesDistinguishedName { @@ -980,7 +980,7 @@ public string OnPremisesDistinguishedName { set { BackingStore?.Set("onPremisesDistinguishedName", value); } } #endif - /// Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. + /// Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesDomainName { @@ -1008,7 +1008,7 @@ public Microsoft.Graph.Models.OnPremisesExtensionAttributes OnPremisesExtensionA set { BackingStore?.Set("onPremisesExtensionAttributes", value); } } #endif - /// This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. + /// This property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object. This property must be specified when creating a new user account in the Graph if you're using a federated domain for the user's userPrincipalName (UPN) property. NOTE: The $ and _ characters can't be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesImmutableId { @@ -1041,7 +1041,7 @@ public List OnPremisesProvisioningErrors { set { BackingStore?.Set("onPremisesProvisioningErrors", value); } } #endif - /// Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). + /// Contains the on-premises samAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesSamAccountName { @@ -1069,12 +1069,12 @@ public string OnPremisesSecurityIdentifier { set { BackingStore?.Set("onPremisesSecurityIdentifier", value); } } #endif - /// true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). + /// true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get { return BackingStore?.Get("onPremisesSyncEnabled"); } set { BackingStore?.Set("onPremisesSyncEnabled", value); } } - /// Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). + /// Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesUserPrincipalName { @@ -1144,7 +1144,7 @@ public List OwnedObjects { set { BackingStore?.Set("ownedObjects", value); } } #endif - /// Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Azure AD password policies. Supports $filter (ne, not, and eq on null values). + /// Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. Returned only on $select. For more information on the default password policies, see Microsoft Entra password policies. Supports $filter (ne, not, and eq on null values). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PasswordPolicies { @@ -1457,7 +1457,7 @@ public bool? ShowInAddressList { get { return BackingStore?.Get("showInAddressList"); } set { BackingStore?.Set("showInAddressList", value); } } - /// Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020. + /// Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require a Microsoft Entra ID P1 or P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.SignInActivity? SignInActivity { @@ -1602,7 +1602,7 @@ public string UserPrincipalName { set { BackingStore?.Set("userPrincipalName", value); } } #endif - /// A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Azure Active Directory? + /// A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Microsoft Entra ID? #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserType { @@ -1633,7 +1633,7 @@ public User() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"aboutMe", n => { AboutMe = n.GetStringValue(); } }, {"accountEnabled", n => { AccountEnabled = n.GetBoolValue(); } }, @@ -1765,7 +1765,7 @@ public User() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("aboutMe", AboutMe); diff --git a/src/Microsoft.Graph/Generated/Models/UserActivity.cs b/src/Microsoft.Graph/Generated/Models/UserActivity.cs index a671074b6f0..2183eb0befb 100644 --- a/src/Microsoft.Graph/Generated/Models/UserActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/UserActivity.cs @@ -177,7 +177,7 @@ public VisualInfo VisualElements { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activationUrl", n => { ActivationUrl = n.GetStringValue(); } }, {"activitySourceHost", n => { ActivitySourceHost = n.GetStringValue(); } }, @@ -199,7 +199,7 @@ public VisualInfo VisualElements { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("activationUrl", ActivationUrl); diff --git a/src/Microsoft.Graph/Generated/Models/UserActivityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserActivityCollectionResponse.cs index 06067762c10..60dfebfe666 100644 --- a/src/Microsoft.Graph/Generated/Models/UserActivityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserActivityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserAttributeValuesItem.cs b/src/Microsoft.Graph/Generated/Models/UserAttributeValuesItem.cs index 48ec94761d4..f91aaafcd8b 100644 --- a/src/Microsoft.Graph/Generated/Models/UserAttributeValuesItem.cs +++ b/src/Microsoft.Graph/Generated/Models/UserAttributeValuesItem.cs @@ -79,7 +79,7 @@ public static UserAttributeValuesItem CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isDefault", IsDefault); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs index 716cfadb107..5f2dbaf29b3 100644 --- a/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserConsentRequest.cs b/src/Microsoft.Graph/Generated/Models/UserConsentRequest.cs index fc769d30029..1c0722c7300 100644 --- a/src/Microsoft.Graph/Generated/Models/UserConsentRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/UserConsentRequest.cs @@ -45,7 +45,7 @@ public string Reason { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"approval", n => { Approval = n.GetObjectValue(Microsoft.Graph.Models.Approval.CreateFromDiscriminatorValue); } }, {"reason", n => { Reason = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string Reason { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("approval", Approval); diff --git a/src/Microsoft.Graph/Generated/Models/UserConsentRequestCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserConsentRequestCollectionResponse.cs index 00a44d8e143..6cf441d6ea0 100644 --- a/src/Microsoft.Graph/Generated/Models/UserConsentRequestCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserConsentRequestCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserConsentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.cs index 99bf24653c0..7e86a281c81 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.cs @@ -96,7 +96,7 @@ public bool? IsMostUsedVersion { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appCrashCount", n => { AppCrashCount = n.GetIntValue(); } }, {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, @@ -112,7 +112,7 @@ public bool? IsMostUsedVersion { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("appCrashCount", AppCrashCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.cs index 35e53554c42..afafd22c6f1 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse.cs @@ -31,7 +31,7 @@ public List V /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List V /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.cs index ed95f21f861..e032bf3e5b1 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.cs @@ -114,7 +114,7 @@ public DateTimeOffset? ProcessedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appCrashCount", n => { AppCrashCount = n.GetIntValue(); } }, {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public DateTimeOffset? ProcessedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("appCrashCount", AppCrashCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.cs index a47a194f7c0..ff99c2dacfc 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse.cs @@ -31,7 +31,7 @@ public List /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.cs index 21172640d63..36ba5a83809 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.cs @@ -110,7 +110,7 @@ public string OsVersion { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeDeviceCount", n => { ActiveDeviceCount = n.GetIntValue(); } }, {"appCrashCount", n => { AppCrashCount = n.GetIntValue(); } }, @@ -127,7 +127,7 @@ public string OsVersion { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeDeviceCount", ActiveDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.cs index 7abfb4bae90..8f37c263bbc 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformance.cs index 9fdfebbaf8c..a9661a1647b 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformance.cs @@ -92,7 +92,7 @@ public int? MeanTimeToFailureInMinutes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeDeviceCount", n => { ActiveDeviceCount = n.GetIntValue(); } }, {"appCrashCount", n => { AppCrashCount = n.GetIntValue(); } }, @@ -109,7 +109,7 @@ public int? MeanTimeToFailureInMinutes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeDeviceCount", ActiveDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.cs index 0f7bcc9ee8b..efd112d81ce 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthApplicationPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.cs index 0767877c910..94b66e3079a 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformance.cs @@ -68,7 +68,7 @@ public double? ModelAppHealthScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeDeviceCount", n => { ActiveDeviceCount = n.GetIntValue(); } }, {"deviceManufacturer", n => { DeviceManufacturer = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public double? ModelAppHealthScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeDeviceCount", ActiveDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.cs index 444a5c43a1c..5ced201a9c3 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthDeviceModelPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformance.cs index 9c040f329d1..4a762ce37ee 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformance.cs @@ -111,7 +111,7 @@ public DateTimeOffset? ProcessedDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appCrashCount", n => { AppCrashCount = n.GetIntValue(); } }, {"appHangCount", n => { AppHangCount = n.GetIntValue(); } }, @@ -130,7 +130,7 @@ public DateTimeOffset? ProcessedDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("appCrashCount", AppCrashCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.cs index 71e703d1467..1d1ed4fae99 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.cs index bb15a991ccb..4a9d08a9b24 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetails.cs @@ -109,7 +109,7 @@ public string EventType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, {"appPublisher", n => { AppPublisher = n.GetStringValue(); } }, @@ -124,7 +124,7 @@ public string EventType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appDisplayName", AppDisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.cs index 1232a91ce4d..3f0b0791fc7 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthDevicePerformanceDetails.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformance.cs index 899fda4188d..b4875a927a8 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformance.cs @@ -63,7 +63,7 @@ public double? OsVersionAppHealthScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeDeviceCount", n => { ActiveDeviceCount = n.GetIntValue(); } }, {"meanTimeToFailureInMinutes", n => { MeanTimeToFailureInMinutes = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public double? OsVersionAppHealthScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("activeDeviceCount", ActiveDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.cs index ef1a7b898f1..188075344ae 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsAppHealthOSVersionPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAutopilotDevicesSummary.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAutopilotDevicesSummary.cs index 358f2d60e83..05f687201dd 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAutopilotDevicesSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsAutopilotDevicesSummary.cs @@ -64,7 +64,7 @@ public static UserExperienceAnalyticsAutopilotDevicesSummary CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"devicesNotAutopilotRegistered", n => { DevicesNotAutopilotRegistered = n.GetIntValue(); } }, {"devicesWithoutAutopilotProfileAssigned", n => { DevicesWithoutAutopilotProfileAssigned = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("devicesNotAutopilotRegistered", DevicesNotAutopilotRegistered); writer.WriteIntValue("devicesWithoutAutopilotProfileAssigned", DevicesWithoutAutopilotProfileAssigned); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaseline.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaseline.cs index f9ffb1cbcea..53ba21ffddf 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaseline.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaseline.cs @@ -142,7 +142,7 @@ public UserExperienceAnalyticsCategory WorkFromAnywhereMetrics { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appHealthMetrics", n => { AppHealthMetrics = n.GetObjectValue(UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); } }, {"batteryHealthMetrics", n => { BatteryHealthMetrics = n.GetObjectValue(UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); } }, @@ -160,7 +160,7 @@ public UserExperienceAnalyticsCategory WorkFromAnywhereMetrics { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("appHealthMetrics", AppHealthMetrics); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaselineCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaselineCollectionResponse.cs index 0fd4c2281dd..f2aa4b6996c 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaselineCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsBaselineCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsBaseline.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategory.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategory.cs index e46c9a3f037..fa42c71a709 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategory.cs @@ -48,7 +48,7 @@ public List MetricValues { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"insights", n => { Insights = n.GetCollectionOfObjectValues(UserExperienceAnalyticsInsight.CreateFromDiscriminatorValue)?.ToList(); } }, {"metricValues", n => { MetricValues = n.GetCollectionOfObjectValues(UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -58,7 +58,7 @@ public List MetricValues { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("insights", Insights); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategoryCollectionResponse.cs index 87369a87b11..2d50f7e5dc3 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCategoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudIdentityDevicesSummary.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudIdentityDevicesSummary.cs index 9ab69f89124..adb46262b77 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudIdentityDevicesSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudIdentityDevicesSummary.cs @@ -54,7 +54,7 @@ public static UserExperienceAnalyticsCloudIdentityDevicesSummary CreateFromDiscr /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceWithoutCloudIdentityCount", n => { DeviceWithoutCloudIdentityCount = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -64,7 +64,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceWithoutCloudIdentityCount", DeviceWithoutCloudIdentityCount); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudManagementDevicesSummary.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudManagementDevicesSummary.cs index ce70341580c..6fd16052929 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudManagementDevicesSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsCloudManagementDevicesSummary.cs @@ -64,7 +64,7 @@ public static UserExperienceAnalyticsCloudManagementDevicesSummary CreateFromDis /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"coManagedDeviceCount", n => { CoManagedDeviceCount = n.GetIntValue(); } }, {"intuneDeviceCount", n => { IntuneDeviceCount = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("coManagedDeviceCount", CoManagedDeviceCount); writer.WriteIntValue("intuneDeviceCount", IntuneDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs index 0b35a341d76..e78e9ec1e18 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformance.cs @@ -156,7 +156,7 @@ public double? StartupPerformanceScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"averageBlueScreens", n => { AverageBlueScreens = n.GetDoubleValue(); } }, {"averageRestarts", n => { AverageRestarts = n.GetDoubleValue(); } }, @@ -184,7 +184,7 @@ public double? StartupPerformanceScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("averageBlueScreens", AverageBlueScreens); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformanceCollectionResponse.cs index 5ee6964a8d7..d9ac9e71c05 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDevicePerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs index 1e56ea7f2c3..cc48fea1263 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScores.cs @@ -92,7 +92,7 @@ public double? WorkFromAnywhereScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appReliabilityScore", n => { AppReliabilityScore = n.GetDoubleValue(); } }, {"batteryHealthScore", n => { BatteryHealthScore = n.GetDoubleValue(); } }, @@ -109,7 +109,7 @@ public double? WorkFromAnywhereScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("appReliabilityScore", AppReliabilityScore); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScoresCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScoresCollectionResponse.cs index 69b80f49a73..266e87aa881 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScoresCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceScoresCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs index 39e792b21a3..058afe96037 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistory.cs @@ -136,7 +136,7 @@ public int? TotalLoginTimeInMs { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"coreBootTimeInMs", n => { CoreBootTimeInMs = n.GetIntValue(); } }, {"coreLoginTimeInMs", n => { CoreLoginTimeInMs = n.GetIntValue(); } }, @@ -160,7 +160,7 @@ public int? TotalLoginTimeInMs { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("coreBootTimeInMs", CoreBootTimeInMs); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.cs index d667f4fc6c5..6fe38db37a0 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs index 757568ef570..bb4c1e9c5e1 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcess.cs @@ -81,7 +81,7 @@ public int? StartupImpactInMs { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"managedDeviceId", n => { ManagedDeviceId = n.GetStringValue(); } }, {"processName", n => { ProcessName = n.GetStringValue(); } }, @@ -94,7 +94,7 @@ public int? StartupImpactInMs { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("managedDeviceId", ManagedDeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.cs index c02ca4a2204..edfd95cadb5 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs index 015148eebd9..9840d0b29d7 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformance.cs @@ -77,7 +77,7 @@ public long? TotalImpactInMs { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceCount", n => { DeviceCount = n.GetLongValue(); } }, {"medianImpactInMs", n => { MedianImpactInMs = n.GetLongValue(); } }, @@ -91,7 +91,7 @@ public long? TotalImpactInMs { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteLongValue("deviceCount", DeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse.cs index ed0b26df81f..60a90a51299 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsight.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsight.cs index 9764aaa83c3..801aa9e8228 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsight.cs @@ -96,7 +96,7 @@ public static UserExperienceAnalyticsInsight CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"insightId", n => { InsightId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -109,7 +109,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("insightId", InsightId); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsightValue.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsightValue.cs index 76f4eea019c..e1306a07936 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsightValue.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsInsightValue.cs @@ -54,7 +54,7 @@ public static UserExperienceAnalyticsInsightValue CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -63,7 +63,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetric.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetric.cs index fca209ce306..f31a77bb39e 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetric.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetric.cs @@ -39,7 +39,7 @@ public double? Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"unit", n => { Unit = n.GetStringValue(); } }, {"value", n => { Value = n.GetDoubleValue(); } }, @@ -49,7 +49,7 @@ public double? Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("unit", Unit); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricCollectionResponse.cs index 51de0bf48e0..9c680369aa2 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistory.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistory.cs index 6e535b05bba..e2f357ad208 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistory.cs @@ -53,7 +53,7 @@ public string MetricType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceId", n => { DeviceId = n.GetStringValue(); } }, {"metricDateTime", n => { MetricDateTime = n.GetDateTimeOffsetValue(); } }, @@ -64,7 +64,7 @@ public string MetricType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("deviceId", DeviceId); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistoryCollectionResponse.cs index 2c68bdf40e1..91463b773df 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsMetricHistoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs index a1a66c71a12..3a22ed58868 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScores.cs @@ -83,7 +83,7 @@ public double? WorkFromAnywhereScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appReliabilityScore", n => { AppReliabilityScore = n.GetDoubleValue(); } }, {"batteryHealthScore", n => { BatteryHealthScore = n.GetDoubleValue(); } }, @@ -100,7 +100,7 @@ public double? WorkFromAnywhereScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("appReliabilityScore", AppReliabilityScore); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScoresCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScoresCollectionResponse.cs index 3239c870c68..fb0464ee41b 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScoresCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsModelScoresCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsOverview.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsOverview.cs index a7c1f15f930..be411c5d69f 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsOverview.cs @@ -34,7 +34,7 @@ public List Insights { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"insights", n => { Insights = n.GetCollectionOfObjectValues(UserExperienceAnalyticsInsight.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -43,7 +43,7 @@ public List Insights { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("insights", Insights); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs index 78bb244b9bc..e9ab299f31d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistory.cs @@ -25,7 +25,7 @@ public DateTimeOffset? StartupDateTime { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"startupDateTime", n => { StartupDateTime = n.GetDateTimeOffsetValue(); } }, }; @@ -34,7 +34,7 @@ public DateTimeOffset? StartupDateTime { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("startupDateTime", StartupDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistoryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistoryCollectionResponse.cs index bb71d4f874b..c320843de0d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistoryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsScoreHistoryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsScoreHistory.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsSettings.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsSettings.cs index 1eb31ff8a5d..d120e073c78 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsSettings.cs @@ -54,7 +54,7 @@ public static UserExperienceAnalyticsSettings CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"configurationManagerDataConnectorConfigured", n => { ConfigurationManagerDataConnectorConfigured = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -64,7 +64,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("configurationManagerDataConnectorConfigured", ConfigurationManagerDataConnectorConfigured); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWindows10DevicesSummary.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWindows10DevicesSummary.cs index 2becc1bbee6..826286529f5 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWindows10DevicesSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWindows10DevicesSummary.cs @@ -54,7 +54,7 @@ public static UserExperienceAnalyticsWindows10DevicesSummary CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"unsupportedOSversionDeviceCount", n => { UnsupportedOSversionDeviceCount = n.GetIntValue(); } }, @@ -64,7 +64,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("unsupportedOSversionDeviceCount", UnsupportedOSversionDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevice.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevice.cs index fd7e3813438..6857355efec 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevice.cs @@ -289,7 +289,7 @@ public double? WorkFromAnywhereScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"autoPilotProfileAssigned", n => { AutoPilotProfileAssigned = n.GetBoolValue(); } }, {"autoPilotRegistered", n => { AutoPilotRegistered = n.GetBoolValue(); } }, @@ -331,7 +331,7 @@ public double? WorkFromAnywhereScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("autoPilotProfileAssigned", AutoPilotProfileAssigned); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.cs index a3ba251aa43..fed06c65ef3 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsWorkFromAnywhereDevice.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.cs index 684559a9525..9d1d3a7a215 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereDevicesSummary.cs @@ -155,7 +155,7 @@ public static UserExperienceAnalyticsWorkFromAnywhereDevicesSummary CreateFromDi /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"autopilotDevicesSummary", n => { AutopilotDevicesSummary = n.GetObjectValue(UserExperienceAnalyticsAutopilotDevicesSummary.CreateFromDiscriminatorValue); } }, {"cloudIdentityDevicesSummary", n => { CloudIdentityDevicesSummary = n.GetObjectValue(UserExperienceAnalyticsCloudIdentityDevicesSummary.CreateFromDiscriminatorValue); } }, @@ -178,7 +178,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("autopilotDevicesSummary", AutopilotDevicesSummary); writer.WriteObjectValue("cloudIdentityDevicesSummary", CloudIdentityDevicesSummary); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.cs index 320c655a8bd..4f9e33b11bb 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.cs @@ -75,7 +75,7 @@ public int? UpgradeEligibleDeviceCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"osCheckFailedPercentage", n => { OsCheckFailedPercentage = n.GetDoubleValue(); } }, {"processor64BitCheckFailedPercentage", n => { Processor64BitCheckFailedPercentage = n.GetDoubleValue(); } }, @@ -94,7 +94,7 @@ public int? UpgradeEligibleDeviceCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("osCheckFailedPercentage", OsCheckFailedPercentage); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs index b7a18f626d3..0a8df8df156 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetric.cs @@ -34,7 +34,7 @@ public List MetricDevices { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"metricDevices", n => { MetricDevices = n.GetCollectionOfObjectValues(UserExperienceAnalyticsWorkFromAnywhereDevice.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -43,7 +43,7 @@ public List MetricDevices { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("metricDevices", MetricDevices); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.cs index a7799fa57e7..cdfc9464384 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsWorkFromAnywhereMetric.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs index 1153009acd7..a88c5e462a9 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformance.cs @@ -83,7 +83,7 @@ public double? WorkFromAnywhereScore { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cloudIdentityScore", n => { CloudIdentityScore = n.GetDoubleValue(); } }, {"cloudManagementScore", n => { CloudManagementScore = n.GetDoubleValue(); } }, @@ -100,7 +100,7 @@ public double? WorkFromAnywhereScore { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDoubleValue("cloudIdentityScore", CloudIdentityScore); diff --git a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.cs index 5356951f96d..ce40ec62b9d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserExperienceAnalyticsWorkFromAnywhereModelPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowApiConnectorConfiguration.cs b/src/Microsoft.Graph/Generated/Models/UserFlowApiConnectorConfiguration.cs index 12c1b9194ad..21deb1f9069 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowApiConnectorConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowApiConnectorConfiguration.cs @@ -74,7 +74,7 @@ public static UserFlowApiConnectorConfiguration CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"postAttributeCollection", n => { PostAttributeCollection = n.GetObjectValue(IdentityApiConnector.CreateFromDiscriminatorValue); } }, @@ -85,7 +85,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("postAttributeCollection", PostAttributeCollection); diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs index 19c445d5a42..7fe1e24294f 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfiguration.cs @@ -64,7 +64,7 @@ public List OverridesPages { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"defaultPages", n => { DefaultPages = n.GetCollectionOfObjectValues(UserFlowLanguagePage.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public List OverridesPages { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("defaultPages", DefaultPages); diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfigurationCollectionResponse.cs index 5e583b167a6..939fe70c816 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfigurationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguageConfigurationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserFlowLanguageConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs index 928c5d607d7..fe2c4eef143 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePage.cs @@ -17,7 +17,7 @@ public class UserFlowLanguagePage : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class UserFlowLanguagePage : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePageCollectionResponse.cs index ec97e9534d3..92712d81fdb 100644 --- a/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePageCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserFlowLanguagePageCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserFlowLanguagePage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserIdentity.cs b/src/Microsoft.Graph/Generated/Models/UserIdentity.cs index d99575935ff..e2d6b02e094 100644 --- a/src/Microsoft.Graph/Generated/Models/UserIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/UserIdentity.cs @@ -51,7 +51,7 @@ public UserIdentity() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public UserIdentity() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("ipAddress", IpAddress); diff --git a/src/Microsoft.Graph/Generated/Models/UserInstallStateSummary.cs b/src/Microsoft.Graph/Generated/Models/UserInstallStateSummary.cs index 25f8ad087d4..589dfc00346 100644 --- a/src/Microsoft.Graph/Generated/Models/UserInstallStateSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserInstallStateSummary.cs @@ -63,7 +63,7 @@ public string UserName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceStates", n => { DeviceStates = n.GetCollectionOfObjectValues(DeviceInstallState.CreateFromDiscriminatorValue)?.ToList(); } }, {"failedDeviceCount", n => { FailedDeviceCount = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public string UserName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("deviceStates", DeviceStates); diff --git a/src/Microsoft.Graph/Generated/Models/UserInstallStateSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserInstallStateSummaryCollectionResponse.cs index d14d1a659bb..492f6ce35ef 100644 --- a/src/Microsoft.Graph/Generated/Models/UserInstallStateSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserInstallStateSummaryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserInstallStateSummary.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserLastSignInRecommendationInsightSetting.cs b/src/Microsoft.Graph/Generated/Models/UserLastSignInRecommendationInsightSetting.cs index e27789dd8ae..bde4240d47d 100644 --- a/src/Microsoft.Graph/Generated/Models/UserLastSignInRecommendationInsightSetting.cs +++ b/src/Microsoft.Graph/Generated/Models/UserLastSignInRecommendationInsightSetting.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class UserLastSignInRecommendationInsightSetting : AccessReviewRecommendationInsightSetting, IParsable { - /// Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Azure AD roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. + /// Optional. Indicates the time period of inactivity (with respect to the start date of the review instance) that recommendations will be configured from. The recommendation will be to deny if the user is inactive during the look-back duration. For reviews of groups and Microsoft Entra roles, any duration is accepted. For reviews of applications, 30 days is the maximum duration. If not specified, the duration is 30 days. public TimeSpan? RecommendationLookBackDuration { get { return BackingStore?.Get("recommendationLookBackDuration"); } set { BackingStore?.Set("recommendationLookBackDuration", value); } @@ -33,7 +33,7 @@ public UserLastSignInRecommendationInsightSetting() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"recommendationLookBackDuration", n => { RecommendationLookBackDuration = n.GetTimeSpanValue(); } }, {"signInScope", n => { SignInScope = n.GetEnumValue(); } }, @@ -43,7 +43,7 @@ public UserLastSignInRecommendationInsightSetting() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteTimeSpanValue("recommendationLookBackDuration", RecommendationLookBackDuration); diff --git a/src/Microsoft.Graph/Generated/Models/UserPrint.cs b/src/Microsoft.Graph/Generated/Models/UserPrint.cs index 67f47996e25..3247d445990 100644 --- a/src/Microsoft.Graph/Generated/Models/UserPrint.cs +++ b/src/Microsoft.Graph/Generated/Models/UserPrint.cs @@ -60,7 +60,7 @@ public static UserPrint CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"recentPrinterShares", n => { RecentPrinterShares = n.GetCollectionOfObjectValues(PrinterShare.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("recentPrinterShares", RecentPrinterShares); diff --git a/src/Microsoft.Graph/Generated/Models/UserRegistrationDetails.cs b/src/Microsoft.Graph/Generated/Models/UserRegistrationDetails.cs index a86bcb1946a..569f26955db 100644 --- a/src/Microsoft.Graph/Generated/Models/UserRegistrationDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/UserRegistrationDetails.cs @@ -128,7 +128,7 @@ public SignInUserType? UserType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"isAdmin", n => { IsAdmin = n.GetBoolValue(); } }, {"isMfaCapable", n => { IsMfaCapable = n.GetBoolValue(); } }, @@ -151,7 +151,7 @@ public SignInUserType? UserType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("isAdmin", IsAdmin); diff --git a/src/Microsoft.Graph/Generated/Models/UserRegistrationDetailsCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserRegistrationDetailsCollectionResponse.cs index 52634668980..7d0f3ecc5c6 100644 --- a/src/Microsoft.Graph/Generated/Models/UserRegistrationDetailsCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserRegistrationDetailsCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserRegistrationDetails.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureCount.cs b/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureCount.cs index d54c4a3ea0a..bbbb811a148 100644 --- a/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureCount.cs +++ b/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureCount.cs @@ -56,7 +56,7 @@ public static UserRegistrationFeatureCount CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"feature", n => { Feature = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("feature", Feature); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureSummary.cs b/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureSummary.cs index af61f842014..ad09da0b192 100644 --- a/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserRegistrationFeatureSummary.cs @@ -75,7 +75,7 @@ public static UserRegistrationFeatureSummary CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"totalUserCount", n => { TotalUserCount = n.GetLongValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteLongValue("totalUserCount", TotalUserCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodCount.cs b/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodCount.cs index dd720a99fad..c8c80f3aac4 100644 --- a/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodCount.cs +++ b/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodCount.cs @@ -65,7 +65,7 @@ public static UserRegistrationMethodCount CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authenticationMethod", n => { AuthenticationMethod = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("authenticationMethod", AuthenticationMethod); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodSummary.cs b/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodSummary.cs index fe0b91eeb1b..e5cd6b79113 100644 --- a/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/UserRegistrationMethodSummary.cs @@ -75,7 +75,7 @@ public static UserRegistrationMethodSummary CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"totalUserCount", n => { TotalUserCount = n.GetLongValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteLongValue("totalUserCount", TotalUserCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallation.cs b/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallation.cs index 5fb38178eb8..218a908336f 100644 --- a/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallation.cs +++ b/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallation.cs @@ -37,7 +37,7 @@ public UserScopeTeamsAppInstallation() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"chat", n => { Chat = n.GetObjectValue(Microsoft.Graph.Models.Chat.CreateFromDiscriminatorValue); } }, }; @@ -46,7 +46,7 @@ public UserScopeTeamsAppInstallation() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("chat", Chat); diff --git a/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallationCollectionResponse.cs index 3b6f30d6a64..6bb95833ff6 100644 --- a/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/UserScopeTeamsAppInstallationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserScopeTeamsAppInstallation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/UserSecurityState.cs b/src/Microsoft.Graph/Generated/Models/UserSecurityState.cs index c176390b006..62b0490ebf1 100644 --- a/src/Microsoft.Graph/Generated/Models/UserSecurityState.cs +++ b/src/Microsoft.Graph/Generated/Models/UserSecurityState.cs @@ -197,7 +197,7 @@ public static UserSecurityState CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"aadUserId", n => { AadUserId = n.GetStringValue(); } }, {"accountName", n => { AccountName = n.GetStringValue(); } }, @@ -220,7 +220,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("aadUserId", AadUserId); writer.WriteStringValue("accountName", AccountName); diff --git a/src/Microsoft.Graph/Generated/Models/UserSettings.cs b/src/Microsoft.Graph/Generated/Models/UserSettings.cs index e27309e7643..377455ccbfe 100644 --- a/src/Microsoft.Graph/Generated/Models/UserSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/UserSettings.cs @@ -41,7 +41,7 @@ public Microsoft.Graph.Models.ShiftPreferences ShiftPreferences { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"contributionToContentDiscoveryAsOrganizationDisabled", n => { ContributionToContentDiscoveryAsOrganizationDisabled = n.GetBoolValue(); } }, {"contributionToContentDiscoveryDisabled", n => { ContributionToContentDiscoveryDisabled = n.GetBoolValue(); } }, @@ -52,7 +52,7 @@ public Microsoft.Graph.Models.ShiftPreferences ShiftPreferences { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("contributionToContentDiscoveryAsOrganizationDisabled", ContributionToContentDiscoveryAsOrganizationDisabled); diff --git a/src/Microsoft.Graph/Generated/Models/UserSignInInsight.cs b/src/Microsoft.Graph/Generated/Models/UserSignInInsight.cs index 41801cdfbda..3b4b974be3b 100644 --- a/src/Microsoft.Graph/Generated/Models/UserSignInInsight.cs +++ b/src/Microsoft.Graph/Generated/Models/UserSignInInsight.cs @@ -28,7 +28,7 @@ public UserSignInInsight() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"lastSignInDateTime", n => { LastSignInDateTime = n.GetDateTimeOffsetValue(); } }, }; @@ -37,7 +37,7 @@ public UserSignInInsight() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("lastSignInDateTime", LastSignInDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UserSimulationDetails.cs b/src/Microsoft.Graph/Generated/Models/UserSimulationDetails.cs index 4a18f55b080..c08f02314f3 100644 --- a/src/Microsoft.Graph/Generated/Models/UserSimulationDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/UserSimulationDetails.cs @@ -118,7 +118,7 @@ public static UserSimulationDetails CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedTrainingsCount", n => { AssignedTrainingsCount = n.GetIntValue(); } }, {"completedTrainingsCount", n => { CompletedTrainingsCount = n.GetIntValue(); } }, @@ -136,7 +136,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("assignedTrainingsCount", AssignedTrainingsCount); writer.WriteIntValue("completedTrainingsCount", CompletedTrainingsCount); diff --git a/src/Microsoft.Graph/Generated/Models/UserSimulationEventInfo.cs b/src/Microsoft.Graph/Generated/Models/UserSimulationEventInfo.cs index 8726a218415..36a489d6b22 100644 --- a/src/Microsoft.Graph/Generated/Models/UserSimulationEventInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/UserSimulationEventInfo.cs @@ -107,7 +107,7 @@ public static UserSimulationEventInfo CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"browser", n => { Browser = n.GetStringValue(); } }, {"eventDateTime", n => { EventDateTime = n.GetDateTimeOffsetValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("browser", Browser); writer.WriteDateTimeOffsetValue("eventDateTime", EventDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs b/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs index b6cdf71b4c9..9e494be49d4 100644 --- a/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs +++ b/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs @@ -45,7 +45,7 @@ public List InstalledApps { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"associatedTeams", n => { AssociatedTeams = n.GetCollectionOfObjectValues(AssociatedTeamInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"installedApps", n => { InstalledApps = n.GetCollectionOfObjectValues(UserScopeTeamsAppInstallation.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -55,7 +55,7 @@ public List InstalledApps { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("associatedTeams", AssociatedTeams); diff --git a/src/Microsoft.Graph/Generated/Models/UserTrainingContentEventInfo.cs b/src/Microsoft.Graph/Generated/Models/UserTrainingContentEventInfo.cs index 795f5fa5279..ae38cdcf1ca 100644 --- a/src/Microsoft.Graph/Generated/Models/UserTrainingContentEventInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/UserTrainingContentEventInfo.cs @@ -98,7 +98,7 @@ public static UserTrainingContentEventInfo CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"browser", n => { Browser = n.GetStringValue(); } }, {"contentDateTime", n => { ContentDateTime = n.GetDateTimeOffsetValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("browser", Browser); writer.WriteDateTimeOffsetValue("contentDateTime", ContentDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/UserTrainingEventInfo.cs b/src/Microsoft.Graph/Generated/Models/UserTrainingEventInfo.cs index 9bc2dbbd300..e6bf8c4ba8f 100644 --- a/src/Microsoft.Graph/Generated/Models/UserTrainingEventInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/UserTrainingEventInfo.cs @@ -107,7 +107,7 @@ public static UserTrainingEventInfo CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"latestTrainingStatus", n => { LatestTrainingStatus = n.GetEnumValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteEnumValue("latestTrainingStatus", LatestTrainingStatus); diff --git a/src/Microsoft.Graph/Generated/Models/UserTrainingStatusInfo.cs b/src/Microsoft.Graph/Generated/Models/UserTrainingStatusInfo.cs index a6b3f57ff80..90c6dd7a6fa 100644 --- a/src/Microsoft.Graph/Generated/Models/UserTrainingStatusInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/UserTrainingStatusInfo.cs @@ -75,7 +75,7 @@ public static UserTrainingStatusInfo CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"completionDateTime", n => { CompletionDateTime = n.GetDateTimeOffsetValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("assignedDateTime", AssignedDateTime); writer.WriteDateTimeOffsetValue("completionDateTime", CompletionDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs b/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs index 75f38266096..2ba4d02bf4d 100644 --- a/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs +++ b/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs @@ -98,7 +98,7 @@ public static VerifiedDomain CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"capabilities", n => { Capabilities = n.GetStringValue(); } }, {"isDefault", n => { IsDefault = n.GetBoolValue(); } }, @@ -112,7 +112,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("capabilities", Capabilities); writer.WriteBoolValue("isDefault", IsDefault); diff --git a/src/Microsoft.Graph/Generated/Models/VerifiedPublisher.cs b/src/Microsoft.Graph/Generated/Models/VerifiedPublisher.cs index 1b1b72d0ad0..3a22f7ec667 100644 --- a/src/Microsoft.Graph/Generated/Models/VerifiedPublisher.cs +++ b/src/Microsoft.Graph/Generated/Models/VerifiedPublisher.cs @@ -79,7 +79,7 @@ public static VerifiedPublisher CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addedDateTime", n => { AddedDateTime = n.GetDateTimeOffsetValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("addedDateTime", AddedDateTime); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Video.cs b/src/Microsoft.Graph/Generated/Models/Video.cs index bd5bab69ec2..a7be449e701 100644 --- a/src/Microsoft.Graph/Generated/Models/Video.cs +++ b/src/Microsoft.Graph/Generated/Models/Video.cs @@ -114,7 +114,7 @@ public static Video CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"audioBitsPerSample", n => { AudioBitsPerSample = n.GetIntValue(); } }, {"audioChannels", n => { AudioChannels = n.GetIntValue(); } }, @@ -133,7 +133,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("audioBitsPerSample", AudioBitsPerSample); writer.WriteIntValue("audioChannels", AudioChannels); diff --git a/src/Microsoft.Graph/Generated/Models/VisualInfo.cs b/src/Microsoft.Graph/Generated/Models/VisualInfo.cs index c68e6eb6180..1e98da4c61f 100644 --- a/src/Microsoft.Graph/Generated/Models/VisualInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/VisualInfo.cs @@ -116,7 +116,7 @@ public static VisualInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attribution", n => { Attribution = n.GetObjectValue(ImageInfo.CreateFromDiscriminatorValue); } }, {"backgroundColor", n => { BackgroundColor = n.GetStringValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attribution", Attribution); writer.WriteStringValue("backgroundColor", BackgroundColor); diff --git a/src/Microsoft.Graph/Generated/Models/VoiceAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/VoiceAuthenticationMethodConfiguration.cs index 173a4615293..4a2de937757 100644 --- a/src/Microsoft.Graph/Generated/Models/VoiceAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/VoiceAuthenticationMethodConfiguration.cs @@ -42,7 +42,7 @@ public VoiceAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(AuthenticationMethodTarget.CreateFromDiscriminatorValue)?.ToList(); } }, {"isOfficePhoneAllowed", n => { IsOfficePhoneAllowed = n.GetBoolValue(); } }, @@ -52,7 +52,7 @@ public VoiceAuthenticationMethodConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("includeTargets", IncludeTargets); diff --git a/src/Microsoft.Graph/Generated/Models/VppLicensingType.cs b/src/Microsoft.Graph/Generated/Models/VppLicensingType.cs index b283bc67f87..8f64657406d 100644 --- a/src/Microsoft.Graph/Generated/Models/VppLicensingType.cs +++ b/src/Microsoft.Graph/Generated/Models/VppLicensingType.cs @@ -59,7 +59,7 @@ public static VppLicensingType CreateFromDiscriminatorValue(IParseNode parseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"supportsDeviceLicensing", n => { SupportsDeviceLicensing = n.GetBoolValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteBoolValue("supportsDeviceLicensing", SupportsDeviceLicensing); diff --git a/src/Microsoft.Graph/Generated/Models/VppToken.cs b/src/Microsoft.Graph/Generated/Models/VppToken.cs index 7d2de1d5df7..d9f6ca92a97 100644 --- a/src/Microsoft.Graph/Generated/Models/VppToken.cs +++ b/src/Microsoft.Graph/Generated/Models/VppToken.cs @@ -111,7 +111,7 @@ public Microsoft.Graph.Models.VppTokenAccountType? VppTokenAccountType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appleId", n => { AppleId = n.GetStringValue(); } }, {"automaticallyUpdateApps", n => { AutomaticallyUpdateApps = n.GetBoolValue(); } }, @@ -130,7 +130,7 @@ public Microsoft.Graph.Models.VppTokenAccountType? VppTokenAccountType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appleId", AppleId); diff --git a/src/Microsoft.Graph/Generated/Models/VppTokenCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/VppTokenCollectionResponse.cs index 59189dcdf12..d0db5b792c1 100644 --- a/src/Microsoft.Graph/Generated/Models/VppTokenCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/VppTokenCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(VppToken.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/VulnerabilityState.cs b/src/Microsoft.Graph/Generated/Models/VulnerabilityState.cs index 7526c104969..0b2a2a5c6f7 100644 --- a/src/Microsoft.Graph/Generated/Models/VulnerabilityState.cs +++ b/src/Microsoft.Graph/Generated/Models/VulnerabilityState.cs @@ -79,7 +79,7 @@ public static VulnerabilityState CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cve", n => { Cve = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("cve", Cve); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs b/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs index 52036aa089a..a6afba0dd47 100644 --- a/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs +++ b/src/Microsoft.Graph/Generated/Models/WatermarkProtectionValues.cs @@ -56,7 +56,7 @@ public static WatermarkProtectionValues CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isEnabledForContentSharing", n => { IsEnabledForContentSharing = n.GetBoolValue(); } }, {"isEnabledForVideo", n => { IsEnabledForVideo = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isEnabledForContentSharing", IsEnabledForContentSharing); writer.WriteBoolValue("isEnabledForVideo", IsEnabledForVideo); diff --git a/src/Microsoft.Graph/Generated/Models/WebApp.cs b/src/Microsoft.Graph/Generated/Models/WebApp.cs index 616c318ba4b..4752a15200c 100644 --- a/src/Microsoft.Graph/Generated/Models/WebApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WebApp.cs @@ -45,7 +45,7 @@ public WebApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appUrl", n => { AppUrl = n.GetStringValue(); } }, {"useManagedBrowser", n => { UseManagedBrowser = n.GetBoolValue(); } }, @@ -55,7 +55,7 @@ public WebApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appUrl", AppUrl); diff --git a/src/Microsoft.Graph/Generated/Models/WebApplication.cs b/src/Microsoft.Graph/Generated/Models/WebApplication.cs index 729e2955ade..bed0ee284f6 100644 --- a/src/Microsoft.Graph/Generated/Models/WebApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/WebApplication.cs @@ -116,7 +116,7 @@ public static WebApplication CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"homePageUrl", n => { HomePageUrl = n.GetStringValue(); } }, {"implicitGrantSettings", n => { ImplicitGrantSettings = n.GetObjectValue(Microsoft.Graph.Models.ImplicitGrantSettings.CreateFromDiscriminatorValue); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("homePageUrl", HomePageUrl); writer.WriteObjectValue("implicitGrantSettings", ImplicitGrantSettings); diff --git a/src/Microsoft.Graph/Generated/Models/Website.cs b/src/Microsoft.Graph/Generated/Models/Website.cs index a275947e2f5..3abdbad34a8 100644 --- a/src/Microsoft.Graph/Generated/Models/Website.cs +++ b/src/Microsoft.Graph/Generated/Models/Website.cs @@ -79,7 +79,7 @@ public static Website CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobApp.cs b/src/Microsoft.Graph/Generated/Models/Win32LobApp.cs index 38abb117c2a..0b7671d7277 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobApp.cs @@ -163,7 +163,7 @@ public Win32LobApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicableArchitectures", n => { ApplicableArchitectures = n.GetEnumValue(); } }, {"installCommandLine", n => { InstallCommandLine = n.GetStringValue(); } }, @@ -184,7 +184,7 @@ public Win32LobApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("applicableArchitectures", ApplicableArchitectures); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppAssignmentSettings.cs index d619ca3323f..0b587689b4c 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppAssignmentSettings.cs @@ -64,7 +64,7 @@ public Win32LobAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deliveryOptimizationPriority", n => { DeliveryOptimizationPriority = n.GetEnumValue(); } }, {"installTimeSettings", n => { InstallTimeSettings = n.GetObjectValue(MobileAppInstallTimeSettings.CreateFromDiscriminatorValue); } }, @@ -76,7 +76,7 @@ public Win32LobAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("deliveryOptimizationPriority", DeliveryOptimizationPriority); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppCollectionResponse.cs index 711e4def5c7..45e427b5cce 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Win32LobApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemRule.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemRule.cs index d7facf5390d..00fc4095603 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemRule.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppFileSystemRule.cs @@ -83,7 +83,7 @@ public Win32LobAppFileSystemRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"check32BitOn64System", n => { Check32BitOn64System = n.GetBoolValue(); } }, {"comparisonValue", n => { ComparisonValue = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public Win32LobAppFileSystemRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("check32BitOn64System", Check32BitOn64System); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppInstallExperience.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppInstallExperience.cs index cb01d4350bd..7507a41196e 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppInstallExperience.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppInstallExperience.cs @@ -59,7 +59,7 @@ public static Win32LobAppInstallExperience CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceRestartBehavior", n => { DeviceRestartBehavior = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("deviceRestartBehavior", DeviceRestartBehavior); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiInformation.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiInformation.cs index 60d87ef6041..86c100e35e6 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppMsiInformation.cs @@ -129,7 +129,7 @@ public static Win32LobAppMsiInformation CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"packageType", n => { PackageType = n.GetEnumValue(); } }, @@ -145,7 +145,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("packageType", PackageType); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRule.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRule.cs index 730baf2a653..f10c9fa7e22 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRule.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppPowerShellScriptRule.cs @@ -93,7 +93,7 @@ public Win32LobAppPowerShellScriptRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"comparisonValue", n => { ComparisonValue = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -109,7 +109,7 @@ public Win32LobAppPowerShellScriptRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("comparisonValue", ComparisonValue); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppProductCodeRule.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppProductCodeRule.cs index eceeecccc94..a3c769b8a58 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppProductCodeRule.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppProductCodeRule.cs @@ -59,7 +59,7 @@ public Win32LobAppProductCodeRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"productCode", n => { ProductCode = n.GetStringValue(); } }, {"productVersion", n => { ProductVersion = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public Win32LobAppProductCodeRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("productCode", ProductCode); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRule.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRule.cs index b25e73d35cb..321be34a27a 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRule.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRegistryRule.cs @@ -83,7 +83,7 @@ public Win32LobAppRegistryRule() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"check32BitOn64System", n => { Check32BitOn64System = n.GetBoolValue(); } }, {"comparisonValue", n => { ComparisonValue = n.GetStringValue(); } }, @@ -97,7 +97,7 @@ public Win32LobAppRegistryRule() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("check32BitOn64System", Check32BitOn64System); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartSettings.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartSettings.cs index 5c6734079c9..6203ed8e8d8 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRestartSettings.cs @@ -64,7 +64,7 @@ public static Win32LobAppRestartSettings CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"countdownDisplayBeforeRestartInMinutes", n => { CountdownDisplayBeforeRestartInMinutes = n.GetIntValue(); } }, {"gracePeriodInMinutes", n => { GracePeriodInMinutes = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("countdownDisplayBeforeRestartInMinutes", CountdownDisplayBeforeRestartInMinutes); writer.WriteIntValue("gracePeriodInMinutes", GracePeriodInMinutes); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCode.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCode.cs index db3dd35ce49..2674fc83c0f 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCode.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppReturnCode.cs @@ -59,7 +59,7 @@ public static Win32LobAppReturnCode CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"returnCode", n => { ReturnCode = n.GetIntValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("returnCode", ReturnCode); diff --git a/src/Microsoft.Graph/Generated/Models/Win32LobAppRule.cs b/src/Microsoft.Graph/Generated/Models/Win32LobAppRule.cs index 6d8811f2309..9396318943d 100644 --- a/src/Microsoft.Graph/Generated/Models/Win32LobAppRule.cs +++ b/src/Microsoft.Graph/Generated/Models/Win32LobAppRule.cs @@ -61,7 +61,7 @@ public static Win32LobAppRule CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"ruleType", n => { RuleType = n.GetEnumValue(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("ruleType", RuleType); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10CompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/Windows10CompliancePolicy.cs index e731c32bdaa..5320b8a7c9b 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10CompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10CompliancePolicy.cs @@ -157,7 +157,7 @@ public Windows10CompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bitLockerEnabled", n => { BitLockerEnabled = n.GetBoolValue(); } }, {"codeIntegrityEnabled", n => { CodeIntegrityEnabled = n.GetBoolValue(); } }, @@ -184,7 +184,7 @@ public Windows10CompliancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("bitLockerEnabled", BitLockerEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10CustomConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10CustomConfiguration.cs index 6462f013a9a..3706e485906 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10CustomConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10CustomConfiguration.cs @@ -40,7 +40,7 @@ public Windows10CustomConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"omaSettings", n => { OmaSettings = n.GetCollectionOfObjectValues(OmaSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -49,7 +49,7 @@ public Windows10CustomConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("omaSettings", OmaSettings); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs index ab00354e19d..59333a232f5 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10EndpointProtectionConfiguration.cs @@ -287,7 +287,7 @@ public Windows10EndpointProtectionConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appLockerApplicationControl", n => { AppLockerApplicationControl = n.GetEnumValue(); } }, {"applicationGuardAllowPersistence", n => { ApplicationGuardAllowPersistence = n.GetBoolValue(); } }, @@ -331,7 +331,7 @@ public Windows10EndpointProtectionConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("applicationGuardAllowPersistence", ApplicationGuardAllowPersistence); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10EnterpriseModernAppManagementConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10EnterpriseModernAppManagementConfiguration.cs index e053b7a9351..f4a32bbea70 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10EnterpriseModernAppManagementConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10EnterpriseModernAppManagementConfiguration.cs @@ -31,7 +31,7 @@ public Windows10EnterpriseModernAppManagementConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"uninstallBuiltInApps", n => { UninstallBuiltInApps = n.GetBoolValue(); } }, }; @@ -40,7 +40,7 @@ public Windows10EnterpriseModernAppManagementConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("uninstallBuiltInApps", UninstallBuiltInApps); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs index 416c93889b6..ac54a2c7339 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10GeneralConfiguration.cs @@ -1212,7 +1212,7 @@ public Windows10GeneralConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountsBlockAddingNonMicrosoftAccountEmail", n => { AccountsBlockAddingNonMicrosoftAccountEmail = n.GetBoolValue(); } }, {"antiTheftModeBlocked", n => { AntiTheftModeBlocked = n.GetBoolValue(); } }, @@ -1421,7 +1421,7 @@ public Windows10GeneralConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("accountsBlockAddingNonMicrosoftAccountEmail", AccountsBlockAddingNonMicrosoftAccountEmail); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs index 0564ff2292e..b931bd571a6 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10MobileCompliancePolicy.cs @@ -124,7 +124,7 @@ public Windows10MobileCompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bitLockerEnabled", n => { BitLockerEnabled = n.GetBoolValue(); } }, {"codeIntegrityEnabled", n => { CodeIntegrityEnabled = n.GetBoolValue(); } }, @@ -148,7 +148,7 @@ public Windows10MobileCompliancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("bitLockerEnabled", BitLockerEnabled); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10NetworkProxyServer.cs b/src/Microsoft.Graph/Generated/Models/Windows10NetworkProxyServer.cs index 25b18dcb7b6..0e2d55691c2 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10NetworkProxyServer.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10NetworkProxyServer.cs @@ -82,7 +82,7 @@ public static Windows10NetworkProxyServer CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"address", n => { Address = n.GetStringValue(); } }, {"exceptions", n => { Exceptions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -94,7 +94,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("address", Address); writer.WriteCollectionOfPrimitiveValues("exceptions", Exceptions); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10SecureAssessmentConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10SecureAssessmentConfiguration.cs index e4a6f69f5b7..3f75976ae2b 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10SecureAssessmentConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10SecureAssessmentConfiguration.cs @@ -69,7 +69,7 @@ public Windows10SecureAssessmentConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowPrinting", n => { AllowPrinting = n.GetBoolValue(); } }, {"allowScreenCapture", n => { AllowScreenCapture = n.GetBoolValue(); } }, @@ -82,7 +82,7 @@ public Windows10SecureAssessmentConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowPrinting", AllowPrinting); diff --git a/src/Microsoft.Graph/Generated/Models/Windows10TeamGeneralConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows10TeamGeneralConfiguration.cs index f00ce6ecba7..1f0bd7ca3a5 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows10TeamGeneralConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows10TeamGeneralConfiguration.cs @@ -154,7 +154,7 @@ public Windows10TeamGeneralConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"azureOperationalInsightsBlockTelemetry", n => { AzureOperationalInsightsBlockTelemetry = n.GetBoolValue(); } }, {"azureOperationalInsightsWorkspaceId", n => { AzureOperationalInsightsWorkspaceId = n.GetStringValue(); } }, @@ -182,7 +182,7 @@ public Windows10TeamGeneralConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("azureOperationalInsightsBlockTelemetry", AzureOperationalInsightsBlockTelemetry); diff --git a/src/Microsoft.Graph/Generated/Models/Windows81CompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/Windows81CompliancePolicy.cs index 0bfb7dafbdd..227437243c4 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows81CompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows81CompliancePolicy.cs @@ -99,7 +99,7 @@ public Windows81CompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"osMaximumVersion", n => { OsMaximumVersion = n.GetStringValue(); } }, {"osMinimumVersion", n => { OsMinimumVersion = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public Windows81CompliancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("osMaximumVersion", OsMaximumVersion); diff --git a/src/Microsoft.Graph/Generated/Models/Windows81GeneralConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Windows81GeneralConfiguration.cs index d3198ec1e3a..b2423d2c232 100644 --- a/src/Microsoft.Graph/Generated/Models/Windows81GeneralConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/Windows81GeneralConfiguration.cs @@ -218,7 +218,7 @@ public Windows81GeneralConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"accountsBlockAddingNonMicrosoftAccountEmail", n => { AccountsBlockAddingNonMicrosoftAccountEmail = n.GetBoolValue(); } }, {"applyOnlyToWindows81", n => { ApplyOnlyToWindows81 = n.GetBoolValue(); } }, @@ -259,7 +259,7 @@ public Windows81GeneralConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("accountsBlockAddingNonMicrosoftAccountEmail", AccountsBlockAddingNonMicrosoftAccountEmail); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsAppX.cs b/src/Microsoft.Graph/Generated/Models/WindowsAppX.cs index 6169d9a3806..2e90ce78d6e 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsAppX.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsAppX.cs @@ -106,7 +106,7 @@ public WindowsAppX() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicableArchitectures", n => { ApplicableArchitectures = n.GetEnumValue(); } }, {"identityName", n => { IdentityName = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public WindowsAppX() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("applicableArchitectures", ApplicableArchitectures); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsAppXAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsAppXAppAssignmentSettings.cs index 5ae43378db5..46f56a7bf38 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsAppXAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsAppXAppAssignmentSettings.cs @@ -31,7 +31,7 @@ public WindowsAppXAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"useDeviceContext", n => { UseDeviceContext = n.GetBoolValue(); } }, }; @@ -40,7 +40,7 @@ public WindowsAppXAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("useDeviceContext", UseDeviceContext); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsAppXCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsAppXCollectionResponse.cs index 08a8da99f44..f0fdd0697df 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsAppXCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsAppXCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsAppX.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentity.cs b/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentity.cs index 52556ac0296..6f3fb924e1e 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentity.cs @@ -226,7 +226,7 @@ public string UserPrincipalName { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"addressableUserName", n => { AddressableUserName = n.GetStringValue(); } }, {"azureActiveDirectoryDeviceId", n => { AzureActiveDirectoryDeviceId = n.GetStringValue(); } }, @@ -250,7 +250,7 @@ public string UserPrincipalName { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("addressableUserName", AddressableUserName); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentityCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentityCollectionResponse.cs index 91a3025465f..527cc04359b 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentityCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeviceIdentityCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDefenderAdvancedThreatProtectionConfiguration.cs b/src/Microsoft.Graph/Generated/Models/WindowsDefenderAdvancedThreatProtectionConfiguration.cs index db681fac806..9e82194e393 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDefenderAdvancedThreatProtectionConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDefenderAdvancedThreatProtectionConfiguration.cs @@ -36,7 +36,7 @@ public WindowsDefenderAdvancedThreatProtectionConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowSampleSharing", n => { AllowSampleSharing = n.GetBoolValue(); } }, {"enableExpeditedTelemetryReporting", n => { EnableExpeditedTelemetryReporting = n.GetBoolValue(); } }, @@ -46,7 +46,7 @@ public WindowsDefenderAdvancedThreatProtectionConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowSampleSharing", AllowSampleSharing); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDefenderScanActionResult.cs b/src/Microsoft.Graph/Generated/Models/WindowsDefenderScanActionResult.cs index 26cae6f9ef7..5ae85c36e25 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDefenderScanActionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDefenderScanActionResult.cs @@ -34,7 +34,7 @@ public string ScanType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"scanType", n => { ScanType = n.GetStringValue(); } }, }; @@ -43,7 +43,7 @@ public string ScanType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("scanType", ScanType); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceADAccount.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceADAccount.cs index bbf17d1a4f1..1f07bc3530d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceADAccount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceADAccount.cs @@ -51,7 +51,7 @@ public WindowsDeviceADAccount() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"domainName", n => { DomainName = n.GetStringValue(); } }, {"userName", n => { UserName = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public WindowsDeviceADAccount() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("domainName", DomainName); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceAccount.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceAccount.cs index 9497dae8eb3..ea278a60d03 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceAccount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceAccount.cs @@ -65,7 +65,7 @@ public static WindowsDeviceAccount CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"password", n => { Password = n.GetStringValue(); } }, @@ -75,7 +75,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("password", Password); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceAzureADAccount.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceAzureADAccount.cs index 9fbd7803fb4..6fadc2927fa 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceAzureADAccount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceAzureADAccount.cs @@ -37,7 +37,7 @@ public WindowsDeviceAzureADAccount() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, }; @@ -46,7 +46,7 @@ public WindowsDeviceAzureADAccount() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("userPrincipalName", UserPrincipalName); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareState.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareState.cs index 4013115b199..f005f5f1a73 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareState.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareState.cs @@ -88,7 +88,7 @@ public WindowsMalwareThreatState? ThreatState { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformationUrl", n => { AdditionalInformationUrl = n.GetStringValue(); } }, {"category", n => { Category = n.GetEnumValue(); } }, @@ -106,7 +106,7 @@ public WindowsMalwareThreatState? ThreatState { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("additionalInformationUrl", AdditionalInformationUrl); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareStateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareStateCollectionResponse.cs index c52d76fbca6..d4e1dc569be 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareStateCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceMalwareStateCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsDeviceMalwareState.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsFirewallNetworkProfile.cs b/src/Microsoft.Graph/Generated/Models/WindowsFirewallNetworkProfile.cs index f155ae5143a..12f1fa0ef87 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsFirewallNetworkProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsFirewallNetworkProfile.cs @@ -109,7 +109,7 @@ public static WindowsFirewallNetworkProfile CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"authorizedApplicationRulesFromGroupPolicyMerged", n => { AuthorizedApplicationRulesFromGroupPolicyMerged = n.GetBoolValue(); } }, {"connectionSecurityRulesFromGroupPolicyMerged", n => { ConnectionSecurityRulesFromGroupPolicyMerged = n.GetBoolValue(); } }, @@ -130,7 +130,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("authorizedApplicationRulesFromGroupPolicyMerged", AuthorizedApplicationRulesFromGroupPolicyMerged); writer.WriteBoolValue("connectionSecurityRulesFromGroupPolicyMerged", ConnectionSecurityRulesFromGroupPolicyMerged); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs index 5f79c4f7503..6a6ade717da 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs @@ -61,7 +61,7 @@ public WindowsHelloForBusinessAuthenticationMethod() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"device", n => { Device = n.GetObjectValue(Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue); } }, @@ -73,7 +73,7 @@ public WindowsHelloForBusinessAuthenticationMethod() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethodCollectionResponse.cs index fb710aa1a79..003fbf984e0 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethodCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethodCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsHelloForBusinessAuthenticationMethod.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs index 85bcc8ea398..1195a4c3602 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtection.cs @@ -291,7 +291,7 @@ public WindowsInformationProtection() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"azureRightsManagementServicesAllowed", n => { AzureRightsManagementServicesAllowed = n.GetBoolValue(); } }, @@ -324,7 +324,7 @@ public WindowsInformationProtection() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("assignments", Assignments); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionApp.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionApp.cs index 35086c766ef..daf0782c536 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionApp.cs @@ -115,7 +115,7 @@ public static WindowsInformationProtectionApp CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"denied", n => { Denied = n.GetBoolValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -129,7 +129,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("denied", Denied); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs index 405bcccf55c..1c84664296c 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummary.cs @@ -44,7 +44,7 @@ public int? DeviceCount { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicationName", n => { ApplicationName = n.GetStringValue(); } }, {"applicationType", n => { ApplicationType = n.GetEnumValue(); } }, @@ -55,7 +55,7 @@ public int? DeviceCount { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("applicationName", ApplicationName); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummaryCollectionResponse.cs index 7a44b00e7a7..cb34528c783 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLearningSummaryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsInformationProtectionAppLearningSummary.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFile.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFile.cs index 930678470e2..9695f073679 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFile.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFile.cs @@ -76,7 +76,7 @@ public string Version { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"file", n => { File = n.GetByteArrayValue(); } }, @@ -88,7 +88,7 @@ public string Version { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFileCollectionResponse.cs index 705b62a3b3a..f895b55ef5e 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFileCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionAppLockerFileCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDataRecoveryCertificate.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDataRecoveryCertificate.cs index 92e440fc25f..589430686e3 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDataRecoveryCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDataRecoveryCertificate.cs @@ -96,7 +96,7 @@ public static WindowsInformationProtectionDataRecoveryCertificate CreateFromDisc /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificate", n => { Certificate = n.GetByteArrayValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -109,7 +109,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteByteArrayValue("certificate", Certificate); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDesktopApp.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDesktopApp.cs index cb1b2734cac..dcd93241ff2 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDesktopApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionDesktopApp.cs @@ -68,7 +68,7 @@ public WindowsInformationProtectionDesktopApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"binaryName", n => { BinaryName = n.GetStringValue(); } }, {"binaryVersionHigh", n => { BinaryVersionHigh = n.GetStringValue(); } }, @@ -79,7 +79,7 @@ public WindowsInformationProtectionDesktopApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("binaryName", BinaryName); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionIPRangeCollection.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionIPRangeCollection.cs index f2d2fd715c6..a26312527a7 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionIPRangeCollection.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionIPRangeCollection.cs @@ -77,7 +77,7 @@ public static WindowsInformationProtectionIPRangeCollection CreateFromDiscrimina /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs index bae2f2ff1b4..eeca673d3ed 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummary.cs @@ -39,7 +39,7 @@ public string Url { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"deviceCount", n => { DeviceCount = n.GetIntValue(); } }, {"url", n => { Url = n.GetStringValue(); } }, @@ -49,7 +49,7 @@ public string Url { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("deviceCount", DeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummaryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummaryCollectionResponse.cs index d26d1048025..4222ca3adac 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummaryCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionNetworkLearningSummaryCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsInformationProtectionNetworkLearningSummary.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicy.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicy.cs index 69c85464066..bd28df7256f 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicy.cs @@ -95,7 +95,7 @@ public WindowsInformationProtectionPolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"daysWithoutContactBeforeUnenroll", n => { DaysWithoutContactBeforeUnenroll = n.GetIntValue(); } }, {"mdmEnrollmentUrl", n => { MdmEnrollmentUrl = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public WindowsInformationProtectionPolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("daysWithoutContactBeforeUnenroll", DaysWithoutContactBeforeUnenroll); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicyCollectionResponse.cs index df42372abb9..6324b91b7f3 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionPolicyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsInformationProtectionPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionProxiedDomainCollection.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionProxiedDomainCollection.cs index 979ddaab725..1a5a8a5b11d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionProxiedDomainCollection.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionProxiedDomainCollection.cs @@ -77,7 +77,7 @@ public static WindowsInformationProtectionProxiedDomainCollection CreateFromDisc /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionResourceCollection.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionResourceCollection.cs index 43cfc20508a..f709a997970 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionResourceCollection.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionResourceCollection.cs @@ -77,7 +77,7 @@ public static WindowsInformationProtectionResourceCollection CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionStoreApp.cs b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionStoreApp.cs index 52716722d9f..448d718bcc9 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionStoreApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsInformationProtectionStoreApp.cs @@ -26,7 +26,7 @@ public WindowsInformationProtectionStoreApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -34,7 +34,7 @@ public WindowsInformationProtectionStoreApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareCategoryCount.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareCategoryCount.cs index bc9a2702e45..b1d3ff137f9 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareCategoryCount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareCategoryCount.cs @@ -74,7 +74,7 @@ public static WindowsMalwareCategoryCount CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activeMalwareDetectionCount", n => { ActiveMalwareDetectionCount = n.GetIntValue(); } }, {"category", n => { Category = n.GetEnumValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("activeMalwareDetectionCount", ActiveMalwareDetectionCount); writer.WriteEnumValue("category", Category); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareExecutionStateCount.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareExecutionStateCount.cs index 876307f4986..ef9a8595ae4 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareExecutionStateCount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareExecutionStateCount.cs @@ -64,7 +64,7 @@ public static WindowsMalwareExecutionStateCount CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceCount", n => { DeviceCount = n.GetIntValue(); } }, {"executionState", n => { ExecutionState = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceCount", DeviceCount); writer.WriteEnumValue("executionState", ExecutionState); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs index ecf050585d5..c1f30c5cf94 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformation.cs @@ -77,7 +77,7 @@ public WindowsMalwareSeverity? Severity { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformationUrl", n => { AdditionalInformationUrl = n.GetStringValue(); } }, {"category", n => { Category = n.GetEnumValue(); } }, @@ -91,7 +91,7 @@ public WindowsMalwareSeverity? Severity { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("additionalInformationUrl", AdditionalInformationUrl); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformationCollectionResponse.cs index f76de78bf81..d526c14960d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareInformationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsMalwareInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareNameCount.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareNameCount.cs index 882eb0a844f..62f8b3cbbb9 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareNameCount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareNameCount.cs @@ -87,7 +87,7 @@ public static WindowsMalwareNameCount CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceCount", n => { DeviceCount = n.GetIntValue(); } }, {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceCount", DeviceCount); writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareOverview.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareOverview.cs index 040352564fc..1b3ee8da912 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareOverview.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareOverview.cs @@ -148,7 +148,7 @@ public static WindowsMalwareOverview CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"malwareCategorySummary", n => { MalwareCategorySummary = n.GetCollectionOfObjectValues(WindowsMalwareCategoryCount.CreateFromDiscriminatorValue)?.ToList(); } }, {"malwareDetectedDeviceCount", n => { MalwareDetectedDeviceCount = n.GetIntValue(); } }, @@ -166,7 +166,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("malwareCategorySummary", MalwareCategorySummary); writer.WriteIntValue("malwareDetectedDeviceCount", MalwareDetectedDeviceCount); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareSeverityCount.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareSeverityCount.cs index fc63bc36994..7f6f835a7be 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareSeverityCount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareSeverityCount.cs @@ -69,7 +69,7 @@ public static WindowsMalwareSeverityCount CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"distinctMalwareCount", n => { DistinctMalwareCount = n.GetIntValue(); } }, {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("distinctMalwareCount", DistinctMalwareCount); writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMalwareStateCount.cs b/src/Microsoft.Graph/Generated/Models/WindowsMalwareStateCount.cs index 69006a01ae1..14a3d112754 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMalwareStateCount.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMalwareStateCount.cs @@ -74,7 +74,7 @@ public static WindowsMalwareStateCount CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceCount", n => { DeviceCount = n.GetIntValue(); } }, {"distinctMalwareCount", n => { DistinctMalwareCount = n.GetIntValue(); } }, @@ -88,7 +88,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("deviceCount", DeviceCount); writer.WriteIntValue("distinctMalwareCount", DistinctMalwareCount); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMicrosoftEdgeApp.cs b/src/Microsoft.Graph/Generated/Models/WindowsMicrosoftEdgeApp.cs index d691f804482..68f08cc0312 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMicrosoftEdgeApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMicrosoftEdgeApp.cs @@ -45,7 +45,7 @@ public WindowsMicrosoftEdgeApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"channel", n => { Channel = n.GetEnumValue(); } }, {"displayLanguageLocale", n => { DisplayLanguageLocale = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public WindowsMicrosoftEdgeApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("channel", Channel); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMinimumOperatingSystem.cs b/src/Microsoft.Graph/Generated/Models/WindowsMinimumOperatingSystem.cs index b0003954f9e..7ab539b6417 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMinimumOperatingSystem.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMinimumOperatingSystem.cs @@ -64,7 +64,7 @@ public static WindowsMinimumOperatingSystem CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"v10_0", n => { V100 = n.GetBoolValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteBoolValue("v10_0", V100); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMobileMSI.cs b/src/Microsoft.Graph/Generated/Models/WindowsMobileMSI.cs index c27392ac0e9..6fb6f5431b7 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMobileMSI.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMobileMSI.cs @@ -73,7 +73,7 @@ public WindowsMobileMSI() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"commandLine", n => { CommandLine = n.GetStringValue(); } }, {"ignoreVersionDetection", n => { IgnoreVersionDetection = n.GetBoolValue(); } }, @@ -85,7 +85,7 @@ public WindowsMobileMSI() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("commandLine", CommandLine); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsMobileMSICollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsMobileMSICollectionResponse.cs index 4d0e62ab637..7c601cf038f 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsMobileMSICollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsMobileMSICollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsMobileMSI.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsPhone81CompliancePolicy.cs b/src/Microsoft.Graph/Generated/Models/WindowsPhone81CompliancePolicy.cs index b6c886cbe81..1ac1cde5342 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsPhone81CompliancePolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsPhone81CompliancePolicy.cs @@ -99,7 +99,7 @@ public WindowsPhone81CompliancePolicy() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"osMaximumVersion", n => { OsMaximumVersion = n.GetStringValue(); } }, {"osMinimumVersion", n => { OsMinimumVersion = n.GetStringValue(); } }, @@ -118,7 +118,7 @@ public WindowsPhone81CompliancePolicy() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("osMaximumVersion", OsMaximumVersion); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsPhone81CustomConfiguration.cs b/src/Microsoft.Graph/Generated/Models/WindowsPhone81CustomConfiguration.cs index 5a7d7f68c8d..31ed0d65561 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsPhone81CustomConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsPhone81CustomConfiguration.cs @@ -40,7 +40,7 @@ public WindowsPhone81CustomConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"omaSettings", n => { OmaSettings = n.GetCollectionOfObjectValues(OmaSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -49,7 +49,7 @@ public WindowsPhone81CustomConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("omaSettings", OmaSettings); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs b/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs index 3dc3e535d2e..83043ef8ddc 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsPhone81GeneralConfiguration.cs @@ -180,7 +180,7 @@ public WindowsPhone81GeneralConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applyOnlyToWindowsPhone81", n => { ApplyOnlyToWindowsPhone81 = n.GetBoolValue(); } }, {"appsBlockCopyPaste", n => { AppsBlockCopyPaste = n.GetBoolValue(); } }, @@ -217,7 +217,7 @@ public WindowsPhone81GeneralConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("appsBlockCopyPaste", AppsBlockCopyPaste); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsProtectionState.cs b/src/Microsoft.Graph/Generated/Models/WindowsProtectionState.cs index 3f86f6cab9a..7205ce7ca7a 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsProtectionState.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsProtectionState.cs @@ -179,7 +179,7 @@ public bool? TamperProtectionEnabled { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"antiMalwareVersion", n => { AntiMalwareVersion = n.GetStringValue(); } }, {"detectedMalwareState", n => { DetectedMalwareState = n.GetCollectionOfObjectValues(WindowsDeviceMalwareState.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -208,7 +208,7 @@ public bool? TamperProtectionEnabled { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("antiMalwareVersion", AntiMalwareVersion); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppX.cs b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppX.cs index 5ddbd4a0f41..0e64d29e334 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppX.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppX.cs @@ -125,7 +125,7 @@ public WindowsUniversalAppX() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"applicableArchitectures", n => { ApplicableArchitectures = n.GetEnumValue(); } }, {"applicableDeviceTypes", n => { ApplicableDeviceTypes = n.GetEnumValue(); } }, @@ -142,7 +142,7 @@ public WindowsUniversalAppX() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("applicableArchitectures", ApplicableArchitectures); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs index e260f3ee783..e612dfd631a 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs @@ -31,7 +31,7 @@ public WindowsUniversalAppXAppAssignmentSettings() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"useDeviceContext", n => { UseDeviceContext = n.GetBoolValue(); } }, }; @@ -40,7 +40,7 @@ public WindowsUniversalAppXAppAssignmentSettings() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("useDeviceContext", UseDeviceContext); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXCollectionResponse.cs index 6da0abdd903..c8a23fc595e 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsUniversalAppX.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXContainedApp.cs b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXContainedApp.cs index 1f65ae3120e..32131dadaf1 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXContainedApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXContainedApp.cs @@ -40,7 +40,7 @@ public WindowsUniversalAppXContainedApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appUserModelId", n => { AppUserModelId = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public WindowsUniversalAppXContainedApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appUserModelId", AppUserModelId); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateActiveHoursInstall.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateActiveHoursInstall.cs index a756e7b52c5..c18c0fc4485 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateActiveHoursInstall.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateActiveHoursInstall.cs @@ -34,7 +34,7 @@ public WindowsUpdateActiveHoursInstall() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"activeHoursEnd", n => { ActiveHoursEnd = n.GetTimeValue(); } }, {"activeHoursStart", n => { ActiveHoursStart = n.GetTimeValue(); } }, @@ -44,7 +44,7 @@ public WindowsUpdateActiveHoursInstall() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteTimeValue("activeHoursEnd", ActiveHoursEnd); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs index 75e468c78e3..34e848f672c 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessConfiguration.cs @@ -216,7 +216,7 @@ public WindowsUpdateForBusinessConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"allowWindows11Upgrade", n => { AllowWindows11Upgrade = n.GetBoolValue(); } }, {"autoRestartNotificationDismissal", n => { AutoRestartNotificationDismissal = n.GetEnumValue(); } }, @@ -260,7 +260,7 @@ public WindowsUpdateForBusinessConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("allowWindows11Upgrade", AllowWindows11Upgrade); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateInstallScheduleType.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateInstallScheduleType.cs index 905e9929e24..ea9a17810c9 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateInstallScheduleType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateInstallScheduleType.cs @@ -51,7 +51,7 @@ public static WindowsUpdateInstallScheduleType CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -60,7 +60,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateScheduledInstall.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateScheduledInstall.cs index 75075fe14c4..a7ad1138b53 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateScheduledInstall.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateScheduledInstall.cs @@ -34,7 +34,7 @@ public WindowsUpdateScheduledInstall() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"scheduledInstallDay", n => { ScheduledInstallDay = n.GetEnumValue(); } }, {"scheduledInstallTime", n => { ScheduledInstallTime = n.GetTimeValue(); } }, @@ -44,7 +44,7 @@ public WindowsUpdateScheduledInstall() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("scheduledInstallDay", ScheduledInstallDay); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsWebApp.cs b/src/Microsoft.Graph/Generated/Models/WindowsWebApp.cs index f225cf1dd19..0abb751efea 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsWebApp.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsWebApp.cs @@ -40,7 +40,7 @@ public WindowsWebApp() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"appUrl", n => { AppUrl = n.GetStringValue(); } }, }; @@ -49,7 +49,7 @@ public WindowsWebApp() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("appUrl", AppUrl); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsWebAppCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsWebAppCollectionResponse.cs index c00893d89ab..c0fba4772f1 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsWebAppCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsWebAppCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WindowsWebApp.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/Workbook.cs b/src/Microsoft.Graph/Generated/Models/Workbook.cs index 873e029160b..28b9eb05907 100644 --- a/src/Microsoft.Graph/Generated/Models/Workbook.cs +++ b/src/Microsoft.Graph/Generated/Models/Workbook.cs @@ -115,7 +115,7 @@ public List Worksheets { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"application", n => { Application = n.GetObjectValue(WorkbookApplication.CreateFromDiscriminatorValue); } }, {"comments", n => { Comments = n.GetCollectionOfObjectValues(WorkbookComment.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -130,7 +130,7 @@ public List Worksheets { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("application", Application); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookApplication.cs b/src/Microsoft.Graph/Generated/Models/WorkbookApplication.cs index 27804194757..75a3affcfee 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookApplication.cs @@ -31,7 +31,7 @@ public string CalculationMode { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"calculationMode", n => { CalculationMode = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string CalculationMode { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("calculationMode", CalculationMode); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs index 759c74f7287..10c71e00ca8 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChart.cs @@ -149,7 +149,7 @@ public WorkbookWorksheet Worksheet { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"axes", n => { Axes = n.GetObjectValue(WorkbookChartAxes.CreateFromDiscriminatorValue); } }, {"dataLabels", n => { DataLabels = n.GetObjectValue(WorkbookChartDataLabels.CreateFromDiscriminatorValue); } }, @@ -169,7 +169,7 @@ public WorkbookWorksheet Worksheet { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("axes", Axes); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartAreaFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartAreaFormat.cs index 1caf3482ffd..445dc492edf 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartAreaFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartAreaFormat.cs @@ -45,7 +45,7 @@ public WorkbookChartFont Font { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fill", n => { Fill = n.GetObjectValue(WorkbookChartFill.CreateFromDiscriminatorValue); } }, {"font", n => { Font = n.GetObjectValue(WorkbookChartFont.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookChartFont Font { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fill", Fill); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxes.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxes.cs index c721d04925f..016dfbcbaea 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxes.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxes.cs @@ -59,7 +59,7 @@ public WorkbookChartAxis ValueAxis { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"categoryAxis", n => { CategoryAxis = n.GetObjectValue(WorkbookChartAxis.CreateFromDiscriminatorValue); } }, {"seriesAxis", n => { SeriesAxis = n.GetObjectValue(WorkbookChartAxis.CreateFromDiscriminatorValue); } }, @@ -70,7 +70,7 @@ public WorkbookChartAxis ValueAxis { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("categoryAxis", CategoryAxis); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxis.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxis.cs index 846dad4bbaf..5f37612109d 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxis.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxis.cs @@ -129,7 +129,7 @@ public WorkbookChartAxisTitle Title { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartAxisFormat.CreateFromDiscriminatorValue); } }, {"majorGridlines", n => { MajorGridlines = n.GetObjectValue(WorkbookChartGridlines.CreateFromDiscriminatorValue); } }, @@ -145,7 +145,7 @@ public WorkbookChartAxisTitle Title { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisFormat.cs index cb25629731d..1144eecb8d1 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisFormat.cs @@ -45,7 +45,7 @@ public WorkbookChartLineFormat Line { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"font", n => { Font = n.GetObjectValue(WorkbookChartFont.CreateFromDiscriminatorValue); } }, {"line", n => { Line = n.GetObjectValue(WorkbookChartLineFormat.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookChartLineFormat Line { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("font", Font); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitle.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitle.cs index 458bef3923e..5ba4a52c16a 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitle.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitle.cs @@ -50,7 +50,7 @@ public bool? Visible { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); } }, {"text", n => { Text = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public bool? Visible { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitleFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitleFormat.cs index 13db0763b1b..2d41c5bdcce 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitleFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartAxisTitleFormat.cs @@ -31,7 +31,7 @@ public WorkbookChartFont Font { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"font", n => { Font = n.GetObjectValue(WorkbookChartFont.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public WorkbookChartFont Font { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("font", Font); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartCollectionResponse.cs index 82ba18125b5..e2e63264984 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookChart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabelFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabelFormat.cs index de980e0e941..66d14f77cd9 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabelFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabelFormat.cs @@ -45,7 +45,7 @@ public WorkbookChartFont Font { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fill", n => { Fill = n.GetObjectValue(WorkbookChartFill.CreateFromDiscriminatorValue); } }, {"font", n => { Font = n.GetObjectValue(WorkbookChartFont.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookChartFont Font { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fill", Fill); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabels.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabels.cs index e21d8fe2a63..26eb7b0ee00 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabels.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartDataLabels.cs @@ -89,7 +89,7 @@ public bool? ShowValue { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartDataLabelFormat.CreateFromDiscriminatorValue); } }, {"position", n => { Position = n.GetStringValue(); } }, @@ -106,7 +106,7 @@ public bool? ShowValue { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartFill.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartFill.cs index e4a39a8569e..0111514d18c 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartFill.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartFill.cs @@ -17,7 +17,7 @@ public class WorkbookChartFill : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class WorkbookChartFill : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs index b4fd645dea9..cba0882b401 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartFont.cs @@ -74,7 +74,7 @@ public string Underline { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bold", n => { Bold = n.GetBoolValue(); } }, {"color", n => { Color = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public string Underline { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("bold", Bold); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlines.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlines.cs index 42f250fc565..53f2a84f584 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlines.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlines.cs @@ -36,7 +36,7 @@ public bool? Visible { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); } }, {"visible", n => { Visible = n.GetBoolValue(); } }, @@ -46,7 +46,7 @@ public bool? Visible { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlinesFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlinesFormat.cs index 0221220c6ed..db75a804dff 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlinesFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartGridlinesFormat.cs @@ -31,7 +31,7 @@ public WorkbookChartLineFormat Line { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"line", n => { Line = n.GetObjectValue(WorkbookChartLineFormat.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public WorkbookChartLineFormat Line { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("line", Line); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartLegend.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartLegend.cs index 8a6cff2502b..1abe58ae313 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartLegend.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartLegend.cs @@ -55,7 +55,7 @@ public bool? Visible { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartLegendFormat.CreateFromDiscriminatorValue); } }, {"overlay", n => { Overlay = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public bool? Visible { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartLegendFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartLegendFormat.cs index ea2dc4f87b9..8e506da80cf 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartLegendFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartLegendFormat.cs @@ -45,7 +45,7 @@ public WorkbookChartFont Font { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fill", n => { Fill = n.GetObjectValue(WorkbookChartFill.CreateFromDiscriminatorValue); } }, {"font", n => { Font = n.GetObjectValue(WorkbookChartFont.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookChartFont Font { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fill", Fill); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartLineFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartLineFormat.cs index 84f91c5cbe9..a7f24548f29 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartLineFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartLineFormat.cs @@ -31,7 +31,7 @@ public string Color { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Color { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("color", Color); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs index 7cea19deb23..983d82bbfcd 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartPoint.cs @@ -45,7 +45,7 @@ public Json Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartPointFormat.CreateFromDiscriminatorValue); } }, {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public Json Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartPointCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartPointCollectionResponse.cs index 4fc5dbde576..2443943e29f 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartPointCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartPointCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookChartPoint.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs index 362d3f06101..ce08f460620 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartPointFormat.cs @@ -31,7 +31,7 @@ public WorkbookChartFill Fill { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fill", n => { Fill = n.GetObjectValue(WorkbookChartFill.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public WorkbookChartFill Fill { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fill", Fill); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs index 3db32684e0a..420c4e32a71 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeries.cs @@ -59,7 +59,7 @@ public List Points { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartSeriesFormat.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public List Points { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesCollectionResponse.cs index c1b3912c0eb..c1422018ecb 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookChartSeries.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs index c7ea66c7975..3f38a615678 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartSeriesFormat.cs @@ -45,7 +45,7 @@ public WorkbookChartLineFormat Line { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fill", n => { Fill = n.GetObjectValue(WorkbookChartFill.CreateFromDiscriminatorValue); } }, {"line", n => { Line = n.GetObjectValue(WorkbookChartLineFormat.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookChartLineFormat Line { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fill", Fill); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs index f10f790c187..f64aa6a0c1a 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartTitle.cs @@ -55,7 +55,7 @@ public bool? Visible { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"format", n => { Format = n.GetObjectValue(WorkbookChartTitleFormat.CreateFromDiscriminatorValue); } }, {"overlay", n => { Overlay = n.GetBoolValue(); } }, @@ -67,7 +67,7 @@ public bool? Visible { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("format", Format); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookChartTitleFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookChartTitleFormat.cs index de9517267c1..56f5c3b42a1 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookChartTitleFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookChartTitleFormat.cs @@ -45,7 +45,7 @@ public WorkbookChartFont Font { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fill", n => { Fill = n.GetObjectValue(WorkbookChartFill.CreateFromDiscriminatorValue); } }, {"font", n => { Font = n.GetObjectValue(WorkbookChartFont.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookChartFont Font { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("fill", Fill); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookComment.cs b/src/Microsoft.Graph/Generated/Models/WorkbookComment.cs index 05e593a599c..d41a64ad232 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookComment.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookComment.cs @@ -59,7 +59,7 @@ public List Replies { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public List Replies { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookCommentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookCommentCollectionResponse.cs index 4f567809000..7436b5a7ad8 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookCommentCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookCommentCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookComment.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookCommentReply.cs b/src/Microsoft.Graph/Generated/Models/WorkbookCommentReply.cs index 1c35ee5d1a5..c92717db621 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookCommentReply.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookCommentReply.cs @@ -45,7 +45,7 @@ public string ContentType { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, @@ -55,7 +55,7 @@ public string ContentType { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("content", Content); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookCommentReplyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookCommentReplyCollectionResponse.cs index 7c6f09c51b3..579b067f9e5 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookCommentReplyCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookCommentReplyCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookCommentReply.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookFilter.cs b/src/Microsoft.Graph/Generated/Models/WorkbookFilter.cs index eb41f7957b2..34f85190605 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookFilter.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookFilter.cs @@ -31,7 +31,7 @@ public WorkbookFilterCriteria Criteria { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"criteria", n => { Criteria = n.GetObjectValue(WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, }; @@ -40,7 +40,7 @@ public WorkbookFilterCriteria Criteria { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("criteria", Criteria); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookFilterCriteria.cs b/src/Microsoft.Graph/Generated/Models/WorkbookFilterCriteria.cs index 72961857605..6dd0a02d8b5 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookFilterCriteria.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookFilterCriteria.cs @@ -158,7 +158,7 @@ public static WorkbookFilterCriteria CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"color", n => { Color = n.GetStringValue(); } }, {"criterion1", n => { Criterion1 = n.GetStringValue(); } }, @@ -175,7 +175,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("color", Color); writer.WriteStringValue("criterion1", Criterion1); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookFormatProtection.cs b/src/Microsoft.Graph/Generated/Models/WorkbookFormatProtection.cs index f06eeb40d61..82e51bb7e2c 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookFormatProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookFormatProtection.cs @@ -27,7 +27,7 @@ public bool? Locked { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"formulaHidden", n => { FormulaHidden = n.GetBoolValue(); } }, {"locked", n => { Locked = n.GetBoolValue(); } }, @@ -37,7 +37,7 @@ public bool? Locked { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("formulaHidden", FormulaHidden); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookFunctionResult.cs b/src/Microsoft.Graph/Generated/Models/WorkbookFunctionResult.cs index 037a724f074..4cbe3528060 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookFunctionResult.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookFunctionResult.cs @@ -45,7 +45,7 @@ public Json Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"error", n => { Error = n.GetStringValue(); } }, {"value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public Json Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookFunctions.cs b/src/Microsoft.Graph/Generated/Models/WorkbookFunctions.cs index d6754267f10..a669f791339 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookFunctions.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookFunctions.cs @@ -17,7 +17,7 @@ public class WorkbookFunctions : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class WorkbookFunctions : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookIcon.cs b/src/Microsoft.Graph/Generated/Models/WorkbookIcon.cs index 1e6d3586614..a09aa5e1647 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookIcon.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookIcon.cs @@ -65,7 +65,7 @@ public static WorkbookIcon CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"index", n => { Index = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs b/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs index 910b6bb4c27..daf0945feec 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookNamedItem.cs @@ -106,7 +106,7 @@ public WorkbookWorksheet Worksheet { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"comment", n => { Comment = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -121,7 +121,7 @@ public WorkbookWorksheet Worksheet { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("comment", Comment); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookNamedItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookNamedItemCollectionResponse.cs index dad13289c10..e31761d8bb1 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookNamedItemCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookNamedItemCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookNamedItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookOperation.cs b/src/Microsoft.Graph/Generated/Models/WorkbookOperation.cs index 3d35a95a44c..e8e8dd759a7 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookOperation.cs @@ -50,7 +50,7 @@ public WorkbookOperationStatus? Status { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"error", n => { Error = n.GetObjectValue(WorkbookOperationError.CreateFromDiscriminatorValue); } }, {"resourceLocation", n => { ResourceLocation = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public WorkbookOperationStatus? Status { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("error", Error); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookOperationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookOperationCollectionResponse.cs index bb9c944b471..1ee6e6fe58f 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookOperationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookOperationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookOperation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookOperationError.cs b/src/Microsoft.Graph/Generated/Models/WorkbookOperationError.cs index eaa00ba12e3..02b977b3b2d 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookOperationError.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookOperationError.cs @@ -88,7 +88,7 @@ public static WorkbookOperationError CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"innerError", n => { InnerError = n.GetObjectValue(WorkbookOperationError.CreateFromDiscriminatorValue); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteObjectValue("innerError", InnerError); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs b/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs index 3a9af9285cd..03f5eb4893d 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookPivotTable.cs @@ -45,7 +45,7 @@ public WorkbookWorksheet Worksheet { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"name", n => { Name = n.GetStringValue(); } }, {"worksheet", n => { Worksheet = n.GetObjectValue(WorkbookWorksheet.CreateFromDiscriminatorValue); } }, @@ -55,7 +55,7 @@ public WorkbookWorksheet Worksheet { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("name", Name); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookPivotTableCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookPivotTableCollectionResponse.cs index 5adc558889d..9c97d0f4189 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookPivotTableCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookPivotTableCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookPivotTable.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs index ef4e16baaaa..8fa5e03fc75 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRange.cs @@ -225,7 +225,7 @@ public WorkbookWorksheet Worksheet { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"address", n => { Address = n.GetStringValue(); } }, {"addressLocal", n => { AddressLocal = n.GetStringValue(); } }, @@ -253,7 +253,7 @@ public WorkbookWorksheet Worksheet { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("address", Address); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs index b2d8aaff06a..8018cf3fa26 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeBorder.cs @@ -73,7 +73,7 @@ public string Weight { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"color", n => { Color = n.GetStringValue(); } }, {"sideIndex", n => { SideIndex = n.GetStringValue(); } }, @@ -85,7 +85,7 @@ public string Weight { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("color", Color); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs index 8cfc558b552..d704555ed89 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFill.cs @@ -31,7 +31,7 @@ public string Color { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"color", n => { Color = n.GetStringValue(); } }, }; @@ -40,7 +40,7 @@ public string Color { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("color", Color); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs index 360444c5536..0c74ce9fa7d 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFont.cs @@ -74,7 +74,7 @@ public string Underline { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"bold", n => { Bold = n.GetBoolValue(); } }, {"color", n => { Color = n.GetStringValue(); } }, @@ -88,7 +88,7 @@ public string Underline { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteBoolValue("bold", Bold); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs index 579546370fc..cd75efa00ed 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeFormat.cs @@ -116,7 +116,7 @@ public bool? WrapText { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"borders", n => { Borders = n.GetCollectionOfObjectValues(WorkbookRangeBorder.CreateFromDiscriminatorValue)?.ToList(); } }, {"columnWidth", n => { ColumnWidth = n.GetDoubleValue(); } }, @@ -133,7 +133,7 @@ public bool? WrapText { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("borders", Borders); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeSort.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeSort.cs index 8e272906b04..3c702af996c 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeSort.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeSort.cs @@ -17,7 +17,7 @@ public class WorkbookRangeSort : Entity, IParsable { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { }; } @@ -25,7 +25,7 @@ public class WorkbookRangeSort : Entity, IParsable { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs b/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs index d57806f2d41..ce796476f05 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookRangeView.cs @@ -158,7 +158,7 @@ public Json ValueTypes { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"cellAddresses", n => { CellAddresses = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"columnCount", n => { ColumnCount = n.GetIntValue(); } }, @@ -178,7 +178,7 @@ public Json ValueTypes { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("cellAddresses", CellAddresses); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookSessionInfo.cs b/src/Microsoft.Graph/Generated/Models/WorkbookSessionInfo.cs index 4188ab48349..308b033abd2 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookSessionInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookSessionInfo.cs @@ -65,7 +65,7 @@ public static WorkbookSessionInfo CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookSortField.cs b/src/Microsoft.Graph/Generated/Models/WorkbookSortField.cs index 79faea44233..204120016f3 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookSortField.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookSortField.cs @@ -112,7 +112,7 @@ public static WorkbookSortField CreateFromDiscriminatorValue(IParseNode parseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ascending", n => { Ascending = n.GetBoolValue(); } }, {"color", n => { Color = n.GetStringValue(); } }, @@ -127,7 +127,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("ascending", Ascending); writer.WriteStringValue("color", Color); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs index ef10dbc728b..814945c81d2 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTable.cs @@ -150,7 +150,7 @@ public WorkbookWorksheet Worksheet { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"columns", n => { Columns = n.GetCollectionOfObjectValues(WorkbookTableColumn.CreateFromDiscriminatorValue)?.ToList(); } }, {"highlightFirstColumn", n => { HighlightFirstColumn = n.GetBoolValue(); } }, @@ -172,7 +172,7 @@ public WorkbookWorksheet Worksheet { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("columns", Columns); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableCollectionResponse.cs index e308dd4be71..d8ef5199c21 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookTable.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs index 5434ae0f08d..5315d9e6ad2 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableColumn.cs @@ -64,7 +64,7 @@ public Json Values { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"filter", n => { Filter = n.GetObjectValue(WorkbookFilter.CreateFromDiscriminatorValue); } }, {"index", n => { Index = n.GetIntValue(); } }, @@ -76,7 +76,7 @@ public Json Values { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("filter", Filter); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableColumnCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableColumnCollectionResponse.cs index d1506fd4619..45afc8efea7 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableColumnCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableColumnCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookTableColumn.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs index 95b36600bfc..ec59c948981 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableRow.cs @@ -36,7 +36,7 @@ public Json Values { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"index", n => { Index = n.GetIntValue(); } }, {"values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, @@ -46,7 +46,7 @@ public Json Values { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("index", Index); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableRowCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableRowCollectionResponse.cs index f42df6d28ce..97bb03f7cf9 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableRowCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableRowCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookTableRow.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookTableSort.cs b/src/Microsoft.Graph/Generated/Models/WorkbookTableSort.cs index c88eab8c2c4..8c9363bed6d 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookTableSort.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookTableSort.cs @@ -50,7 +50,7 @@ public string Method { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"fields", n => { Fields = n.GetCollectionOfObjectValues(WorkbookSortField.CreateFromDiscriminatorValue)?.ToList(); } }, {"matchCase", n => { MatchCase = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public string Method { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("fields", Fields); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheet.cs b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheet.cs index dda57b919dc..5b46d3edef5 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheet.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheet.cs @@ -120,7 +120,7 @@ public string Visibility { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"charts", n => { Charts = n.GetCollectionOfObjectValues(WorkbookChart.CreateFromDiscriminatorValue)?.ToList(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -136,7 +136,7 @@ public string Visibility { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("charts", Charts); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetCollectionResponse.cs index 4649cf2dce9..c9db36b008f 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkbookWorksheet.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtection.cs b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtection.cs index 34fa3dd9e42..5ce118185ba 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtection.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtection.cs @@ -36,7 +36,7 @@ public bool? Protected { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"options", n => { Options = n.GetObjectValue(WorkbookWorksheetProtectionOptions.CreateFromDiscriminatorValue); } }, {"protected", n => { Protected = n.GetBoolValue(); } }, @@ -46,7 +46,7 @@ public bool? Protected { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("options", Options); diff --git a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtectionOptions.cs b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtectionOptions.cs index 0ed7082109e..a5009aad8f5 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtectionOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkbookWorksheetProtectionOptions.cs @@ -101,7 +101,7 @@ public static WorkbookWorksheetProtectionOptions CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowAutoFilter", n => { AllowAutoFilter = n.GetBoolValue(); } }, {"allowDeleteColumns", n => { AllowDeleteColumns = n.GetBoolValue(); } }, @@ -121,7 +121,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowAutoFilter", AllowAutoFilter); writer.WriteBoolValue("allowDeleteColumns", AllowDeleteColumns); diff --git a/src/Microsoft.Graph/Generated/Models/WorkforceIntegration.cs b/src/Microsoft.Graph/Generated/Models/WorkforceIntegration.cs index 47b42e779b2..afd4acd92cb 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkforceIntegration.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkforceIntegration.cs @@ -80,7 +80,7 @@ public WorkforceIntegration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"apiVersion", n => { ApiVersion = n.GetIntValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -94,7 +94,7 @@ public WorkforceIntegration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("apiVersion", ApiVersion); diff --git a/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationCollectionResponse.cs index e8b93b28b2d..d53b6d93cb0 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationCollectionResponse.cs @@ -31,7 +31,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(WorkforceIntegration.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -40,7 +40,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationEncryption.cs b/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationEncryption.cs index 6bf4f347882..ea3090b13a6 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationEncryption.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationEncryption.cs @@ -65,7 +65,7 @@ public static WorkforceIntegrationEncryption CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"protocol", n => { Protocol = n.GetEnumValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteEnumValue("protocol", Protocol); diff --git a/src/Microsoft.Graph/Generated/Models/WorkingHours.cs b/src/Microsoft.Graph/Generated/Models/WorkingHours.cs index 5d854a2034b..8907f2527dd 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkingHours.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkingHours.cs @@ -85,7 +85,7 @@ public static WorkingHours CreateFromDiscriminatorValue(IParseNode parseNode) { /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"daysOfWeek", n => { DaysOfWeek = n.GetCollectionOfEnumValues()?.ToList(); } }, {"endTime", n => { EndTime = n.GetTimeValue(); } }, @@ -98,7 +98,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfEnumValues("daysOfWeek", DaysOfWeek); writer.WriteTimeValue("endTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMethodConfiguration.cs b/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMethodConfiguration.cs index 8c002f23100..50560b20a1f 100644 --- a/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMethodConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationMethodConfiguration.cs @@ -20,7 +20,7 @@ public X509CertificateAuthenticationModeConfiguration AuthenticationModeConfigur set { BackingStore?.Set("authenticationModeConfiguration", value); } } #endif - /// Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored. + /// Defines fields in the X.509 certificate that map to attributes of the Microsoft Entra user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? CertificateUserBindings { @@ -65,7 +65,7 @@ public X509CertificateAuthenticationMethodConfiguration() : base() { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationModeConfiguration", n => { AuthenticationModeConfiguration = n.GetObjectValue(X509CertificateAuthenticationModeConfiguration.CreateFromDiscriminatorValue); } }, {"certificateUserBindings", n => { CertificateUserBindings = n.GetCollectionOfObjectValues(X509CertificateUserBinding.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -76,7 +76,7 @@ public X509CertificateAuthenticationMethodConfiguration() : base() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("authenticationModeConfiguration", AuthenticationModeConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationModeConfiguration.cs b/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationModeConfiguration.cs index cfdf70a1707..13a4f940cbf 100644 --- a/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationModeConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/X509CertificateAuthenticationModeConfiguration.cs @@ -65,7 +65,7 @@ public static X509CertificateAuthenticationModeConfiguration CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"rules", n => { Rules = n.GetCollectionOfObjectValues(X509CertificateRule.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("rules", Rules); diff --git a/src/Microsoft.Graph/Generated/Models/X509CertificateRule.cs b/src/Microsoft.Graph/Generated/Models/X509CertificateRule.cs index 16df01a508b..0e65928ff72 100644 --- a/src/Microsoft.Graph/Generated/Models/X509CertificateRule.cs +++ b/src/Microsoft.Graph/Generated/Models/X509CertificateRule.cs @@ -70,7 +70,7 @@ public static X509CertificateRule CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"identifier", n => { Identifier = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -82,7 +82,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("identifier", Identifier); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/X509CertificateUserBinding.cs b/src/Microsoft.Graph/Generated/Models/X509CertificateUserBinding.cs index 4d4a6055839..026ca7b9dd1 100644 --- a/src/Microsoft.Graph/Generated/Models/X509CertificateUserBinding.cs +++ b/src/Microsoft.Graph/Generated/Models/X509CertificateUserBinding.cs @@ -28,12 +28,12 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The priority of the binding. Azure AD uses the binding with the highest priority. This value must be a non-negative integer and unique in the collection of objects in the certificateUserBindings property of an x509CertificateAuthenticationMethodConfiguration object. Required + /// The priority of the binding. Microsoft Entra ID uses the binding with the highest priority. This value must be a non-negative integer and unique in the collection of objects in the certificateUserBindings property of an x509CertificateAuthenticationMethodConfiguration object. Required public int? Priority { get { return BackingStore?.Get("priority"); } set { BackingStore?.Set("priority", value); } } - /// Defines the Azure AD user property of the user object to use for the binding. The possible values are: userPrincipalName, onPremisesUserPrincipalName, certificateUserIds. Required. + /// Defines the Microsoft Entra user property of the user object to use for the binding. The possible values are: userPrincipalName, onPremisesUserPrincipalName, certificateUserIds. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserProperty { @@ -79,7 +79,7 @@ public static X509CertificateUserBinding CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"priority", n => { Priority = n.GetIntValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("priority", Priority); diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.cs index e0941a7bd8b..8762d6ba254 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs index 7ba6bd537bd..390ef26f3bf 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(OAuth2PermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs index 7b7e79c8a0b..67f0a6f2b5a 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs index d84f1c86f99..d05674209b7 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OAuth2PermissionGrant body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OAuth2PermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index 00cf6f4390b..2969a02814f 100644 --- a/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(OAuth2PermissionGrant body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new Oauth2PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Count/CountRequestBuilder.cs index f128145c3e5..7281b7d31d4 100644 --- a/src/Microsoft.Graph/Generated/Organization/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs index e5db8ad7efb..2a447eb8b42 100644 --- a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs index 670d4ff75e1..cbd4550b9e9 100644 --- a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 743355dfd78..4d56fc60cde 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 09cf31f00aa..be6f894a9ae 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 792092644f2..89937a8f262 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostRequestBody.cs index 7d8f3038e34..718200d0da6 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs index d84f415279e..9ff898a1480 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs index bc1cc72ff99..9442b0785c0 100644 --- a/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.cs index eabd19bdf3e..31ead7c3e85 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BackgroundImage/BackgroundImageRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.cs index b1a3510fd79..1ad90703210 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BannerLogo/BannerLogoRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs index aafb8a72399..6f891626e22 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/BrandingRequestBuilder.cs @@ -152,6 +152,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -170,7 +171,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -198,14 +199,14 @@ public RequestInformation ToPatchRequestInformation(OrganizationalBranding body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BrandingRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.cs index e357f3a05ce..ab4e6b073af 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/CustomCSS/CustomCSSRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.cs index 78b3270f0af..0107d6b0c51 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Favicon/FaviconRequestBuilder.cs @@ -28,7 +28,7 @@ public FaviconRequestBuilder(Dictionary pathParameters, IRequest public FaviconRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/branding/favicon", rawUrl) { } /// - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// /// Binary request body /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task PutAsync(Stream body, Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,10 +90,11 @@ public RequestInformation ToGetRequestInformation(Action - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// /// Binary request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.cs index dc5e7e9fd3b..77a0bd476fc 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/HeaderLogo/HeaderLogoRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.cs index a1565be7614..c2186a06bb6 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.cs index 8d2e94ad670..74ec3d29605 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BackgroundImage/BackgroundImageRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.cs index 4c7f8a8801b..340eb733061 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/BannerLogo/BannerLogoRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.cs index a128557ef34..34b61623713 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/CustomCSS/CustomCSSRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.cs index 70768e621f2..7467ce95aeb 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/Favicon/FaviconRequestBuilder.cs @@ -28,7 +28,7 @@ public FaviconRequestBuilder(Dictionary pathParameters, IRequest public FaviconRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/branding/localizations/{organizationalBrandingLocalization%2Did}/favicon", rawUrl) { } /// - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// /// Binary request body /// Cancellation token to use when cancelling requests @@ -69,7 +69,7 @@ public async Task PutAsync(Stream body, Action(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,10 +90,11 @@ public RequestInformation ToGetRequestInformation(Action - /// A custom icon (favicon) to replace a default Microsoft product favicon on an Azure AD tenant. + /// A custom icon (favicon) to replace a default Microsoft product favicon on a Microsoft Entra tenant. /// /// Binary request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.cs index 0fa78141546..034f2159809 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/HeaderLogo/HeaderLogoRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs index 40df6c627a0..dc7a8ce3709 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/OrganizationalBrandingLocalizationItemRequestBuilder.cs @@ -147,6 +147,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -165,7 +166,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -193,14 +194,14 @@ public RequestInformation ToPatchRequestInformation(OrganizationalBrandingLocali UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OrganizationalBrandingLocalizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.cs index 07bd6d74425..0866962fd9d 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogo/SquareLogoRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.cs index e2cfec8c04b..9f76d10f6f7 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/Item/SquareLogoDark/SquareLogoDarkRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs index d3f05b9518e..7ffc6a728e6 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/Localizations/LocalizationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OrganizationalBrandingLocaliz UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LocalizationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.cs index a95dc9a2c41..588dd9c1e11 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogo/SquareLogoRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.cs index bc3bec1c7c3..5251605101b 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Branding/SquareLogoDark/SquareLogoDarkRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs index 5891deb0600..88f8b548a26 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Certif UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CertificateBasedAuthConfigurationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs index 08a01f7c4f1..154c7c4ab93 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs index e679a87e792..b36439321d2 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 99fcde5e924..cc4cd656542 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index c8b2fd1e36c..86d19694ef4 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 70bd9cf6e0d..1f7b2233ab2 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization/{organization%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index b1dceaf62a7..350df86b60f 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index d5fcb38a0ab..15832c93962 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 88c50a934c0..2197e48764d 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.cs index 1d4cf2b3841..21e399e3b57 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.cs index 8988048ef17..fea2012d92a 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index fdecb5e9fee..464431505e9 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index d73698c3db7..16159b8316c 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index eb3b3feced2..1bb9f3c8155 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 0e5b641cc86..6eb21940a4a 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 135cfc45dcf..d5126638635 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 8ba151b3e79..d452d066688 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index bd27d7eebfe..128b2326915 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs index 43b7a286e7c..1acbe605274 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -93,8 +93,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the organization object. - /// Find more info here + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -156,10 +156,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the organization object. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,7 +175,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -202,14 +203,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Organ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OrganizationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -236,7 +237,7 @@ public OrganizationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the organization object. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. This API is available in the following national cloud deployments. /// public class OrganizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs index e976b6cd73f..62b5a7c757c 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs index 2aa91fef0cc..e4aaafb9089 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityPostResponse.cs @@ -37,7 +37,7 @@ public static SetMobileDeviceManagementAuthorityPostResponse CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetIntValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs index b87c7f195be..ea84506b714 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/SetMobileDeviceManagementAuthority/SetMobileDeviceManagementAuthorityRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs index 70b121dd405..9e4ffc556a0 100644 --- a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -146,14 +146,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Organi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OrganizationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 1688fd8377e..7946cbdad53 100644 --- a/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 9bcf6f240d5..0083ba4681a 100644 --- a/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs index 18970e0697e..71389142953 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs index 6cf967d6ff3..6d2980c7400 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 0c373454efd..b5aae582e93 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index b22be39ea17..5ba97be0d0f 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 4cc5a84f777..f2943e06150 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostRequestBody.cs index 931a46fee22..8dd8152b39e 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs index ed1133bd030..eb9668503ba 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs index 56f98c3c2b6..99d5e1b6da3 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 9c3d2062372..6fb024b401a 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index ee5bc561878..390ccf06326 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 86aa315de18..3ae57ac8803 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 8f70294dbfd..2824c4189e5 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index c937481c4ee..30f80110ba5 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 5f9b7a6e9ff..2ffa771880f 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 263da648f40..6cf9ef495c2 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index ff4b703802b..56b3b1f1ad9 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 6be2328b226..c96bf6a8dfd 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index e613a93b707..410c62681e3 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 4816caf599d..613fa96760d 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 1651313e716..dbb67a7b0f5 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index 1903dfb3275..45a46069054 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index 64396c1e1bb..286952960f8 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs index 1751eac6de7..9d77e7cc3ba 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -140,14 +140,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesPostRequestBody.cs index b8e894c855c..9806758c50f 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs index e59ccf3b268..e40cab4f4c3 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Places/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Count/CountRequestBuilder.cs index bcaeb862fcd..9297a7d8973 100644 --- a/src/Microsoft.Graph/Generated/Places/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/GraphRoom/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/GraphRoom/Count/CountRequestBuilder.cs index 6e149984e5f..d3b43f6b481 100644 --- a/src/Microsoft.Graph/Generated/Places/GraphRoom/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/GraphRoom/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/GraphRoom/GraphRoomRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/GraphRoom/GraphRoomRequestBuilder.cs index 3952fceb733..4dd33bbf887 100644 --- a/src/Microsoft.Graph/Generated/Places/GraphRoom/GraphRoomRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/GraphRoom/GraphRoomRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/GraphRoomList/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/GraphRoomList/Count/CountRequestBuilder.cs index e819e8ed618..49a5097c56c 100644 --- a/src/Microsoft.Graph/Generated/Places/GraphRoomList/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/GraphRoomList/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.cs index 9ba1ef7246e..57935e71a9a 100644 --- a/src/Microsoft.Graph/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/GraphRoomList/GraphRoomListRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs index e3060114612..e72bb06edfe 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs index ba9e83f2a76..386b97eee98 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs index 8a187f941ea..3dbf1d11b18 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs index a879801e3be..f30134ff637 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Room body, Action diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs index a1c297b2d24..898f1935516 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Room body, Action diff --git a/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs index 9ef9d44d85a..9f41288124f 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/PlaceItemRequestBuilder.cs @@ -101,6 +101,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -121,14 +122,14 @@ public RequestInformation ToPatchRequestInformation(Place body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs index 6ef3b21808e..c7986bda8b7 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/BucketsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PlannerBucket body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Count/CountRequestBuilder.cs index 801a4113009..83a3f6afa2c 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs index 289b87ac860..6b2d6fea293 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action

diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.cs index b63d5d51cbc..99626af57b9 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 2747923c4a5..f8656c6a5cf 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } ///

diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index de90f39f4de..06ff3abb4d7 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 33851e79c9e..37376e841d0 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index f02e668238f..de56a761260 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index d5e178528d4..5653381a4c6 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs index 546bbd1bf32..4ba877761dc 100644 --- a/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/PlannerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/PlannerRequestBuilder.cs index f8579f1ec5f..7d3dc070663 100644 --- a/src/Microsoft.Graph/Generated/Planner/PlannerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/PlannerRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Plann UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PlannerRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Count/CountRequestBuilder.cs index da948b5c47e..469d59183c8 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index e879f727ebc..b397cc8cb88 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerBucket body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs index 71d1680ab07..f54d31bdd8f 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs index 3dec041c15f..ef72348b2d5 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action

diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs index bee69366813..e0a01a78d0d 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 940934bac25..40562bc63d1 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } ///

diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 5b2887aab30..789196e1c06 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 2d6f35fb1eb..233c1ad1886 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 8730c0b1eb5..f61e85884b6 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index c6f968bbab0..5b1bf3006e9 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 0f38ae1d858..a184497d782 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index 9ca2e1174df..2335fac75e0 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlanDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs index c87fbe29dee..9443d8c8bad 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs index 6eea0babc23..bd169091299 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index 0a9a7727432..33d73c007e9 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index a6cfbeb1900..aa88dce0e4f 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 2b5f36c06d3..fff7a71635c 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 5d720d9451c..36a410dfdf8 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index acc29955f37..33892564d01 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index 67c3b34e441..78a3f53eb42 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs index ef960dc5c07..4e0f28de871 100644 --- a/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Plans/PlansRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Count/CountRequestBuilder.cs index 23163feeadc..8c876f6200b 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index e6df89567fd..aa5290aa5ab 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 1d55d36a5e4..f1f1bc1c214 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs index 18260d27d1f..280e8a45134 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 1d3e849ce9d..79506f1ac57 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 796f01290e6..43a824f1465 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs index 1aeafaf07a0..0b458760b5d 100644 --- a/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Planner/Tasks/TasksRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs index 536554326c4..be1979e208e 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/ActivityBasedTimeoutPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ActivityBasedTimeoutPolicy bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ActivityBasedTimeoutPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.cs index 14fb72aa2d8..029d18b89a9 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs index 35bc0a24f66..4d41949d0b0 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/ActivityBasedTimeoutPolicyItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ActivityBasedTimeoutPolicy b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ActivityBasedTimeoutPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index cc708468283..cb17bb08200 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index afff6830ae7..172f4a954ce 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index 1e89423aae9..f36c852ed1e 100644 --- a/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ActivityBasedTimeoutPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs index 95db8fc7302..3475730d874 100644 --- a/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AdminConsentRequestPolicy/AdminConsentRequestPolicyRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AdminConsentRequestPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs index 9a74c0f1fa8..8f8828610c0 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppManagementPolicy body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppManagementPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.cs index c1e8e9e2233..7b50b2130cd 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs index 01b7ab7d227..a2b68e809ae 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(AppManagementPolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppManagementPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 3881229b106..8bdf33c0ff1 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index 379dbcc5d0d..d0266ea7e7f 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index 6dfda569108..c7e56c85226 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs index 1bb8738ce74..225f2d736d0 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationFlowsPolicy/AuthenticationFlowsPolicyRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Authe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationFlowsPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs index d2130784689..ae71420931a 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethodConfigura UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs index da2b117f3d5..a89baaa5bba 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs index ca43d0b71b7..728fe08fea6 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfigur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs index 001dac6a331..a9e1f9152b1 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Authe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodsPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs index ea452c2702a..671af636baa 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationStrengthPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationStrengthPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs index 0e621f0c8cf..d4a1f6f18e4 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs index 790ebfeb2ed..86d00bd5ac5 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationStrengthPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs index 37fffe0e006..610ffab63b5 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationCombinationConf UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CombinationConfigurationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs index 0b2ac05ec92..1fffc289765 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs index 700f2404ead..e527df3d4e7 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationCombinationCon UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs index b4fc17b4599..75a005aa2f4 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs @@ -47,7 +47,7 @@ public static UpdateAllowedCombinationsPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowedCombinations", n => { AllowedCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfEnumValues("allowedCombinations", AllowedCombinations); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs index 742eebabfcd..ea2311b8fd9 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(UpdateAllowedCombinationsPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs index 8b4d12f428c..dcbe5964c8c 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs index 3e7af82bbc4..935b7e100ef 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthorizationPolicy/AuthorizationPolicyRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Autho UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthorizationPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs index 6be45f98e26..3ba52940675 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ClaimsMappingPolicy body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ClaimsMappingPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.cs index 7d7f1016b52..9b6681c19d3 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 947b65ff507..2a8b11b60b4 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index f77a30f6118..27a37033165 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index 8cdc1ecf54b..f5de20caa55 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs index a1a23610969..c11eda0c6fc 100644 --- a/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ClaimsMappingPolicies/Item/ClaimsMappingPolicyItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ClaimsMappingPolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ClaimsMappingPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.cs index cfdb7e5aa5e..92bb56e8c55 100644 --- a/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/ConditionalAccessPoliciesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ConditionalAccessPolicy body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConditionalAccessPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.cs index 28a29698637..d9620e83089 100644 --- a/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.cs index 7bc0df46893..0c654dae531 100644 --- a/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/ConditionalAccessPolicies/Item/ConditionalAccessPolicyItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ConditionalAccessPolicy body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConditionalAccessPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs index 6f2c05b2e56..96102cdc8e2 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Cross UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CrossTenantAccessPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs index 2350fbbc507..ccd5e821253 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. + /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Microsoft Entra ID (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -116,10 +116,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. + /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Microsoft Entra ID (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(CrossTenantAccessPolicyConfi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DefaultRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -196,7 +197,7 @@ public DefaultRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Azure AD (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. + /// Read the default configuration of a cross-tenant access policy. This default configuration may be the service default assigned by Microsoft Entra ID (isServiceDefault is true) or may be customized in your tenant (isServiceDefault is false). This API is available in the following national cloud deployments. /// public class DefaultRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs index d420984fff3..55e68b9f27a 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Default/ResetToSystemDefault/ResetToSystemDefaultRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.cs index 251d8c7a7c3..e9672c622b2 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs index 861b1f1edaf..02248199650 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(CrossTenantAccessPolicyConfi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs index 1f0895cecff..85babf4baa3 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPutRequestInformation(CrossTenantIdentitySyncPolicyP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentitySynchronizationRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs index 427de717024..61f47a60309 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/PartnersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CrossTenantAccessPolicyConfig UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PartnersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs index d2e26d30f04..2cd69110d3a 100644 --- a/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/DefaultAppManagementPolicy/DefaultAppManagementPolicyRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TenantAppManagementPolicy bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DefaultAppManagementPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.cs index 3ef33396ad3..c3c31247630 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs index c3ada6d45a4..c6ee2811c97 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/FeatureRolloutPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(FeatureRolloutPolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FeatureRolloutPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 0405db90a06..0fcb2044567 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(DirectoryObject body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppliesToRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index f0bd3d60a3c..eddd8654c6d 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs index ae6a3dd4bd2..520094fb6a0 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs index 4136ae086e4..5159cd19639 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs @@ -85,7 +85,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -113,13 +113,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs index 2a19a827f4a..2437961fb66 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/FeatureRolloutPolicyItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(FeatureRolloutPolicy body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FeatureRolloutPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs index 0cade3978db..fa79e571db6 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs index 85932fb1d54..00bd151abeb 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(HomeRealmDiscoveryPolicy body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HomeRealmDiscoveryPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 6b999cf8579..68f232a66b3 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index c87eae54f81..71aa9507a17 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index 46385b9f004..4739cebfcae 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs index 130ecc3ab72..dc732b7338a 100644 --- a/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(HomeRealmDiscoveryPolicy bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HomeRealmDiscoveryPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs index d0d3f4ae1dd..01ef7874fcc 100644 --- a/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/IdentitySecurityDefaultsEnforcementPolicy/IdentitySecurityDefaultsEnforcementPolicyRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Ident UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IdentitySecurityDefaultsEnforcementPolicyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.cs index cb04d8d9562..b5883c003a1 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.cs index 5f14d364d00..7249449e5b6 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs index d72ca063db2..16cb1938106 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/ExcludesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PermissionGrantConditionSet b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExcludesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs index b693a42bfaf..7a70b8b24f4 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Excludes/Item/PermissionGrantConditionSetItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(PermissionGrantConditionSet UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantConditionSetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.cs index 30376ee7b6e..c74e7159c76 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs index 3d6566462da..39116f0265a 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/IncludesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PermissionGrantConditionSet b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IncludesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs index bea042137c4..976bf184db9 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/Includes/Item/PermissionGrantConditionSetItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(PermissionGrantConditionSet UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantConditionSetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs index 994126667fb..d2f7bcfa629 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/Item/PermissionGrantPolicyItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(PermissionGrantPolicy body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs index b3b15c2d459..1976cd57f3a 100644 --- a/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PermissionGrantPolicies/PermissionGrantPoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PermissionGrantPolicy body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs index 8e1db3a92cb..9fbe14c936d 100644 --- a/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs @@ -179,7 +179,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -207,14 +207,14 @@ public RequestInformation ToPatchRequestInformation(PolicyRoot body, Action diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.cs index 57b81023358..7429fa16f85 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.cs index 6908def7211..61a10bab897 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.cs index eef2c67c1e5..5337b2d1f6e 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/EffectiveRulesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleManagementPolicyRu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EffectiveRulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs index 143cefc33ef..dc320ea4a2c 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/EffectiveRules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleManagementPolicyR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleManagementPolicyRuleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.cs index 538070653ae..fb07c088ad4 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs index b4909a2f3ec..a37320f794f 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/Item/UnifiedRoleManagementPolicyRuleItemRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleManagementPolicyRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. + /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Microsoft Entra roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Azure AD roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. + /// Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Microsoft Entra roles and examples of updating rules, see the following articles: This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleManagementPolicyR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleManagementPolicyRuleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs index 4c2c2f0cef9..1f33a6d7480 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/Rules/RulesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleManagementPolicyRu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs index 412057c4fe6..e7c0d653fee 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/Item/UnifiedRoleManagementPolicyItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleManagementPolicy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleManagementPolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs index bd3c2ec9993..641d94aec25 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicies/RoleManagementPoliciesRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleManagementPoliciesRequestBuilder(Dictionary pathParam public RoleManagementPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/roleManagementPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the details of the policies in PIM that can be applied to Azure AD roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. + /// Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UnifiedRoleManagementPo return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleManagementPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the details of the policies in PIM that can be applied to Azure AD roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. + /// Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleManagementPolicy b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleManagementPoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public RoleManagementPoliciesRequestBuilder WithUrl(string rawUrl) { return new RoleManagementPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the details of the policies in PIM that can be applied to Azure AD roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. + /// Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies. This API is available in the following national cloud deployments. /// public class RoleManagementPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.cs index 9e914d811fa..11a286b8a6a 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.cs index 10af0b6f910..eb980d43a2c 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/Policy/PolicyRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs index 776402b18ba..17b9a3ccd74 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/Item/UnifiedRoleManagementPolicyAssignmentItemRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the details of a policy assignment in PIM that's assigned to Azure AD roles or group membership or ownership. This API is available in the following national cloud deployments. + /// Get the details of a policy assignment in PIM that's assigned to Microsoft Entra roles or group membership or ownership. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,10 +115,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the details of a policy assignment in PIM that's assigned to Azure AD roles or group membership or ownership. This API is available in the following national cloud deployments. + /// Get the details of a policy assignment in PIM that's assigned to Microsoft Entra roles or group membership or ownership. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleManagementPolicyA UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleManagementPolicyAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -195,7 +196,7 @@ public UnifiedRoleManagementPolicyAssignmentItemRequestBuilderDeleteRequestConfi } } /// - /// Get the details of a policy assignment in PIM that's assigned to Azure AD roles or group membership or ownership. This API is available in the following national cloud deployments. + /// Get the details of a policy assignment in PIM that's assigned to Microsoft Entra roles or group membership or ownership. This API is available in the following national cloud deployments. /// public class UnifiedRoleManagementPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs index abffd89eb39..3647c5d3693 100644 --- a/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/RoleManagementPolicyAssignments/RoleManagementPolicyAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleManagementPolicyAssignmentsRequestBuilder(Dictionary public RoleManagementPolicyAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/roleManagementPolicyAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the details of all role management policy assignments made in PIM for Azure AD roles and PIM for groups. This API is available in the following national cloud deployments. + /// Get the details of all role management policy assignments made in PIM for Microsoft Entra roles and PIM for groups. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(UnifiedRoleMa return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleManagementPolicyAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the details of all role management policy assignments made in PIM for Azure AD roles and PIM for groups. This API is available in the following national cloud deployments. + /// Get the details of all role management policy assignments made in PIM for Microsoft Entra roles and PIM for groups. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleManagementPolicyAs UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleManagementPolicyAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public RoleManagementPolicyAssignmentsRequestBuilder WithUrl(string rawUrl) { return new RoleManagementPolicyAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the details of all role management policy assignments made in PIM for Azure AD roles and PIM for groups. This API is available in the following national cloud deployments. + /// Get the details of all role management policy assignments made in PIM for Microsoft Entra roles and PIM for groups. This API is available in the following national cloud deployments. /// public class RoleManagementPolicyAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.cs index 301641862e6..fade03d6065 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index da831357acf..473745199ac 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index 8d878bbf208..cc8dfe21620 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index 57b0cf46d06..8ab6ebe0d91 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs index 23a4ad7fea1..6181756ed16 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs @@ -54,7 +54,7 @@ public async Task DeleteAsync(Action - /// The policy that specifies the characteristics of SAML tokens issued by Azure AD. + /// The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -116,10 +116,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The policy that specifies the characteristics of SAML tokens issued by Azure AD. + /// The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(TokenIssuancePolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TokenIssuancePolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -196,7 +197,7 @@ public TokenIssuancePolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// The policy that specifies the characteristics of SAML tokens issued by Azure AD. + /// The policy that specifies the characteristics of SAML tokens issued by Microsoft Entra ID. /// public class TokenIssuancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs index ac9867aaec3..8428afa8d92 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TokenIssuancePolicy body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TokenIssuancePoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.cs index ebe89869d0b..97d87fe57ff 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index 75eef894c92..f3ff962f147 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs index 36cadf858b2..9b6f80e7f7f 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index a6d6a67a85e..67240980dcf 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs index 08ee6ef20f8..c6db43bd9c0 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TokenLifetimePolicy body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TokenLifetimePolicyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index 7379a78223c..c78a15902cb 100644 --- a/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TokenLifetimePolicy body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TokenLifetimePoliciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs index e987c698300..62ff7dbba77 100644 --- a/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Connectors/ConnectorsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintConnector body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Connectors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Connectors/Count/CountRequestBuilder.cs index 4f9ac7a54fe..73eace55e03 100644 --- a/src/Microsoft.Graph/Generated/Print/Connectors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Connectors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs index b9238c2f28c..2213f87198e 100644 --- a/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Connectors/Item/PrintConnectorItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(PrintConnector body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintConnectorItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Operations/Count/CountRequestBuilder.cs index e17e0faeba6..39e73cb8118 100644 --- a/src/Microsoft.Graph/Generated/Print/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs index 25003356186..eecc3c7505f 100644 --- a/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Operations/Item/PrintOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(PrintOperation body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs index dcc8c743370..a4aa99940c7 100644 --- a/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintOperation body, Action diff --git a/src/Microsoft.Graph/Generated/Print/PrintRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/PrintRequestBuilder.cs index 9a0a9229822..31bd2fe2539 100644 --- a/src/Microsoft.Graph/Generated/Print/PrintRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/PrintRequestBuilder.cs @@ -114,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -142,14 +142,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Print UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Count/CountRequestBuilder.cs index c87843d9443..fbc5204d09d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Create/CreatePostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Printers/Create/CreatePostRequestBody.cs index 1c82730b648..ec2698d19f9 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Create/CreatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Create/CreatePostRequestBody.cs @@ -122,7 +122,7 @@ public static CreatePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"certificateSigningRequest", n => { CertificateSigningRequest = n.GetObjectValue(PrintCertificateSigningRequest.CreateFromDiscriminatorValue); } }, {"connectorId", n => { ConnectorId = n.GetStringValue(); } }, @@ -137,7 +137,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("certificateSigningRequest", CertificateSigningRequest); writer.WriteStringValue("connectorId", ConnectorId); diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs index 1a9f81e43d7..b847863aaf7 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Create/CreateRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CreatePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs index 20e7e07afaa..6a9a5ee8eeb 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/ConnectorsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Count/CountRequestBuilder.cs index 8e2683c098e..43b248bc084 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.cs index 77942e766ec..ea47561e254 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Connectors/Item/PrintConnectorItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Count/CountRequestBuilder.cs index 53ff5391974..2921f198589 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortPostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortPostRequestBody.cs index f229c870fc1..2af0bc92913 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortPostRequestBody.cs @@ -46,7 +46,7 @@ public static AbortPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reason", n => { Reason = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reason", Reason); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs index 990d3df2b7e..b09c19afbb8 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Abort/AbortRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AbortPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AbortRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs index cb27770dbae..4af0184a258 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs index 8913bd4c6fa..c163108ce08 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs index 8d3c4d32e42..0f56fbb67da 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintDocument body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0f67a0c9d23..c9db91ffc11 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"properties", n => { Properties = n.GetObjectValue(PrintDocumentUploadProperties.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("properties", Properties); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 268c5b352b3..965f86a4f9d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs index e95c894aa74..45e1d26838f 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(PrintDocument body, Action

diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs index 7673fa0e141..f7c47b628dd 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.cs index 29dfff2115d..355748144d7 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/PrintJobItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(PrintJob body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs index 3eba20b5ced..f36d5f5ebfe 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs @@ -61,7 +61,7 @@ public static RedirectPostRequestBody CreateFromDiscriminatorValue(IParseNode pa ///

/// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"configuration", n => { Configuration = n.GetObjectValue(PrintJobConfiguration.CreateFromDiscriminatorValue); } }, {"destinationPrinterId", n => { DestinationPrinterId = n.GetStringValue(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("configuration", Configuration); writer.WriteStringValue("destinationPrinterId", DestinationPrinterId); diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs index dc33d15350c..ac85984eb1c 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(RedirectPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RedirectRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs index f82b1cdec9d..b8825eaded3 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Start/StartRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs index 69d8eefc4ca..e79c8d0db6b 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs index 3fe95bd6139..1e211841f03 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs index a83ad9bd752..8aaf9238c7e 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(PrintTask body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs index ccbbd2ea18c..d1405b7bd56 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs index fb25e00d6db..d25ba0ab413 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintTask body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/JobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/JobsRequestBuilder.cs index e7ceef9c25c..73cd609627a 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/JobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Jobs/JobsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintJob body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs index f00a7207ca9..3067856d5ff 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/PrinterItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Print UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrinterItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs index 3fdc0c66f5e..c1c2b59d24d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/RestoreFactoryDefaults/RestoreFactoryDefaultsRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Count/CountRequestBuilder.cs index 5e70e3c6498..f7996d147e8 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.cs index f9830fe70d8..8ffc6e7847b 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/Item/PrinterShareItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs index 64214b8959f..a767c6e26fb 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/Shares/SharesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Count/CountRequestBuilder.cs index 141287135ae..c8f0d63724d 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs index 4c44e2d9c73..f837dde09ab 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/Definition/DefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs index 7a8b1740f3c..0a2771d9136 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/Item/PrintTaskTriggerItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(PrintTaskTrigger body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintTaskTriggerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs index 61c1c323db5..091a1cc4ba5 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/Item/TaskTriggers/TaskTriggersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PrintTaskTrigger body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TaskTriggersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs index d9fe396bfe7..3e1bf2ddcb0 100644 --- a/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Printers/PrintersRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Printe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Services/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Count/CountRequestBuilder.cs index 4494952f6c0..15e0a0ff8d2 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Count/CountRequestBuilder.cs index f7a004c4264..3e51425f7c0 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs index 709fde4bef7..2ecf1a161f6 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/EndpointsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintServiceEndpoint body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EndpointsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs index af75e47ad70..93e23cfa17b 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/Endpoints/Item/PrintServiceEndpointItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(PrintServiceEndpoint body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintServiceEndpointItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs index edfb5efec2a..9103aa9eb20 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/Item/PrintServiceItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(PrintService body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs index 8e558e26859..d745cbb5272 100644 --- a/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Services/ServicesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintService body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Count/CountRequestBuilder.cs index 610a6380269..6123d3def0f 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs index 362d486a7a9..4aabd5ebd8c 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/AllowedGroupsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Count/CountRequestBuilder.cs index 4379bff78f8..5cb8d3fa7e0 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs index 564c66cf9ab..07a9b26362d 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 2a9971a2655..54a85cb1edb 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index cfe797cb199..58f0abbcccf 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs index d1953acc96b..3dbcd998d99 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs index 7d5016f7ff4..2c6c8de5122 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/AllowedUsersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Count/CountRequestBuilder.cs index b145fdfdefc..3d22b942d80 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index 53dfcf2c59c..7aa3707710c 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs index 36499419723..0e19cce5648 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 9ef0d2bb680..bad721a116d 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index a811d8758f8..7cc87b939ae 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs index 3059a9c07cd..d66da5eb8ef 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Count/CountRequestBuilder.cs index 688e3e6fb3a..e00dbc75dec 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortPostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortPostRequestBody.cs index 7264f090d99..3104f971521 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortPostRequestBody.cs @@ -46,7 +46,7 @@ public static AbortPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reason", n => { Reason = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reason", Reason); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs index 31abd7cb97e..9874bd79c80 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Abort/AbortRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AbortPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AbortRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs index ea2a3deb1bf..3e81421bf83 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Cancel/CancelRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs index fdd537080b8..3c750213d3c 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs index 018d505c1d4..db83e1cb8de 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/DocumentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintDocument body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index e5d48111bcb..bd934a9241d 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"properties", n => { Properties = n.GetObjectValue(PrintDocumentUploadProperties.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("properties", Properties); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 076b9bbb35a..407a463b0c4 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs index d99c358dd95..9fe419a1fc0 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/PrintDocumentItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(PrintDocument body, Action

diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs index be0cefddbee..64b91bf0d88 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Documents/Item/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.cs index 5d14108365a..6b2115bb745 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/PrintJobItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(PrintJob body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs index 5eba163e97e..c4b3bb205ea 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectPostRequestBody.cs @@ -61,7 +61,7 @@ public static RedirectPostRequestBody CreateFromDiscriminatorValue(IParseNode pa ///

/// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"configuration", n => { Configuration = n.GetObjectValue(PrintJobConfiguration.CreateFromDiscriminatorValue); } }, {"destinationPrinterId", n => { DestinationPrinterId = n.GetStringValue(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object ///
/// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("configuration", Configuration); writer.WriteStringValue("destinationPrinterId", DestinationPrinterId); diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs index 060b01c44a2..38860fe30c0 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Redirect/RedirectRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(RedirectPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RedirectRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs index 1fc7084369a..f47d2ab8934 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Start/StartRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs index 5c7e8672937..cccf973f458 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs index c08d1a2b38a..eb542056918 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs index b02de78d160..ff9f790fb7b 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(PrintTask body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs index acca1d5463f..008462acbb4 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs index cacc301efeb..5de3e0d4465 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/Item/Tasks/TasksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintTask body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/JobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/JobsRequestBuilder.cs index 43f56f3dc54..51be5391408 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/JobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Jobs/JobsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PrintJob body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/Printer/PrinterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/Printer/PrinterRequestBuilder.cs index 8b52f2367f6..178b9de8817 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/Printer/PrinterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/Printer/PrinterRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs index bb59e547e34..6740af0a122 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/PrinterShareItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(PrinterShare body, Action diff --git a/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs index ae055f9eacf..395a49f4fd7 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/SharesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PrinterShare body, Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Count/CountRequestBuilder.cs index 6f7a6c4eef7..266322ec209 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs index 6558678f26f..86b4dbe099b 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/PrintTaskDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(PrintTaskDefinition body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintTaskDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.cs index 1fccb09cdc9..3caa752133d 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs index d2986b86a6b..a4372704f31 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Definition/DefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs index b02692d6654..d80901e2fbc 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/PrintTaskItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(PrintTask body, Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs index 2cf8f208633..0aea6869107 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/Item/Trigger/TriggerRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs index ea31d7d760a..ef927e65ce9 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintTask body, Action diff --git a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs index 921bdf4994d..7777e3b8e14 100644 --- a/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/TaskDefinitions/TaskDefinitionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PrintTaskDefinition body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TaskDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Privacy/PrivacyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/PrivacyRequestBuilder.cs index b64c1c17d57..7c467a4bc1b 100644 --- a/src/Microsoft.Graph/Generated/Privacy/PrivacyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/PrivacyRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Priva UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrivacyRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs index 3314c16d136..39f1becfe21 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs index 75484725267..fddaf9bc7b5 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs @@ -80,7 +80,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs index 895eb3dd2d4..697b13c4621 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index 4d526290e4e..02a62bd1220 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -116,14 +116,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 52276018873..bad74cb6759 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index df9fd78cfc1..e2098c0b5bb 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -71,7 +71,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs index f3c5be0125e..5d2ebb9972e 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs index 4d9bb985962..6fb96dca97f 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -80,7 +80,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs index 8f81518ff99..4de093513ce 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index 713eac9dec6..10d22a389a4 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -116,14 +116,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index dc30076fb2b..df6f1d18b0b 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 7a66314b4e8..a891fa29653 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -71,7 +71,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs index be271cda64e..a28e217630a 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs index 1ce4c626c5b..f1bd05aff73 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs index 960b4285281..f084f8ecc16 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs index b266bacf345..aa16bcef616 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs index 3a0de5d80af..e40611b33cb 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs @@ -113,6 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(AuthoredNote body, Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs index e58d446a543..cc4e3805ba2 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -133,14 +133,14 @@ public RequestInformation ToPostRequestInformation(AuthoredNote body, Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs index d8e4dc97ffe..9affe27b81a 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -151,6 +151,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -170,7 +171,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -199,14 +200,14 @@ public RequestInformation ToPatchRequestInformation(SubjectRightsRequest body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubjectRightsRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs index 79e39f3c206..71bd9cb4c20 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs @@ -65,7 +65,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs index f9b6536df20..df966f9a17f 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -133,14 +133,14 @@ public RequestInformation ToPostRequestInformation(SubjectRightsRequest body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubjectRightsRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.cs index abd78838a5b..5e5a65232b0 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/AuthenticationMethodsRequestBuilder.cs @@ -65,7 +65,7 @@ public async Task DeleteAsync(Action - /// Container for navigation properties for Azure AD authentication methods resources. + /// Container for navigation properties for Microsoft Entra authentication methods resources. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,10 +126,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Container for navigation properties for Azure AD authentication methods resources. + /// Container for navigation properties for Microsoft Entra authentication methods resources. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodsRoot bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -226,7 +227,7 @@ public AuthenticationMethodsRequestBuilderDeleteRequestConfiguration() { } } /// - /// Container for navigation properties for Azure AD authentication methods resources. + /// Container for navigation properties for Microsoft Entra authentication methods resources. /// public class AuthenticationMethodsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.cs index de0bdfb8cad..e1368068a2a 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs index 289279928c4..2ce137da693 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/Item/UserRegistrationDetailsItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.UserR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserRegistrationDetailsItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs index 50030a2fcb2..14132e40bac 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UserRegistrationDetails/UserRegistrationDetailsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.UserRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserRegistrationDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.cs index c5731c5b796..e226678cf0f 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeature/UsersRegisteredByFeatureRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs index b59fbaeefe7..61eda52c112 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.cs index 105febdf599..a1629ea99cd 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethod/UsersRegisteredByMethodRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs index f5ee0222cca..8e5e7b107bb 100644 --- a/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/AuthenticationMethods/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles/UsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRolesRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.cs index 2b3567b788d..6c0fcd9726a 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs index 1095c406c7e..41076184fa1 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/DailyPrintUsageByPrinterRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintUsageByPrinter body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DailyPrintUsageByPrinterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs index ef17afaf25a..0b69baf0760 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(PrintUsageByPrinter body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintUsageByPrinterItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.cs index 6b69a031c7e..9642e604610 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs index 63c14d385a6..876544d5f31 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/DailyPrintUsageByUserRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintUsageByUser body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DailyPrintUsageByUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs index 51b11141410..df5a405cc3d 100644 --- a/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DailyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(PrintUsageByUser body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintUsageByUserItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.cs index 2f6e6928c89..a826f9a37d3 100644 --- a/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationDeviceActivity/DeviceConfigurationDeviceActivityRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.cs index aca5e12625c..2ca46640399 100644 --- a/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/DeviceConfigurationUserActivity/DeviceConfigurationUserActivityRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.cs index 1eeefca9867..e160b04b266 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityCountsWithPeriod/GetEmailActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.cs index 472b6146662..e580ba698f4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserCountsWithPeriod/GetEmailActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.cs index 5d20e3e2581..e36d0c663a5 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithDate/GetEmailActivityUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.cs index d699e2c6a47..2e7b35385f4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailActivityUserDetailWithPeriod/GetEmailActivityUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.cs index 1833eafe66e..de45eb580d4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageAppsUserCountsWithPeriod/GetEmailAppUsageAppsUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.cs index 40492463ef3..254ad3e3323 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserCountsWithPeriod/GetEmailAppUsageUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.cs index 153fc2af6af..4e0813277c6 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithDate/GetEmailAppUsageUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.cs index f4baa5b6535..b21258c0ee9 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageUserDetailWithPeriod/GetEmailAppUsageUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.cs index 1e7729a5068..2fd4965bb37 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetEmailAppUsageVersionsUserCountsWithPeriod/GetEmailAppUsageVersionsUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs index 8a32d1d5a1a..2bb31a931ed 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 5bebd9c38d4..95f6de451b3 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime/GetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs index df2031af884..3fa40c00ecd 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppPlatformUserCountsWithPeriod/GetM365AppPlatformUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs index 6e802d19419..c5e7282ef20 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserCountsWithPeriod/GetM365AppUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs index 8fcdff9393f..0ef93e3882a 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithDate/GetM365AppUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs index 6c883224ae0..b714be8321b 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetM365AppUserDetailWithPeriod/GetM365AppUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.cs index 98867bcab31..acee0d89fc7 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageDetailWithPeriod/GetMailboxUsageDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.cs index 810c45d6af3..3b6ade5921f 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageMailboxCountsWithPeriod/GetMailboxUsageMailboxCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.cs index 08be38168a9..15cd8ade018 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageQuotaStatusMailboxCountsWithPeriod/GetMailboxUsageQuotaStatusMailboxCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.cs index 3c2463b1e89..945409e2679 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetMailboxUsageStorageWithPeriod/GetMailboxUsageStorageWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.cs index 578492a505e..939e231e6ea 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationCounts/GetOffice365ActivationCountsRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.cs index a287adfeab1..a6fde0015f8 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserCounts/GetOffice365ActivationsUserCountsRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.cs index b928c96f116..5394968546f 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActivationsUserDetail/GetOffice365ActivationsUserDetailRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.cs index cf9210c58d7..b6be49d6442 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserCountsWithPeriod/GetOffice365ActiveUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.cs index 9aeebf5b22d..09c31d99e87 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithDate/GetOffice365ActiveUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.cs index c03037d48d0..b99a7b67195 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ActiveUserDetailWithPeriod/GetOffice365ActiveUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.cs index fa017dbb8aa..b4b67a1bd7c 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityCountsWithPeriod/GetOffice365GroupsActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.cs index b540bb22bf6..23716f9a7c2 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithDate/GetOffice365GroupsActivityDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.cs index 533e6f2a517..b976299ed86 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityDetailWithPeriod/GetOffice365GroupsActivityDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.cs index b3a6deb784e..8f7e76202af 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityFileCountsWithPeriod/GetOffice365GroupsActivityFileCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.cs index 1c4e4b43492..59f0f73131a 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityGroupCountsWithPeriod/GetOffice365GroupsActivityGroupCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.cs index 4f7aff7804d..2bc04114935 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365GroupsActivityStorageWithPeriod/GetOffice365GroupsActivityStorageWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.cs index e58dca98503..46821502f56 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOffice365ServicesUserCountsWithPeriod/GetOffice365ServicesUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.cs index eae096ab3ff..382bb634678 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityFileCountsWithPeriod/GetOneDriveActivityFileCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.cs index a863f815bc2..1ad1eb7c051 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserCountsWithPeriod/GetOneDriveActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.cs index f72df708dcd..f6fca0503fe 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithDate/GetOneDriveActivityUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.cs index 849e7585bca..c0b41c45080 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveActivityUserDetailWithPeriod/GetOneDriveActivityUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.cs index 5d0cb4512ce..b86ce6bd899 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountCountsWithPeriod/GetOneDriveUsageAccountCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.cs index 505902fd5f2..73844f114a4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithDate/GetOneDriveUsageAccountDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.cs index 7d5dd19a14e..9671f2ae84e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageAccountDetailWithPeriod/GetOneDriveUsageAccountDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.cs index 539257bfd42..af088d26799 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageFileCountsWithPeriod/GetOneDriveUsageFileCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.cs index 95aa5e5dde0..a27aaa51850 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetOneDriveUsageStorageWithPeriod/GetOneDriveUsageStorageWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs index 2f66ef32673..1f812a4418b 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 503547b4cc8..9fcefd24187 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime/GetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.cs index fa5910502ce..7c40fe3143b 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityFileCountsWithPeriod/GetSharePointActivityFileCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.cs index a07f754b9a0..c3fd563f30d 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityPagesWithPeriod/GetSharePointActivityPagesWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.cs index fb09a773995..922b04a565c 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserCountsWithPeriod/GetSharePointActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.cs index 092caf41eb5..2baf9b5e499 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithDate/GetSharePointActivityUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.cs index c07ef5426d2..cc7747cb9d7 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointActivityUserDetailWithPeriod/GetSharePointActivityUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.cs index 3bdd761ddc4..75c00b94a37 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithDate/GetSharePointSiteUsageDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.cs index 345772da524..e4dfd88cbc9 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageDetailWithPeriod/GetSharePointSiteUsageDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.cs index dcfe839f2ba..9a090ac42d4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageFileCountsWithPeriod/GetSharePointSiteUsageFileCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.cs index 417550449d8..6e3a6415000 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsagePagesWithPeriod/GetSharePointSiteUsagePagesWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.cs index e44b9a65169..e5d2f26da68 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageSiteCountsWithPeriod/GetSharePointSiteUsageSiteCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.cs index 6f324e9b672..b738d554653 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSharePointSiteUsageStorageWithPeriod/GetSharePointSiteUsageStorageWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.cs index 127ae6025b3..fae409e7471 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityCountsWithPeriod/GetSkypeForBusinessActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.cs index 911cc53964c..87c53c5d0ab 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserCountsWithPeriod/GetSkypeForBusinessActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.cs index 43a50634b07..e1dc32a6db6 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithDate/GetSkypeForBusinessActivityUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.cs index 7e1e96afab8..cdfe6c35c75 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessActivityUserDetailWithPeriod/GetSkypeForBusinessActivityUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs index cf847f5267b..e3c14a23d1b 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.cs index 99036f41cf3..aed47bbddea 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserCountsWithPeriod/GetSkypeForBusinessDeviceUsageUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.cs index 332a0b9bdc1..31ac4841fb9 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithDate/GetSkypeForBusinessDeviceUsageUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.cs index 005b93567ca..11371b0f98c 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessDeviceUsageUserDetailWithPeriod/GetSkypeForBusinessDeviceUsageUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.cs index 3e9505ca90b..0d748a50ef4 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityCountsWithPeriod/GetSkypeForBusinessOrganizerActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.cs index 2a38877835b..b8a9cf67f43 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod/GetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.cs index 4114f5ed433..8c51c5e215f 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriod/GetSkypeForBusinessOrganizerActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.cs index 1616b5772d7..3133907994b 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityCountsWithPeriod/GetSkypeForBusinessParticipantActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.cs index b3098e6eaca..415a95f9e9f 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod/GetSkypeForBusinessParticipantActivityMinuteCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.cs index 744e95ff533..34a0d0b452e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessParticipantActivityUserCountsWithPeriod/GetSkypeForBusinessParticipantActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.cs index d5881a7ded0..409943d990f 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.cs index 5487103f109..381b47a1218 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.cs index 36aadbafa37..23f829606cf 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod/GetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs index aa868d35889..f532a2fd611 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageDistributionUserCountsWithPeriod/GetTeamsDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.cs index 2cd2790905c..b6a4631f586 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserCountsWithPeriod/GetTeamsDeviceUsageUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.cs index 3cd57cdeb1c..f7b687e7903 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithDate/GetTeamsDeviceUsageUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.cs index e29c192c745..289433ff07a 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsDeviceUsageUserDetailWithPeriod/GetTeamsDeviceUsageUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.cs index da5a959153d..0fbed623536 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityCountsWithPeriod/GetTeamsTeamActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.cs index 90ad5cb1695..18214ce9d27 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithDate/GetTeamsTeamActivityDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.cs index a2f42e6d0cc..048ff570431 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDetailWithPeriod/GetTeamsTeamActivityDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.cs index 1a92fd642bd..16619d795e0 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamActivityDistributionCountsWithPeriod/GetTeamsTeamActivityDistributionCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.cs index e4a8a7d99d8..aa0ceeb4c11 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsTeamCountsWithPeriod/GetTeamsTeamCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.cs index fb23f2cbf6d..36c346b3185 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityCountsWithPeriod/GetTeamsUserActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.cs index a524d65b7cc..7c938ef5e78 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserCountsWithPeriod/GetTeamsUserActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.cs index c28c24299f2..b07b54c5670 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithDate/GetTeamsUserActivityUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.cs index 29b53ee90e0..9ffaff5a629 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetTeamsUserActivityUserDetailWithPeriod/GetTeamsUserActivityUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs index c54583cacd0..cd087fd6837 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ArchivedPrintJob.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 7e7dec06b13..f45c8b7eb2f 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime/GetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.cs index fd674c92e6b..8f06ea09b76 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityCountsWithPeriod/GetYammerActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.cs index 9ea1e3bd10b..78b80594d30 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserCountsWithPeriod/GetYammerActivityUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.cs index 6875de7affc..0eb1da4329e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithDate/GetYammerActivityUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.cs index cde84f84359..aacc6fb86c8 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerActivityUserDetailWithPeriod/GetYammerActivityUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs index 8dc24d796ac..2f3db62f688 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageDistributionUserCountsWithPeriod/GetYammerDeviceUsageDistributionUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.cs index 4cfe5eb059c..c7cdd8ec51e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserCountsWithPeriod/GetYammerDeviceUsageUserCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.cs index b2966657f98..249d5dd0f6e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithDate/GetYammerDeviceUsageUserDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.cs index b13262f7c33..857f69e607d 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerDeviceUsageUserDetailWithPeriod/GetYammerDeviceUsageUserDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.cs index a45ef30cb5a..eb7b5ef540e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityCountsWithPeriod/GetYammerGroupsActivityCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.cs index 2b6c0c33dba..c27cd47deef 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithDate/GetYammerGroupsActivityDetailWithDateRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.cs index 7f702c4c573..4cce4c8ed54 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityDetailWithPeriod/GetYammerGroupsActivityDetailWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.cs index dbed30999c5..1f4af463a2e 100644 --- a/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/GetYammerGroupsActivityGroupCountsWithPeriod/GetYammerGroupsActivityGroupCountsWithPeriodRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.cs index c2d0626a030..f99e1ec5ee7 100644 --- a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetails/ManagedDeviceEnrollmentFailureDetailsRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.cs index 5e1e9ec4dc7..f2bc88ba209 100644 --- a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken/ManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder.cs @@ -71,13 +71,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.cs index f1a160cc94b..302fafc5dfa 100644 --- a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailures/ManagedDeviceEnrollmentTopFailuresRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.cs index 97e012fb7c9..bcee06deed4 100644 --- a/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/ManagedDeviceEnrollmentTopFailuresWithPeriod/ManagedDeviceEnrollmentTopFailuresWithPeriodRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.cs index 3e9b0b866c4..2b37ee4673e 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs index 5277928f1a9..c04e2ff8c71 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/Item/PrintUsageByPrinterItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(PrintUsageByPrinter body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintUsageByPrinterItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs index e0e71884db4..c6ffff69741 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByPrinter/MonthlyPrintUsageByPrinterRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintUsageByPrinter body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MonthlyPrintUsageByPrinterRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.cs index af00ad9b453..9cf76737e40 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs index 3141314f003..4b15810512a 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/Item/PrintUsageByUserItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(PrintUsageByUser body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PrintUsageByUserItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs index b6bad6a86ea..faa5c3579fa 100644 --- a/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/MonthlyPrintUsageByUser/MonthlyPrintUsageByUserRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PrintUsageByUser body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MonthlyPrintUsageByUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs index 9c74706d5e5..c2758d625f1 100644 --- a/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/ReportsRequestBuilder.cs @@ -1015,7 +1015,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -1043,14 +1043,14 @@ public RequestInformation ToPatchRequestInformation(ReportRoot body, Action diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs index eee36d33716..52bc2fdf71d 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationRepeatOffender.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs index 7a0d69f3dec..059380571a6 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationRepeatOffenders/GetAttackSimulationRepeatOffendersRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs index 5e893930256..3d59a43eac6 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationSimulationUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs index 9d59dcfa8cc..ba4984a50a9 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationSimulationUserCoverage/GetAttackSimulationSimulationUserCoverageRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs index 1929f5abfc6..ff614d270c9 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttackSimulationTrainingUserCoverage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs index 6839c78e7e0..0954dfb84da 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/GetAttackSimulationTrainingUserCoverage/GetAttackSimulationTrainingUserCoverageRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Reports/Security/SecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Security/SecurityRequestBuilder.cs index 60a291810ab..322a1141c42 100644 --- a/src/Microsoft.Graph/Generated/Reports/Security/SecurityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Security/SecurityRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(SecurityReportsRoot body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SecurityRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/DirectoryRequestBuilder.cs index 2c4896b1464..4d03139daa0 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/DirectoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/DirectoryRequestBuilder.cs @@ -154,6 +154,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -172,7 +173,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -200,14 +201,14 @@ public RequestInformation ToPatchRequestInformation(RbacApplication body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Count/CountRequestBuilder.cs index b4a8e0a45c8..9530d7a15ad 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs index 3b01069de32..3730fdfbe52 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs index acab54de4e0..81a176d3a3c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRbacResourceAction bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRbacResourceActionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs index e52c95dbedf..8f792f8d211 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRbacResourceAction bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceActionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs index 288e30790b7..483403c8bbc 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRbacResourceNamespace UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRbacResourceNamespaceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs index 8dd046a7061..fc8c4e1c268 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRbacResourceNamespace UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceNamespacesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs index cebcc50a6de..010b97b59d1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 55e4dbe05dc..65860142533 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 0c35b31bca3..69516072af8 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index e7de87ba8c7..9f4e71e2862 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs index 1dabbeb34f6..02f6130c72c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 41dbddcbae5..982f9f0f328 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs index 9a0f4bd2b03..a61a7b9e83b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 22c14c2bb58..3e7df69d46a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs index 8072099d30a..af115ae89f6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignmentSchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs index e76ac3fe44d..ce9d319fa18 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentSchedule UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentScheduleInstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs index 25d33531d52..f38012e9cdf 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 65354249de5..4516dc27acd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 3e40d3d2ed7..e34f13e6695 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index aa09a103fd1..6f02cc2b9a4 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs index 46ffd6e5dfc..9161b383d68 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 4d1cf57368a..46b3b4a8f92 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 2ef7a735ba0..a72300a3cc9 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs index 328c0fa2127..ba3ca6c6f96 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 604796000cd..9836134e44a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs index 7c74fb80590..163967dce1a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs index 9f67604e114..87cebb1d107 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs @@ -145,6 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -163,7 +164,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -191,14 +192,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignmentSchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs index 05f1cb48496..5308c8756bd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs @@ -71,7 +71,7 @@ public async Task GetAsy return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentSchedule UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentScheduleRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Count/CountRequestBuilder.cs index 63964fd8bab..4b5441dd522 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index f9bc9dd8e9e..0eede8cb0f8 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 7ff29a0c119..1068d2c4aae 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index b721e93d733..633493fe3e3 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs index 4c856180215..378dd42998d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index b2de42a22bb..e25c9a1fb0e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs index 301b637b718..1094518aafb 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 6dfcd043886..5fe7664ae51 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs index 06b3097aa81..d7b7d6c29ae 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignmentSchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentScheduleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs index 95c39a293c1..654626359ed 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentSchedule UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentSchedulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Count/CountRequestBuilder.cs index 9c6e7d454e4..fb2424242dd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs index b94dd027c17..1b536b4c5dd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.AppSc UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppScopeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 9f1fa2d9098..e2023b60224 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs index 8b4c392794e..9faa8369b59 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index e4e44a63775..1235bba2b6d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs index c3e3683a747..ccd768c2884 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs @@ -131,6 +131,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -149,7 +150,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -177,14 +178,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignment body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 76ab3d6ca94..858dd183002 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleAssignmentsRequestBuilder(Dictionary pathParameters, public RoleAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleAssignment body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignment body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public RoleAssignmentsRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Count/CountRequestBuilder.cs index 3f0bcaebffb..0713388434d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs index 51b03ff78be..ae78ee387ab 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs index 0a14771dc33..826b2efc469 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs @@ -42,7 +42,7 @@ public InheritsPermissionsFromRequestBuilder(Dictionary pathPara public InheritsPermissionsFromRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleDefinitions/{unifiedRoleDefinition%2Did}/inheritsPermissionsFrom{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(UnifiedRoleDefinition body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleDefinition body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InheritsPermissionsFromRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -143,7 +143,7 @@ public InheritsPermissionsFromRequestBuilder WithUrl(string rawUrl) { return new InheritsPermissionsFromRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// public class InheritsPermissionsFromRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs index 68b2455d787..ef22093efdd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleDefinition body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// public class UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs index 8e10d341176..63d161702fc 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public UnifiedRoleDefinitionItemRequestBuilder(Dictionary pathPa public UnifiedRoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleDefinitions/{unifiedRoleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(UnifiedRoleDefinition body, return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleDefinition body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index 5d2be9b967a..b76a432f40c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters, public RoleDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/directory/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleDefinition body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleDefinition body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public RoleDefinitionsRequestBuilder WithUrl(string rawUrl) { return new RoleDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs index e571041981d..a681e6b7f4d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 497e0ae8c48..88222791ff6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index c4a7e7329ee..73b5def8276 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs index 062ed1470df..92bb6ccb637 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 0ec385976cd..c4ab0ff3a2b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs index 0b05951049a..006ba45add1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 93a30c65575..375e893bdb9 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs index 3caf68cc2ef..b3286c32abf 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleEligibilitySchedu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs index 75414607e1c..cdef7d29842 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleEligibilitySchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleEligibilityScheduleInstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs index eedc4a421a7..cf1d443f410 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 89ed63c0c76..b75db17cf9e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 551e302b615..0ec35b18c19 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs index f4467b15625..66a29e8c367 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 2efff23a5a0..d78d290442f 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index b700dd78b76..a3ddd17adae 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs index ac2535a525e..c6c96514b95 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index aa914eaca78..582610c9d93 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs index 264db14e403..9d9a9991cfe 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs index 02390654b38..b54ca428fce 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs @@ -140,6 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -158,7 +159,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -186,14 +187,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleEligibilitySchedu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs index e7c15cb192a..de7bd311cfe 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleEligibilitySchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleEligibilityScheduleRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Count/CountRequestBuilder.cs index 18a1a533585..a2c0a50f395 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index bc4d5710af5..ca57ee87876 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 6103599f421..186e4412a63 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs index f84d4043ed0..e0bd87cda06 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index f1ccd3410f7..97223415688 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs index 5e4b41978b7..f967bfee06e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 6e99f8fe8f7..ea38222ef2c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs index d37dfa59a3d..7dd37ca04cf 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleEligibilitySchedu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleEligibilityScheduleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs index c5b6783d99f..d06c3a61c40 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DirectoryNamespace/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleEligibilitySchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleEligibilitySchedulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.cs index cbb2991f11c..c1fb0cd0dcb 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/EntitlementManagementRequestBuilder.cs @@ -154,6 +154,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -172,7 +173,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -200,14 +201,14 @@ public RequestInformation ToPatchRequestInformation(RbacApplication body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EntitlementManagementRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.cs index bf59a014bce..5531734f6fd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs index b030106aed8..890042ccdf2 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs index ca70580c656..45eac2c5648 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/Item/UnifiedRbacResourceActionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRbacResourceAction bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRbacResourceActionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs index e10df5c1e1b..79c582b3676 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/ResourceActions/ResourceActionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRbacResourceAction bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceActionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs index 3ef21cc629d..ab66c805110 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/Item/UnifiedRbacResourceNamespaceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRbacResourceNamespace UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRbacResourceNamespaceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs index 4f1585f0886..02101dcdc36 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/ResourceNamespaces/ResourceNamespacesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRbacResourceNamespace UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceNamespacesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs index 4e6bab2928c..5502e9bd66e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 2927f4b7822..ada78d14583 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 4ec0e23550e..042030fec91 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index 677f706a10e..88c58ed997d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs index 76b63ef40ab..c8389f7461e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index c7a2638a6f4..ef682e40e58 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs index 71603e83358..a896e235080 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 84e2dcb84e3..b00a5c04904 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs index 45d094eaca2..c6a3720dcbd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/Item/UnifiedRoleAssignmentScheduleInstanceItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignmentSchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs index a5dee474c47..2a4f7ca1538 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleInstances/RoleAssignmentScheduleInstancesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentSchedule UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentScheduleInstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs index 83c1746d686..3cd79f55595 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 86fef80aba4..893dcf15dd1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 37f555b00bf..4eb97ea59c7 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index a7eb5ee991d..e523bd6c10e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs index 4fb0a172a03..849ffd68be2 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index ff13cd59485..3111061ba6a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 5e57dd69570..6fd1e7e0ae6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs index 9bc4a3b39e9..3d126270b67 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 7f3fd401c2d..2b932aec91c 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs index d8a3852eedc..c0416cf4ca0 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs index 3492a2ddcdc..1b7f91239a5 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/Item/UnifiedRoleAssignmentScheduleRequestItemRequestBuilder.cs @@ -145,6 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -163,7 +164,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -191,14 +192,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignmentSchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentScheduleRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs index a9f3065682f..5a082aa66b8 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentScheduleRequests/RoleAssignmentScheduleRequestsRequestBuilder.cs @@ -71,7 +71,7 @@ public async Task GetAsy return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentScheduleRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action - /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multi-factor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Azure AD Multi-Factor Authentication to secure sign-in events. This API is available in the following national cloud deployments. + /// In PIM, carry out the following operations through the unifiedRoleAssignmentScheduleRequest object: To call this API to update, renew, and extend assignments for yourself, you must have multifactor authentication (MFA) enforced, and running the query in a session in which they were challenged for MFA. See Enable per-user Microsoft Entra multifactor authentication to secure sign-in events. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentSchedule UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentScheduleRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.cs index 4366700c5ed..856ab9fd0e3 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 8be4eb21f34..2ae8373706e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleAssignmentSchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 266dedd6412..bb63d7d62b1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs index b5101ce5890..174f4b52297 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/ActivatedUsing/ActivatedUsingRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs index 56ab1cc90db..9af5852c878 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 214f617e92d..5e79ad44bff 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs index fe48769fb9a..d36dd0204a8 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 58a99882bf4..f2e0bea08d9 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs index 42c95e7697b..fa3ee3494f4 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/Item/UnifiedRoleAssignmentScheduleItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignmentSchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentScheduleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs index d032b1f3545..da14efc533b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignmentSchedules/RoleAssignmentSchedulesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentSchedule UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentSchedulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.cs index 26317660cfc..6a68b32ecc1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs index d3ad528d092..6d2e32a79f2 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/AppScope/AppScopeRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.AppSc UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppScopeRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 712c6e4bbf5..79a01777c9e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs index 0f226d8174f..e5be08640c0 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index dd02a8102a0..69421120580 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs index a3ea011a348..77282fce0c0 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/UnifiedRoleAssignmentItemRequestBuilder.cs @@ -131,6 +131,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -149,7 +150,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -177,14 +178,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleAssignment body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 0d5df135e44..db5e3246ee6 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleAssignmentsRequestBuilder(Dictionary pathParameters, public RoleAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleAssignment body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignment body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public RoleAssignmentsRequestBuilder WithUrl(string rawUrl) { return new RoleAssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.cs index f5057a7780c..e911aa7e70b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs index 46d08656645..7754ae47bb4 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs index a13edd64610..58e13f29dcc 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/InheritsPermissionsFromRequestBuilder.cs @@ -42,7 +42,7 @@ public InheritsPermissionsFromRequestBuilder(Dictionary pathPara public InheritsPermissionsFromRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleDefinitions/{unifiedRoleDefinition%2Did}/inheritsPermissionsFrom{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(UnifiedRoleDefinition body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleDefinition body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InheritsPermissionsFromRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -143,7 +143,7 @@ public InheritsPermissionsFromRequestBuilder WithUrl(string rawUrl) { return new InheritsPermissionsFromRequestBuilder(rawUrl, RequestAdapter); } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// public class InheritsPermissionsFromRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs index 611682e71c6..d2e6f3c8dc1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/InheritsPermissionsFrom/Item/UnifiedRoleDefinitionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,10 +109,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleDefinition body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -189,7 +190,7 @@ public UnifiedRoleDefinitionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read-only collection of role definitions that the given role definition inherits from. Only Azure AD built-in roles (isBuiltIn is true) support this attribute. Supports $expand. + /// Read-only collection of role definitions that the given role definition inherits from. Only Microsoft Entra built-in roles (isBuiltIn is true) support this attribute. Supports $expand. /// public class UnifiedRoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs index bdea9e42479..f76ee217239 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/Item/UnifiedRoleDefinitionItemRequestBuilder.cs @@ -34,7 +34,7 @@ public UnifiedRoleDefinitionItemRequestBuilder(Dictionary pathPa public UnifiedRoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleDefinitions/{unifiedRoleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -96,7 +96,7 @@ public async Task PatchAsync(UnifiedRoleDefinition body, return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Delete a unifiedRoleDefinition object. You can't delete built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Update the properties of a unifiedRoleDefinition object. You cannot update built-in roles. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleDefinition body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index 0d09064a965..88e86088d65 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -42,7 +42,7 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters, public RoleDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, UnifiedRoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -84,7 +84,7 @@ public async Task PostAsync(UnifiedRoleDefinition body, A return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new custom unifiedRoleDefinition object. This feature requires an Azure AD Premium P1 or P2 license. This API is available in the following national cloud deployments. + /// Create a new custom unifiedRoleDefinition object. This feature requires a Microsoft Entra ID P1 or P2 license. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleDefinition body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleDefinitionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public RoleDefinitionsRequestBuilder WithUrl(string rawUrl) { return new RoleDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Azure AD)- entitlement management (Azure AD) This API is available in the following national cloud deployments. + /// Get a list of unifiedRoleDefinition objects for the provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) This API is available in the following national cloud deployments. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs index eeb1dfdb931..f0823220493 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index 66590b1bb21..76da6c26257 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleInstance.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 081f4c926cb..ae24242457d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs index 5ba223ecc30..d84bddf9d88 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index eb8888dcf3d..e3b57572609 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs index f7c80ab2ea3..daad6e2b3d1 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index f22efae51b4..91ac67a07f7 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs index cc5afa51675..15c3234510e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/Item/UnifiedRoleEligibilityScheduleInstanceItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleEligibilitySchedu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleEligibilityScheduleInstanceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs index 76384339098..393c8781531 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleInstances/RoleEligibilityScheduleInstancesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleEligibilitySchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleEligibilityScheduleInstancesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs index 91f3d6b3cc7..31f285f7e0d 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index ee6811bc8f2..0cf0241b06b 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilityScheduleRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index 706ce125e70..4126200ad6e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs index dd9bef39775..d510d19e2cc 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs index 903e0547d13..bc048d6cf5a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Cancel/CancelRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index f297ebeafab..367dc062e87 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs index 25eb5c506d3..30c12b23766 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 0a975b517ce..bbe68cbf5b8 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs index 37424a710aa..98048dbccd4 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/TargetSchedule/TargetScheduleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs index 952f1d494e5..10ddd60d88f 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/Item/UnifiedRoleEligibilityScheduleRequestItemRequestBuilder.cs @@ -140,6 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -158,7 +159,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -186,14 +187,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleEligibilitySchedu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleEligibilityScheduleRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs index 3d8c82bd180..ff6dd5928af 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilityScheduleRequests/RoleEligibilityScheduleRequestsRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleEligibilitySchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleEligibilityScheduleRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.cs index 39e81180b26..3d3c7042dcb 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs index bc83a564377..ecfb06cf49e 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UnifiedRoleEligibilitySchedule.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs index f55f8549a5e..d561c5552cf 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs index 745b8e39110..e20accc6eab 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/AppScope/AppScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs index 2a5e89da40a..8d272327d9a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/DirectoryScope/DirectoryScopeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs index c2cce0308bd..025420475dd 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/Principal/PrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 5a92f07572f..c5252653086 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs index 8384b546427..eb870c4f40a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/Item/UnifiedRoleEligibilityScheduleItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedRoleEligibilitySchedu UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedRoleEligibilityScheduleItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs index ec6f2d644e6..6f405c3d939 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/EntitlementManagement/RoleEligibilitySchedules/RoleEligibilitySchedulesRequestBuilder.cs @@ -107,7 +107,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -135,14 +135,14 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleEligibilitySchedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleEligibilitySchedulesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/RoleManagement/RoleManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/RoleManagementRequestBuilder.cs index 27572529a7d..5d037bf924a 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/RoleManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/RoleManagementRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.RoleM UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RoleManagementRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/SchemaExtensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/SchemaExtensions/Count/CountRequestBuilder.cs index fb36aa0590c..1b659310091 100644 --- a/src/Microsoft.Graph/Generated/SchemaExtensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SchemaExtensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs index 56aaaf54650..90c0f8fd096 100644 --- a/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(SchemaExtension body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaExtensionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs index a2c40f3c1dc..766cbedf331 100644 --- a/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SchemaExtensions/SchemaExtensionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SchemaExtension body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaExtensionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.cs index 81b5836e2ed..780a71a7ffa 100644 --- a/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.cs index 1c376627a85..792ba771932 100644 --- a/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ScopedRoleMemberships/Item/ScopedRoleMembershipItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.cs index e55db0ca58e..896731f113f 100644 --- a/src/Microsoft.Graph/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ScopedRoleMemberships/ScopedRoleMembershipsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembershipsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryPostRequestBody.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryPostRequestBody.cs index e4137da9cd6..8a15ec4865b 100644 --- a/src/Microsoft.Graph/Generated/Search/Query/QueryPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryPostRequestBody.cs @@ -47,7 +47,7 @@ public static QueryPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"requests", n => { Requests = n.GetCollectionOfObjectValues(SearchRequest.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("requests", Requests); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs index dfe0049f0ea..ecb5fe67367 100644 --- a/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(SearchResponse.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs index 5cd6465c0a8..639717e64b2 100644 --- a/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Search/Query/QueryRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(QueryPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new QueryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Search/SearchRequestBuilder.cs b/src/Microsoft.Graph/Generated/Search/SearchRequestBuilder.cs index 8b936ea8eb7..4f1b54438c2 100644 --- a/src/Microsoft.Graph/Generated/Search/SearchRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Search/SearchRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(SearchEntity body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs index 0aa2fbb103a..839b9d4a2a0 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Alert body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs index 0ffe78f3949..f651fdc0679 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs index aa7c4059708..c0907fb92ae 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,14 +114,14 @@ public RequestInformation ToPatchRequestInformation(Alert body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs index bd44ebd19c3..65bed53ee9d 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Alerts_v2RequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Alert body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Count/CountRequestBuilder.cs index a6fc1c8b941..a64ed1978f9 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs index 80aecfd21fe..45f24258bd7 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/AlertItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Alert body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.cs index 63dbd849f4f..32d0f05c545 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/CommentsRequestBuilder.cs @@ -73,14 +73,14 @@ public RequestInformation ToPostRequestInformation(List body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.cs index 1fba6522fd8..0e9677b422c 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts_v2/Item/Comments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs index cad76e0b73a..e2e18de0b66 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/AttackSimulationRequestBuilder.cs @@ -149,6 +149,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -167,7 +168,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -195,14 +196,14 @@ public RequestInformation ToPatchRequestInformation(AttackSimulationRoot body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttackSimulationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs index 14d16d2ace5..f0ff4cac22a 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs index 423262d6c3a..cdf6d99656e 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/EndUserNotificationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(EndUserNotification body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EndUserNotificationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs index 94c8a6dd5ec..5c43cc62100 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs index 0dd7f3262b6..c4f436fb608 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/DetailsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(EndUserNotificationDetail bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs index d65d505f418..efa1e3a43cc 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/Details/Item/EndUserNotificationDetailItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(EndUserNotificationDetail bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EndUserNotificationDetailItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs index 4f16a3d0d84..6a4251ec7dd 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/EndUserNotifications/Item/EndUserNotificationItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(EndUserNotification body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EndUserNotificationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs index b04aa71347f..086d862d9a5 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs index de7de4c9b8f..13c2da59b50 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs index c178b5f1bb6..f77760a56ac 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/DetailsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(LandingPageDetail body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs index 3fe970505d3..6c04b19c15d 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/Details/Item/LandingPageDetailItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(LandingPageDetail body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LandingPageDetailItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs index 44b9edf351f..6cd1f1d4102 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/Item/LandingPageItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Landi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LandingPageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs index 3e571764063..c6dc221b36d 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LandingPages/LandingPagesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Landin UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LandingPagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs index e9db64dd27f..e791b46c33c 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs index c400a60b580..3e7d36c1b9d 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/Item/LoginPageItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Login UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LoginPageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs index cdc394123ff..04b0fe6ef04 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/LoginPages/LoginPagesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.LoginP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LoginPagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs index 015979ba656..56304973c22 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs index e1288c418d3..c9e5df11a86 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/Item/AttackSimulationOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AttackSimulationOperation bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttackSimulationOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs index 3640d92ee5b..fede7af3ff2 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(AttackSimulationOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs index 88d128377bf..fc0e3d0f6ff 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs index 678b0f84fc6..1d68ff9bd7f 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/Item/PayloadItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Paylo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PayloadItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs index 2672530b761..f3aa113393f 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Payloads/PayloadsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Payloa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PayloadsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.cs index dcbccfcd8ab..afb6ff4edbe 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.cs index c24b42502e3..a29868b3ba4 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.cs index 33650dc6e11..b08d9a2b5ad 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/Item/SimulationAutomationRunItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(SimulationAutomationRun body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SimulationAutomationRunItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs index 82ad2ba1259..6bebdde1ba2 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/Runs/RunsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SimulationAutomationRun body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RunsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs index a2007a16f19..8c0f4315782 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/Item/SimulationAutomationItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(SimulationAutomation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SimulationAutomationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs index 69b35bc2264..e9d384ce887 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/SimulationAutomations/SimulationAutomationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SimulationAutomation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SimulationAutomationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.cs index 4ecc91d488b..8164ffb2c7c 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs index deb3fa4a254..930a37bd477 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LandingPage/LandingPageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs index f9431a1dd34..5d8357c0cdc 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/LoginPage/LoginPageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs index 5c20a6fb7d1..72b4e4b311c 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/Payload/PayloadRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs index 9a63d294001..8bd5d4b852c 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/Item/SimulationItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Simulation body, Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs index 3bbffc539f0..27dfc961f57 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Simulation body, Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs index 4b8cd824fef..06bd12f7a23 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs index 0384f6e97d9..e17cd75c062 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs index 8afef751a56..039ddcfae26 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/Item/TrainingLanguageDetailItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TrainingLanguageDetail body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrainingLanguageDetailItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs index e692eae506b..4665c0eb41b 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/LanguageDetails/LanguageDetailsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TrainingLanguageDetail body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LanguageDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs index 1f094d6db03..af27dc0ee1a 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/Item/TrainingItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Training body, Action diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs index bb5530bcb51..c9aa8e988ac 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Trainings/TrainingsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Training body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/CasesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/CasesRequestBuilder.cs index 420c00cc100..6850dcb84ae 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/CasesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/CasesRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(CasesRoot body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.cs index 08079fe24a5..9b4df61a3f8 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs index 5473197bb14..d960194725f 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/EdiscoveryCasesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EdiscoveryCase body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.cs index ae1a367cbe9..50f3596099f 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs index eef9537838f..0c9dc3d642c 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/CustodiansRequestBuilder.cs @@ -109,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -137,14 +137,14 @@ public RequestInformation ToPostRequestInformation(EdiscoveryCustodian body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustodiansRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs index ff3262b97a0..4ee61f74e10 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/EdiscoveryCustodianItemRequestBuilder.cs @@ -155,6 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -173,7 +174,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -201,14 +202,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryCustodian body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoveryCustodianItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs index dedb75231df..10ad88a0e7e 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs index 13960adc83d..96cbc588bbf 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityActivate/MicrosoftGraphSecurityActivateRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs index 13bb55e5658..ad98a393687 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs index 0012c8a1878..3cde8b238a7 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs index 7164efef616..bf16a73b4aa 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs index a96ab5acb00..34272877d6f 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.cs index 472c266c38d..2850eefcb25 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.cs index c0e168db61c..9dda6caa5c2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/Site/SiteRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.cs index 4dd27b6c3e4..73fa346be7c 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/Item/SiteSourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(SiteSource body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs index 5bb241a3887..2c198c48f63 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/SiteSources/SiteSourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SiteSource body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.cs index 6175b7c6d1d..c759cd0437f 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs index 56e93413d3a..e90ded7edb3 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 69e1016dc86..36adb80e77e 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 361928b5345..03ad9f9bc39 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.cs index 77991432cd3..34b97c5a53a 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/Item/UnifiedGroupSourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UnifiedGroupSource body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedGroupSourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs index d572d0f223d..54e9c4aeb04 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UnifiedGroupSources/UnifiedGroupSourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UnifiedGroupSource body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnifiedGroupSourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.cs index fb21274056d..095a1f11bf7 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.cs index 8a7b13e9e42..0d48eec8803 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/Item/UserSourceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(UserSource body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs index 0e3fdc9e62a..ff9a7a267e7 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/Item/UserSources/UserSourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UserSource body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs index bd650a60d8f..2c9cab89863 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyHoldPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs index d4741bf7f20..efc5cfeb99d 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyHoldPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityApplyHoldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs index 6588d9eecea..d3c644d3ae4 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(RemoveHoldPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityRemoveHoldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs index 2316be9f397..934c4b8d67e 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Custodians/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs @@ -46,7 +46,7 @@ public static RemoveHoldPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs index 6ad4aba3834..11a2ff5186e 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/EdiscoveryCaseItemRequestBuilder.cs @@ -157,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryCase body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoveryCaseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs index 6dbf36fa410..92d1c835af2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityClose/MicrosoftGraphSecurityCloseRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs index 4d433522379..c8ba6831c67 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/MicrosoftGraphSecurityReopen/MicrosoftGraphSecurityReopenRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.cs index 4a6de0fae58..76aca20df19 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.cs index f7f05ddfb69..6b86910a9b5 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/DataSource/DataSourceRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DataSourceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs index ebe0c249d67..741bf65a1fb 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryNoncustodialDataSo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoveryNoncustodialDataSourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs index bd2b39e1a20..add3f037122 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/LastIndexOperation/LastIndexOperationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs index 8015588cb44..8468d9f0454 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs index eb2fb209d50..c1ffc1aa474 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRelease/MicrosoftGraphSecurityReleaseRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs index 52c7d4b0693..aa561542c16 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs index 27c6b943e03..727cc20fdc3 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/Item/MicrosoftGraphSecurityUpdateIndex/MicrosoftGraphSecurityUpdateIndexRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs index 5aee8fb1025..5bcf88f9068 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/ApplyHoldPostRequestBody.cs @@ -46,7 +46,7 @@ public static ApplyHoldPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs index b874be1b426..83369faeac7 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityApplyHold/MicrosoftGraphSecurityApplyHoldRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ApplyHoldPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityApplyHoldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs index 36ef2ebebf0..bb206bc7dc0 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/MicrosoftGraphSecurityRemoveHoldRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(RemoveHoldPostRequestBody bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityRemoveHoldRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs index df9f96d313d..cd680f1face 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/MicrosoftGraphSecurityRemoveHold/RemoveHoldPostRequestBody.cs @@ -46,7 +46,7 @@ public static RemoveHoldPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs index ca0e8de7fd6..515030a7a42 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/NoncustodialDataSources/NoncustodialDataSourcesRequestBuilder.cs @@ -108,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -136,14 +136,14 @@ public RequestInformation ToPostRequestInformation(EdiscoveryNoncustodialDataSou UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new NoncustodialDataSourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.cs index 39b7b1ff52b..45637024de2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs index d415aaf2c6d..a2eef89693a 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/Item/CaseOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(CaseOperation body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs index d56c6852864..41ee2101c42 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Operations/OperationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(CaseOperation body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.cs index b40cbfcdab8..7aa4d20bff9 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs index ad4597bb1ca..9bb77cf6005 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/EdiscoveryReviewSetItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryReviewSet body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoveryReviewSetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/AddToReviewSetPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/AddToReviewSetPostRequestBody.cs index 88ab1e0bad4..ec585e74cf5 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/AddToReviewSetPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/AddToReviewSetPostRequestBody.cs @@ -52,7 +52,7 @@ public static AddToReviewSetPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"additionalDataOptions", n => { AdditionalDataOptions = n.GetEnumValue(); } }, {"search", n => { Search = n.GetObjectValue(EdiscoverySearch.CreateFromDiscriminatorValue); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("additionalDataOptions", AdditionalDataOptions); writer.WriteObjectValue("search", Search); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs index 1607c419ad6..f2f0dea7a18 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityAddToReviewSet/MicrosoftGraphSecurityAddToReviewSetRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AddToReviewSetPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityAddToReviewSetRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs index 815f2a3958d..78dcaa2191b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs @@ -71,7 +71,7 @@ public static ExportPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"exportOptions", n => { ExportOptions = n.GetEnumValue(); } }, @@ -83,7 +83,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteEnumValue("exportOptions", ExportOptions); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs index ee5611ccc7e..76002a14375 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ExportPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityExportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.cs index 051dbb57f66..cb8155d1e42 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs index 8af1aa03050..25cf4c8da05 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/EdiscoveryReviewSetQueryItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryReviewSetQuery bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoveryReviewSetQueryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/ApplyTagsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/ApplyTagsPostRequestBody.cs index 78c64952d39..2a447c918dd 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/ApplyTagsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/ApplyTagsPostRequestBody.cs @@ -61,7 +61,7 @@ public static ApplyTagsPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"tagsToAdd", n => { TagsToAdd = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, {"tagsToRemove", n => { TagsToRemove = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("tagsToAdd", TagsToAdd); writer.WriteCollectionOfObjectValues("tagsToRemove", TagsToRemove); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs index 4e34528bbfe..a6b884c411b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityApplyTags/MicrosoftGraphSecurityApplyTagsRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ApplyTagsPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityApplyTagsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs index 5e5622def7f..9974f861c1c 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/ExportPostRequestBody.cs @@ -71,7 +71,7 @@ public static ExportPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, {"exportOptions", n => { ExportOptions = n.GetEnumValue(); } }, @@ -83,7 +83,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteEnumValue("exportOptions", ExportOptions); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs index ef85aca99c2..e490a5f9c2e 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ExportPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityExportRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs index f4dc208445d..566e834ef72 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/QueriesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EdiscoveryReviewSetQuery body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new QueriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs index 1ca1eb3ac17..2504a63e083 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/ReviewSetsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EdiscoveryReviewSet body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReviewSetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.cs index 027b118f52c..2a39a856862 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.cs index b84c5b18c6a..460f627d738 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AddToReviewSetOperation/AddToReviewSetOperationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs index 827cb24a502..6ed6cd7d87a 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/AdditionalSourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Securi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AdditionalSourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.cs index f334f3df060..9102452fc73 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.cs index 56bcf2eb511..8e7e669ca94 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/AdditionalSources/Item/DataSourceItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DataSourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.cs index d88e084cad5..a834bb3fd51 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs index d15fe9bbfa2..29cec9676e1 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/CustodianSourcesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.cs index 5c3aff95e1a..c14deaeebd0 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/CustodianSources/Item/DataSourceItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs index d7ac36574b7..d8785b8e40c 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/EdiscoverySearchItemRequestBuilder.cs @@ -147,6 +147,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -165,7 +166,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -193,14 +194,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoverySearch body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoverySearchItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs index 6941ce59ade..d7c4ea2c560 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/LastEstimateStatisticsOperation/LastEstimateStatisticsOperationRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs index 1f9a962d658..408f4a512fd 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityEstimateStatistics/MicrosoftGraphSecurityEstimateStatisticsRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs index 68af3b02244..5da2143cdf0 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/MicrosoftGraphSecurityPurgeDataRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(PurgeDataPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityPurgeDataRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/PurgeDataPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/PurgeDataPostRequestBody.cs index 3954d09d407..2267e2518a5 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/PurgeDataPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/MicrosoftGraphSecurityPurgeData/PurgeDataPostRequestBody.cs @@ -43,7 +43,7 @@ public static PurgeDataPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"purgeAreas", n => { PurgeAreas = n.GetEnumValue(); } }, {"purgeType", n => { PurgeType = n.GetEnumValue(); } }, @@ -53,7 +53,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("purgeAreas", PurgeAreas); writer.WriteEnumValue("purgeType", PurgeType); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.cs index e402e864cf5..d82c218533b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs index db07a8ed1d7..358bfa103c2 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/Item/EdiscoveryNoncustodialDataSourceItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.cs index 4c26ee4b698..0369f09cf8b 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/Item/NoncustodialSources/NoncustodialSourcesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs index 098904f5716..cc06a0b53ba 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Searches/SearchesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EdiscoverySearch body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SearchesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs index 2d131d24b21..5a06d6534e3 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/MicrosoftGraphSecurityResetToDefault/MicrosoftGraphSecurityResetToDefaultRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs index c297d0fe788..b8e749345d7 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Settings/SettingsRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryCaseSettings body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.cs index e221638a2b6..96698ce38c8 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.cs index 9ab88c6b86a..85126171d75 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/ChildTagsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.cs index 7d72622831a..6732b0c7897 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.cs index 6c90563b0c1..baf98e95da0 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/ChildTags/Item/EdiscoveryReviewTagItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs index cfa79afabf5..d303554f8c5 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/EdiscoveryReviewTagItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(EdiscoveryReviewTag body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EdiscoveryReviewTagItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.cs index 6fc7202a6a4..c8e45cd56c8 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/Item/Parent/ParentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs index 2c80b1ba748..a157c8253af 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/AsHierarchyGetResponse.cs @@ -33,7 +33,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(EdiscoveryReviewTag.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -42,7 +42,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs index a57c0acb258..23e18a5db15 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/MicrosoftGraphSecurityAsHierarchy/MicrosoftGraphSecurityAsHierarchyRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs index 65d23e11cd3..648fff07154 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/Tags/TagsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(EdiscoveryReviewTag body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TagsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Count/CountRequestBuilder.cs index 5b4c5aff9f3..94b8caf126d 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs index 83e6d127b0e..609169a896f 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/IncidentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Incident body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.cs index 36764bb69ee..b6d0c4925a6 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/AlertsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.cs index 970825d33be..5cba886a17e 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.cs index dd7d4dc0ebc..a6cfd727095 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/AlertItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.cs index f87f7595c39..1ad4a6041bd 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/CommentsRequestBuilder.cs @@ -73,14 +73,14 @@ public RequestInformation ToPostRequestInformation(List body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CommentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.cs index b45084f38ca..68b454f08eb 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/Alerts/Item/Comments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs index 1e9d8236ab2..13f8b37f3f7 100644 --- a/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Incidents/Item/IncidentItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Incident body, Action diff --git a/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.cs index f233c8147a9..42fa3323a78 100644 --- a/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.cs @@ -67,14 +67,14 @@ public RequestInformation ToPostRequestInformation(RunHuntingQueryPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MicrosoftGraphSecurityRunHuntingQueryRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs b/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs index a812f195f4e..6cceb5e4571 100644 --- a/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs @@ -46,7 +46,7 @@ public static RunHuntingQueryPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"query", n => { Query = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("query", Query); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.cs index 3561ba898b8..ad276c38484 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs index dafe40b3e6a..4211666e75f 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/Item/SecureScoreControlProfileItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(SecureScoreControlProfile bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SecureScoreControlProfileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs index 4fea29e6bc4..718c5cdf697 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScoreControlProfiles/SecureScoreControlProfilesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SecureScoreControlProfile bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SecureScoreControlProfilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/SecureScores/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScores/Count/CountRequestBuilder.cs index 2583c108ff4..3cb2fee308b 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScores/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScores/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs index 6a3fa0bb0a9..bf272b753a0 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScores/Item/SecureScoreItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SecureScore body, Action diff --git a/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs index 741bc9149e3..8b93028010a 100644 --- a/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecureScores/SecureScoresRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SecureScore body, Action diff --git a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs index efae9808b75..dc076aab0e0 100644 --- a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs @@ -144,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SecurityRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs index 129b81f3427..b56678c5895 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs index d1f105fa13f..eff13d110be 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs index 13035103be7..c44ba2a9c00 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index 121e2c4eaae..f488010d524 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index d4ece9fd546..c6cc71d1210 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 6e08b665167..3eec5d03afb 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs index 1b837c3ddcb..3d82ad143e2 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs index 5a7bf7ec6f3..61e79ad03c9 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs index af7946b243b..3968aa75786 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index 12ba1a6724b..4153a250c84 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 1d1bb1d0733..a29aae0743d 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index f5a5badfe84..7ae74526d4c 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs index a29825b7eb9..90beef81c1e 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs index 551c65301e7..bd91ecebec8 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs index cf1939f246e..5f42bad6044 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs index 85c2aeb153e..9ff99a6f4fa 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs index 1f927662ba0..fd3fc2aaad1 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AuthoredNote body, Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs index 641afceecc4..7fd8a4eca0f 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AuthoredNote body, Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs index b62c5e5e8ca..f9fd79b7b09 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(SubjectRightsRequest body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubjectRightsRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs index 65acab13e93..e5e219e9514 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs index 18183531b9c..9b996b15c91 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(SubjectRightsRequest body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SubjectRightsRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs index ee84e37c9ee..c15c7cf061d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/ArticleIndicatorsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ArticleIndicator body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArticleIndicatorsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.cs index 4710d6f202e..e7b13897f2b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs index 3a7664f3249..e35cc9bbff1 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/ArticleIndicatorItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ArticleIndicator body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArticleIndicatorItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.cs index 00fb57a23b0..0b773b51d55 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ArticleIndicators/Item/Artifact/ArtifactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs index a59a5c63dea..453f1b054a5 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/ArticlesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Article body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.cs index 2941157d123..716a1dcffa2 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs index 7e104045f82..9842beba910 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/ArticleItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(Article body, Action
diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.cs index c88f48de272..4249f07fb39 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs index d59fa5c0703..266d354bf02 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/IndicatorsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.cs index a0ebbdc1cf0..b07c9ace08c 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Articles/Item/Indicators/Item/ArticleIndicatorItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.cs index d14e1a54232..00196e14933 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs index 261cf3e6ce5..fbbd037d65f 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/HostComponentsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(HostComponent body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.cs index a392cbe4101..a4182dcecf4 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs index de6ea5c3e6d..55a6f4156bb 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostComponents/Item/HostComponentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(HostComponent body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.cs index fd9bbe6af21..7115867b334 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs index 71f4626399b..4128450438d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/HostCookiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(HostCookie body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.cs index f70e621ff50..a4a335ea587 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs index de8748b3657..a3b3ba3bc4a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostCookies/Item/HostCookieItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(HostCookie body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs index 14ef540b04d..380bfebeebf 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs index a763616f001..bf6b03d551c 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/HostPairsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(HostPair body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs index 8112af8ccce..307b34001c5 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ChildHost/ChildHostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs index 842e0f4834d..6b113112343 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/HostPairItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(HostPair body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs index 126e1a7a0c2..0ce2d62b15b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostPairs/Item/ParentHost/ParentHostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs index c5683975e18..cebca099ae4 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs index 4d479160996..b0931a37723 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/HostSslCertificatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(HostSslCertificate body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostSslCertificatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs index bd286dc41ea..0306cd2dc63 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs index 26ba0fb6cfc..c0bafe1bc56 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/HostSslCertificateItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(HostSslCertificate body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostSslCertificateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs index 7575f776391..2a6670e4556 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostSslCertificates/Item/SslCertificate/SslCertificateRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.cs index 2ca57d5cc76..d4c235ca140 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs index 72dae40ae49..84393680ef2 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/HostTrackersRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(HostTracker body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.cs index 883a0a286b4..f6e53506654 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs index d1a841e2e7e..22723ede78a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/HostTrackers/Item/HostTrackerItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(HostTracker body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.cs index f74c7e788d8..1416a61e59a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs index 32a97660478..29865f34e8e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/HostsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Securi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs index 93a22f0cce7..9d057175682 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/ChildHostPairsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs index f9af8286937..f5332226d0c 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs index 009a94e7904..4c4c338eb14 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ChildHostPairs/Item/HostPairItemRequestBuilder.cs @@ -29,7 +29,7 @@ public HostPairItemRequestBuilder(Dictionary pathParameters, IRe public HostPairItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/hosts/{host%2Did}/childHostPairs/{hostPair%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, HostPair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -81,7 +81,7 @@ public HostPairItemRequestBuilder WithUrl(string rawUrl) { return new HostPairItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a cihldHost. + /// The hostPairs that are resources associated with a host, where that host is the parentHost and has an outgoing pairing to a childHost. /// public class HostPairItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs index f45326f7967..d6f78e985ae 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/ComponentsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.cs index 21e505ced16..6df10404759 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.cs index 77bc69b6d06..f8ee8605114 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Components/Item/HostComponentItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs index 079fd947444..a41f347ccc5 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/CookiesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.cs index 2dd3fea6809..79e83473c11 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.cs index 4f2dc3f8d3f..17ec439d71b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Cookies/Item/HostCookieItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs index 2901dbbf80f..d1546da3bda 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostItemRequestBuilder.cs @@ -170,6 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -188,7 +189,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -216,14 +217,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs index 2e18e4ae89b..32f74a5103d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs index f1b22725618..9233cbb57c2 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/HostPairsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs index 3ef3aead662..8ae129f9d0a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/HostPairs/Item/HostPairItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs index 791d21c0fb7..5fe6c44bd0d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs index 6cd5c009726..fe58b1a458a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/Item/HostPairItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs index 942f31f5f12..acc9484c070 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/ParentHostPairs/ParentHostPairsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.cs index 76650207180..5459a40e7aa 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.cs index 10efd94c4ae..134195bcd39 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/Item/PassiveDnsRecordItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs index a1a16b0973e..2f8796489f6 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDns/PassiveDnsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.cs index 05e79b8f0eb..3e68bab5be6 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.cs index ce8ba423a56..2d63818a1ed 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/Item/PassiveDnsRecordItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs index be20f69f8bb..8b04f290581 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/PassiveDnsReverse/PassiveDnsReverseRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs index 8ae217874f7..5c24dd076ef 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Reputation/ReputationRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(HostReputation body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReputationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs index fb083019ab8..6af86e3bed9 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs index b797690f392..e14b4dddfec 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/Item/HostSslCertificateItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs index eb7237d872e..fbf817b4f5e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/SslCertificates/SslCertificatesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs index 803013803e5..1431978321b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs index 12e839e3ad4..f8d2c0b2573 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/Item/SubdomainItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs index 44a22c62544..6bdf85e9294 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Subdomains/SubdomainsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.cs index 6ce8c66cc8c..5469524b32b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.cs index ab40ca235c3..49cd596726b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/Item/HostTrackerItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs index 272be7e2e87..94db4b9549b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Trackers/TrackersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs index 5bc57956b4e..691b2571f53 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Hosts/Item/Whois/WhoisRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.cs index 518510e8d9a..210a45a9160 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs index f13b11a28e6..048e2a458e8 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/IntelProfilesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(IntelligenceProfile body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntelProfilesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.cs index c6eb8b366b0..d646383d919 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs index 8f4cc76e8bb..fc3e9e2052c 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/IndicatorsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs index 5647e5897ee..bccd547c50e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/Indicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs index 636bc29f9f7..12983b23910 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelProfiles/Item/IntelligenceProfileItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(IntelligenceProfile body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntelligenceProfileItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.cs index 96f137e8c2e..8b795b6ebd4 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs index ba2becf0875..804120aeeb9 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(IntelligenceProfileIndicator UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntelligenceProfileIndicatorsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.cs index e63ba395c31..6291f6b2464 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/Artifact/ArtifactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs index fbf6e977140..7c56bfdf770 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(IntelligenceProfileIndicator UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new IntelligenceProfileIndicatorItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.cs index 93a79a62f7b..89b77853492 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.cs index 7ab003abba9..c354847b273 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/Artifact/ArtifactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.cs index 8b6b29245f1..fe5fbfbe499 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/ParentHost/ParentHostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs index 49c23eb0b6c..83a427443fd 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/Item/PassiveDnsRecordItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(PassiveDnsRecord body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PassiveDnsRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs index 61e7f2cccdf..e1b918fa087 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/PassiveDnsRecords/PassiveDnsRecordsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(PassiveDnsRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PassiveDnsRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs index 764a8ccf2f0..b5525412ac6 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs index e32a0de6ed3..17e1a57c391 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs index 83bb2027ddd..31f556b35c1 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/Item/HostItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs index 7f29ecc4f07..19b7ebfc265 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/RelatedHosts/RelatedHostsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs index 97c6f1ae3e3..fb11ab53c7e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/Item/SslCertificateItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SslCertificateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs index 6810a29ac62..5e89fa1ce07 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/SslCertificates/SslCertificatesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Securi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SslCertificatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs index 419dd90b44f..0395e716159 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs index 31b5f3d410b..e9d1c417b45 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs index cc4f3b4263d..6346259f42b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/Item/SubdomainItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(Subdomain body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs index bdaf6b9dc3b..be259d8ef5f 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Subdomains/SubdomainsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Subdomain body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs index 8171d16bbd6..82a91e4546d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/ThreatIntelligenceRequestBuilder.cs @@ -189,6 +189,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -207,7 +208,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -235,14 +236,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ThreatIntelligenceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.cs index 5ee6b141fdb..0dbabbacf61 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.cs index bf1e1af4b3b..2b10f30c2fc 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/ArticlesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.cs index 5ad0166eec3..2421583e376 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.cs index 10d96d8561f..f282ef0853f 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Articles/Item/ArticleItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs index ab73a14bd7d..5d48a728576 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/ComponentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(VulnerabilityComponent body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ComponentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.cs index 9d4b7628110..2f22d25a1ec 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs index af7a16481c5..2ea03c2ad0d 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/Components/Item/VulnerabilityComponentItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(VulnerabilityComponent body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VulnerabilityComponentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs index 9e9a07afd91..a4af34b4a05 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/Item/VulnerabilityItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(Vulnerability body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs index a048479aa26..2ed4c20e6af 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/Vulnerabilities/VulnerabilitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Vulnerability body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs index 76b30ccc6a0..f59d106ef35 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs index 9367b68ed02..c2447bf2ec1 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs index b9fecc4c066..4fc6fc9253e 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/Item/WhoisHistoryRecordItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(WhoisHistoryRecord body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WhoisHistoryRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs index 3c300d3a110..9d1f09d74b4 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisHistoryRecords/WhoisHistoryRecordsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(WhoisHistoryRecord body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WhoisHistoryRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs index f2332706006..a4749aff598 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs index ee3cd64a1af..61adf9f3f1a 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs index 65c6535b9bf..1d31f471628 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/HistoryRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs index 60751a6a6b2..f08c2d93a0c 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/History/Item/WhoisHistoryRecordItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs index 98e9d33cdf6..052cb9e99a8 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/Host/HostRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs index 3d693c945d1..57a5341f657 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/Item/WhoisRecordItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(WhoisRecord body, Action diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs index c8e69f0c7f0..922350bac76 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/WhoisRecords/WhoisRecordsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(WhoisRecord body, Action diff --git a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.cs index 8f963d6864a..640f8aa3e85 100644 --- a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs index 49043204046..cd4fa5262ef 100644 --- a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/Item/RetentionEventTypeItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Secur UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RetentionEventTypeItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs index 07e4b1e3908..37ed83dcbb7 100644 --- a/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/TriggerTypes/RetentionEventTypes/RetentionEventTypesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Securi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RetentionEventTypesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.cs index 5a8716f71d4..db8a81e8c88 100644 --- a/src/Microsoft.Graph/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/TriggerTypes/TriggerTypesRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(TriggerTypesRoot body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TriggerTypesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.cs index 8b9c4047430..8350c94efc2 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs index d8093db8f3a..f1c0756f4d7 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(RetentionEvent body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RetentionEventItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs index 437ba461efd..564c0e89a7f 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs index c5f20d079a1..def9d2f521d 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/RetentionEvents/RetentionEventsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(RetentionEvent body, Action diff --git a/src/Microsoft.Graph/Generated/Security/Triggers/TriggersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Triggers/TriggersRequestBuilder.cs index 06088ab3bec..e55e5081852 100644 --- a/src/Microsoft.Graph/Generated/Security/Triggers/TriggersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Triggers/TriggersRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(TriggersRoot body, Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Count/CountRequestBuilder.cs index 7a730f78b26..2efc527f96a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs index 03086b95da2..095558732bd 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ServicePrincipal.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs index 1c9d87742f5..f8cfc63d3ac 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index b9837fc5e87..2ef3f4b2261 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 88dfef52b73..4138be47291 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 9fdb78a833e..a369aaaa424 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostRequestBody.cs index 1d10dc1b431..bfd2ddf6b91 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs index 79dcffbff88..45a17d00e69 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs index 6ba238f25c4..587726f9919 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyPostRequestBody.cs index 8c4ee8165f4..d80a85f998e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyPostRequestBody.cs @@ -75,7 +75,7 @@ public static AddKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyCredential", n => { KeyCredential = n.GetObjectValue(Microsoft.Graph.Models.KeyCredential.CreateFromDiscriminatorValue); } }, {"passwordCredential", n => { PasswordCredential = n.GetObjectValue(Microsoft.Graph.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("keyCredential", KeyCredential); writer.WriteObjectValue("passwordCredential", PasswordCredential); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs index 650d2aef3e7..222a2ec3717 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddKey/AddKeyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddKeyPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddKeyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordPostRequestBody.cs index 31cc404aa11..03cbb7855a6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPasswordPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"passwordCredential", n => { PasswordCredential = n.GetObjectValue(Microsoft.Graph.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("passwordCredential", PasswordCredential); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs index 619ba2d1c33..b236de8de7c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddPassword/AddPasswordRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddPasswordPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddPasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificatePostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificatePostRequestBody.cs index 8b467dc7709..da19d68eb10 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificatePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificatePostRequestBody.cs @@ -51,7 +51,7 @@ public static AddTokenSigningCertificatePostRequestBody CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs index 236e8ec3900..34865fe4a96 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AddTokenSigningCertificate/AddTokenSigningCertificateRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddTokenSigningCertificatePos UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddTokenSigningCertificateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs index 6fd520ea242..117b5c8dac7 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.cs index 0cd0f1d075d..b595d01de04 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs index 5153b75475b..4c59033baaa 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs index 89b264d4f47..80ca120abd5 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/AppRoleAssignedToRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignedToRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.cs index 6d70c70b847..d267757c88a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs index 7ae799e36b0..28a1a5dd60a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignedTo/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index b0ae0fea053..8e529db48a4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.cs index 7d778dadeb1..d5612bf438b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index 93743ca40a7..28bfc786bd9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 2a55cf092b0..a0ea293cb9b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 71d4d1ea821..f9ef1a1437f 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index aae8f278a5e..c836ec72acb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 240b9ec544b..551166106d9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 31d22acdb7c..69f9c3c0c43 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 4e55cb1c428..77e8787e3ed 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs index 57fe6e78c70..51d0da48cfc 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/ClaimsMappingPoliciesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.cs index 5be4dec9217..645a73ff03a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs index 61333ce10ac..3162b4c4bb1 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs index 3f3b9c85366..a9165b3cb63 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.cs index fafeaf680ae..a6451f64eed 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs index 3c796686313..2df00b9b7f2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs @@ -81,7 +81,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs index 29423ba722f..7acb985fff3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 84a7eae6e72..412cf0fca75 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs index b15617ad3da..2d517f907fd 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 65b38482080..093d4343452 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.cs index 406234b874f..2c5ca394ac1 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs index f1dbdbc96fe..a392d9d999f 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/DelegatedPermissionClassificationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DelegatedPermissionClassifica UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedPermissionClassificationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs index eab4dbdd4a1..bfccecd4d7d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/DelegatedPermissionClassifications/Item/DelegatedPermissionClassificationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedPermissionClassific UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedPermissionClassificationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.cs index 9567de016be..1e6be5f32f5 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.cs index b426f57a057..5081add9278 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/EndpointsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Endpoint body, Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.cs index 8f0b239aecd..675059aa811 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Endpoints/Item/EndpointItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Endpoint body, Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs index b952cbba92c..2b89b767fba 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs index c3afa5e55a5..bfd8e9225a6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(FederatedIdentityCredential b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FederatedIdentityCredentialsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs index 0530d2c1a38..82bf8da7b10 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 9e3666f8989..4e165bbb653 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 847f5bdd94a..4fa69a57f64 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 65892a4c252..724b44a85fb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 32d3f21c01d..b2b60530a1a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 05ec4185ebc..d1a3a6b482e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 7d867614952..5c4dc54692e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs index 870ad6d17c0..302e03fdcbb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs index 24cf8563901..b4263f3a3a2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs index 3619accd531..8a711ed8ce7 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs index 1e372d6c89f..be14cd472e8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.cs index f01c6500359..6714feec971 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index d52755e90c7..a9e817edb98 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 9a4d711de36..89b6e5bc686 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs index aed5e9d30fc..11859109d85 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 21bda6b6842..847e7983da4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index d481486c14f..6c033f07e6e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 39b36769212..6936aeab015 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index aadfd706624..a7dd25bdcd9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index efd76fb6f28..3fc16e25f01 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 024f566bc3e..de41c3fb8f1 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index cecd03f9278..be95cd0089b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.cs index 1ec8e509580..b891f027d27 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/MemberOf/MemberOfRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs index fcbf0ef6fba..7174a03dba8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs index 36674b113ac..a649d6c9221 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index 729421e09f3..5340d14ca2c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.cs index 8e68be249fb..7478379a616 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index c0b9d705bc0..c790fbda1f7 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 45560cd0261..b4e037eecfa 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs index 5d1e749a376..183ebad6ae0 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs index a221b17c42b..3600a8bb0c8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.cs index 37ad006a837..635bfe0d70f 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.cs index bbbdf8c328c..09cd34170fe 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs index b4be76edc45..505daa7fcd2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs index 179730fd584..ba0852bb846 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs index c80ff1d1360..954b1313862 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index d3c63e04863..c781d0f879a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs index ef2b5bf7ea2..40733430191 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 5d3c7b8feb3..cc93fbece88 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs index be4071677ae..b983e7df229 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 65778a64266..6a515cab8f3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs index 9279c54c990..2c85aba91c5 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index d905b4a971b..8bc0fe046c0 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs index f299b5768da..2a042fe98bb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs @@ -101,7 +101,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.cs index 3baf7f45871..89bc0f1688b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index f3896714b85..def6d1ede09 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 60229a1abbb..c4526978e4d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs index 6f5ae0b140d..e9873709842 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs index ba3f61fb92d..66f1041937e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs index 09e2e4d2e93..2125448b8d6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 2229af2c093..6b287429af9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.cs index d35797c16c4..2e4c5958cc4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.cs index 79bfe1d5e73..cc3b5cbfae6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 69df2dce9c2..85c45206c66 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 50e22b2a749..743ba7f07b4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 15a91f1f851..48d0b68d795 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs index 26123935ba6..824d621b3bb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs index 11795248f20..15d7d5811e4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -70,6 +70,7 @@ public RequestInformation ToDeleteRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.cs index 346f8a148de..8ca39a6f5eb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/OwnersRequestBuilder.cs @@ -102,7 +102,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs index d2ae0bf08df..f8f14b81353 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -114,13 +114,14 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RefRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilder.cs new file mode 100644 index 00000000000..8beddf52690 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/RemoteDesktopSecurityConfigurationRequestBuilder.cs @@ -0,0 +1,257 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration.TargetDeviceGroups; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration { + /// + /// Provides operations to manage the remoteDesktopSecurityConfiguration property of the microsoft.graph.servicePrincipal entity. + /// + public class RemoteDesktopSecurityConfigurationRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the targetDeviceGroups property of the microsoft.graph.remoteDesktopSecurityConfiguration entity. + public TargetDeviceGroupsRequestBuilder TargetDeviceGroups { get => + new TargetDeviceGroupsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new RemoteDesktopSecurityConfigurationRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RemoteDesktopSecurityConfigurationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new RemoteDesktopSecurityConfigurationRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RemoteDesktopSecurityConfigurationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property remoteDesktopSecurityConfiguration for servicePrincipals + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get remoteDesktopSecurityConfiguration from servicePrincipals + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property remoteDesktopSecurityConfiguration in servicePrincipals + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property remoteDesktopSecurityConfiguration for servicePrincipals + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + return requestInfo; + } + /// + /// Get remoteDesktopSecurityConfiguration from servicePrincipals + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + return requestInfo; + } + /// + /// Update the navigation property remoteDesktopSecurityConfiguration in servicePrincipals + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.RemoteDesktopSecurityConfiguration body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public RemoteDesktopSecurityConfigurationRequestBuilder WithUrl(string rawUrl) { + return new RemoteDesktopSecurityConfigurationRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new remoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public RemoteDesktopSecurityConfigurationRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get remoteDesktopSecurityConfiguration from servicePrincipals + /// + public class RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters QueryParameters { get; set; } = new RemoteDesktopSecurityConfigurationRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new remoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration and sets the default values. + /// + public RemoteDesktopSecurityConfigurationRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new remoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public RemoteDesktopSecurityConfigurationRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f6d55486a02 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration.TargetDeviceGroups.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilder.cs new file mode 100644 index 00000000000..a2df076c25a --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/Item/TargetDeviceGroupItemRequestBuilder.cs @@ -0,0 +1,252 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration.TargetDeviceGroups.Item { + /// + /// Provides operations to manage the targetDeviceGroups property of the microsoft.graph.remoteDesktopSecurityConfiguration entity. + /// + public class TargetDeviceGroupItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new TargetDeviceGroupItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TargetDeviceGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroup%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TargetDeviceGroupItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TargetDeviceGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroup%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property targetDeviceGroups for servicePrincipals + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get targetDeviceGroups from servicePrincipals + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TargetDeviceGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property targetDeviceGroups in servicePrincipals + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(TargetDeviceGroup body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(TargetDeviceGroup body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TargetDeviceGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property targetDeviceGroups for servicePrincipals + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + return requestInfo; + } + /// + /// Get targetDeviceGroups from servicePrincipals + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TargetDeviceGroupItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + return requestInfo; + } + /// + /// Update the navigation property targetDeviceGroups in servicePrincipals + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(TargetDeviceGroup body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(TargetDeviceGroup body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TargetDeviceGroupItemRequestBuilder WithUrl(string rawUrl) { + return new TargetDeviceGroupItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public TargetDeviceGroupItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get targetDeviceGroups from servicePrincipals + /// + public class TargetDeviceGroupItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetDeviceGroupItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TargetDeviceGroupItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TargetDeviceGroupItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new TargetDeviceGroupItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TargetDeviceGroupItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public TargetDeviceGroupItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilder.cs new file mode 100644 index 00000000000..3fb162e6d97 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoteDesktopSecurityConfiguration/TargetDeviceGroups/TargetDeviceGroupsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration.TargetDeviceGroups.Count; +using Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration.TargetDeviceGroups.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration.TargetDeviceGroups { + /// + /// Provides operations to manage the targetDeviceGroups property of the microsoft.graph.remoteDesktopSecurityConfiguration entity. + /// + public class TargetDeviceGroupsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the targetDeviceGroups property of the microsoft.graph.remoteDesktopSecurityConfiguration entity. + /// The unique identifier of targetDeviceGroup + public TargetDeviceGroupItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("targetDeviceGroup%2Did", position); + return new TargetDeviceGroupItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new TargetDeviceGroupsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TargetDeviceGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TargetDeviceGroupsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TargetDeviceGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/remoteDesktopSecurityConfiguration/targetDeviceGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get targetDeviceGroups from servicePrincipals + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TargetDeviceGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to targetDeviceGroups for servicePrincipals + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(TargetDeviceGroup body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(TargetDeviceGroup body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TargetDeviceGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get targetDeviceGroups from servicePrincipals + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TargetDeviceGroupsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + return requestInfo; + } + /// + /// Create new navigation property to targetDeviceGroups for servicePrincipals + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(TargetDeviceGroup body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(TargetDeviceGroup body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new TargetDeviceGroupsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TargetDeviceGroupsRequestBuilder WithUrl(string rawUrl) { + return new TargetDeviceGroupsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get targetDeviceGroups from servicePrincipals + /// + public class TargetDeviceGroupsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetDeviceGroupsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TargetDeviceGroupsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TargetDeviceGroupsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new targetDeviceGroupsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TargetDeviceGroupsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TargetDeviceGroupsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new targetDeviceGroupsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public TargetDeviceGroupsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyPostRequestBody.cs index dc30e9fb9c3..bbc438c6952 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyPostRequestBody.cs @@ -51,7 +51,7 @@ public static RemoveKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyId", n => { KeyId = n.GetGuidValue(); } }, {"proof", n => { Proof = n.GetStringValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("keyId", KeyId); writer.WriteStringValue("proof", Proof); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs index a3cb62e3772..047ceaaa6b2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemoveKey/RemoveKeyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RemoveKeyPostRequestBody body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoveKeyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordPostRequestBody.cs index eddd2fb435e..1cd247bd5ec 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordPostRequestBody.cs @@ -37,7 +37,7 @@ public static RemovePasswordPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keyId", n => { KeyId = n.GetGuidValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteGuidValue("keyId", KeyId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs index 16b5cd8dbd2..8562204fb09 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/RemovePassword/RemovePasswordRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RemovePasswordPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemovePasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs index dbb052001c4..0bc06d657fe 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs index 6b8e0439f77..25d155bf073 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs @@ -21,6 +21,7 @@ using Microsoft.Graph.ServicePrincipals.Item.Oauth2PermissionGrants; using Microsoft.Graph.ServicePrincipals.Item.OwnedObjects; using Microsoft.Graph.ServicePrincipals.Item.Owners; +using Microsoft.Graph.ServicePrincipals.Item.RemoteDesktopSecurityConfiguration; using Microsoft.Graph.ServicePrincipals.Item.RemoveKey; using Microsoft.Graph.ServicePrincipals.Item.RemovePassword; using Microsoft.Graph.ServicePrincipals.Item.Restore; @@ -121,6 +122,10 @@ public class ServicePrincipalItemRequestBuilder : BaseRequestBuilder { public OwnersRequestBuilder Owners { get => new OwnersRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the remoteDesktopSecurityConfiguration property of the microsoft.graph.servicePrincipal entity. + public RemoteDesktopSecurityConfigurationRequestBuilder RemoteDesktopSecurityConfiguration { get => + new RemoteDesktopSecurityConfigurationRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the removeKey method. public RemoveKeyRequestBuilder RemoveKey { get => new RemoveKeyRequestBuilder(PathParameters, RequestAdapter); @@ -246,6 +251,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -264,7 +270,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -292,14 +298,14 @@ public RequestInformation ToPatchRequestInformation(ServicePrincipal body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServicePrincipalItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs index bb9cfadefc8..cd38b564620 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs @@ -47,7 +47,7 @@ public static AcquireAccessTokenPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("credentials", Credentials); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs index a6a0c9c25be..9740d755a70 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs @@ -28,7 +28,7 @@ public AcquireAccessTokenRequestBuilder(Dictionary pathParameter public AcquireAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/acquireAccessToken", rawUrl) { } /// - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is available in the following national cloud deployments. + /// Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(AcquireAccessTokenPostRequestBody body, Action - /// Acquire an OAuth access token to authorize the Azure AD provisioning service to provision users into an application. This API is available in the following national cloud deployments. + /// Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcquireAccessTokenPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcquireAccessTokenRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs index 2015b962034..4621df85d81 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs index bd665834d4b..f253c0a8e6d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Pause/PauseRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs index bb789caa589..e5391258dbe 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandPostRequestBody.cs @@ -47,7 +47,7 @@ public static ProvisionOnDemandPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"parameters", n => { Parameters = n.GetCollectionOfObjectValues(SynchronizationJobApplicationParameters.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("parameters", Parameters); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index c83012fb16d..1016e22e719 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ProvisionOnDemandPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProvisionOnDemandRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs index def5a6a2f78..bd74583ea03 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs @@ -47,7 +47,7 @@ public static RestartPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"criteria", n => { Criteria = n.GetObjectValue(SynchronizationJobRestartCriteria.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs index 37384d8e3c4..d4b83360727 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(RestartPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RestartRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs index 8df0c473ebf..69d97cfab79 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs index f9340dbdc53..03d75e33dcc 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs index 1c78b28292e..a00365e4c4d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 5341c179a93..c784b592409 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs index 20a1fcca923..c32ee214f8c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index 0f2fb05e958..f0cb63f6b13 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs index d8b34b946a5..3c9218efb39 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs index e62b0e1b94e..92758044031 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs index 04b6bb81993..05b2682b577 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs @@ -75,7 +75,7 @@ public static ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expression", n => { Expression = n.GetStringValue(); } }, {"targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(AttributeDefinition.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index d5a78a009e0..417b0e92a8c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParseExpressionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs index 1ad8603b2fe..50295fab8c8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs @@ -131,6 +131,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -149,7 +150,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -177,14 +178,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs index 3ab18a71583..84ba7cede6e 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs index d34d2f10e44..1245f11a532 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/SynchronizationJobItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationJob body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SynchronizationJobItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs index aea796265a5..59b3fca4e44 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs @@ -80,7 +80,7 @@ public static ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationIdentifier", n => { ApplicationIdentifier = n.GetStringValue(); } }, {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationIdentifier", ApplicationIdentifier); writer.WriteCollectionOfObjectValues("credentials", Credentials); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index f25f6f6eeec..939240c3a5d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidateCredentialsPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidateCredentialsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs index 2bc7799c567..9eced462de3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/JobsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(SynchronizationJob body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new JobsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs index f95b9322abc..f8732558099 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs @@ -80,7 +80,7 @@ public static ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"applicationIdentifier", n => { ApplicationIdentifier = n.GetStringValue(); } }, {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationIdentifier", ApplicationIdentifier); writer.WriteCollectionOfObjectValues("credentials", Credentials); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index 429683b1560..512ac599846 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(ValidateCredentialsPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidateCredentialsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs index 6113335f7da..6fde6136d2a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.cs index 6ccba2b9673..3d0afe9a236 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Secrets/SecretsRequestBuilder.cs @@ -73,14 +73,14 @@ public RequestInformation ToPutRequestInformation(List diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs index 044d695bc9c..e8cff150e9a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs @@ -68,7 +68,7 @@ public async Task DeleteAsync(Action - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,10 +129,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Synchro UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SynchronizationRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -209,7 +210,7 @@ public SynchronizationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. + /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// public class SynchronizationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.cs index 25e8da97332..342f12c5004 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs index 3b3cf772bee..37cc23ea25a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs index 802f3340021..f64180737a8 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs index 2dcf4a445b4..9480ac6509c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DirectoryDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 83fd305b370..4e28d4eb2ab 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs index 9bf25bcd5ce..82c34ad59f9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index ada326d77dc..d424a168cf0 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs index 8974b15f666..49fb1f98b64 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs index c5a814b6340..110ff4318b9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs index 672709a00f3..30012a5f597 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs @@ -75,7 +75,7 @@ public static ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"expression", n => { Expression = n.GetStringValue(); } }, {"targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(AttributeDefinition.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 5ae964c1524..00f737959e6 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs @@ -29,7 +29,7 @@ public ParseExpressionRequestBuilder(Dictionary pathParameters, public ParseExpressionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression", rawUrl) { } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ParseExpressionPostRequestB return await RequestAdapter.SendAsync(requestInfo, ParseExpressionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Azure Active Directory. This API is available in the following national cloud deployments. + /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParseExpressionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs index a3c63cc1305..04ffc172ed5 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchemaRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs index 6d4acc3cadb..cf05bc3699a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(SynchronizationTemplate body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SynchronizationTemplateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs index 35ae0486b87..b84b3d8f5ee 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Templates/TemplatesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SynchronizationTemplate body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TemplatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs index 81152e4b4ca..94154f69300 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs index f35db33e8ac..5594ecbd7b9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/Item/TokenIssuancePolicyItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs index 498ddf830b9..facff36f4ae 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs index b874be0e097..d7992916da0 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs index bc2b70df19a..80825d08073 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/Item/TokenLifetimePolicyItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index 0f8e72ab998..4a4d3cf0fdb 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index 2aae94a22ab..44047f0e550 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index a4746648b22..fbef715203c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 9dc02ede3e0..0f44452bb45 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs index 3b749fb6735..059ddb66ab3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 48144c8bce7..e5a15ff9f4c 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index 5569dea84a0..dc464138133 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 83d8a076a2d..a6c80674647 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 4ab820a576f..04714628fa4 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 2839dcf1b86..d439389090b 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 17f05359f95..879281700cd 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index bdb61e51737..99314bfea8d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index 98b21abb04e..580df280ec3 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs index c6f66afe3f8..4b67568994a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/ServicePrincipalsRequestBuilder.cs @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(ServicePrincipal body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServicePrincipalsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 5c904c0d60a..cd2a343f76a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 1f6a9f7364e..2e3aecd5257 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs index ccfd3632d7a..3aae41a91db 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs @@ -113,6 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -131,7 +132,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -159,14 +160,14 @@ public RequestInformation ToPatchRequestInformation(ServicePrincipal body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Count/CountRequestBuilder.cs index 2f38341fa5e..7df9bf224a1 100644 --- a/src/Microsoft.Graph/Generated/Shares/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index a856d14b11b..1dc93ddd98b 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index fd0d3eb9414..68f7afe70b5 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 57aebe151cf..1c29c4a4ac0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 0a5f978b81a..c8314b9f1d3 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.cs index 424dda2e937..53ea80ec4d4 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs index 7d90390d25c..d7328c8872c 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/DriveItem/DriveItemRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Items/Count/CountRequestBuilder.cs index e02f8be64cc..ebb707815c6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.cs index d9b29a66521..cb3f8569a0b 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.cs index 9e36bb1bd5c..f8cd11dcf26 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Items/ItemsRequestBuilder.cs index 81fa5f15670..1d6a2de0a5d 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Items/ItemsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index fafd5f1a2c9..3fdf5f8271e 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 00d23badbc7..49cb722dcc7 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 9ffa6f89af8..7cd85b3c1e3 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index d0f87ca402d..45fa8eafa81 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs index 8ec33b8167f..fba7cab1543 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Count/CountRequestBuilder.cs index 56ba3d9c016..118191cc239 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 0d80bb90a16..bf597d622b2 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 4f4dfaff30d..6d65d4b09ee 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index 5b82f007c0e..2cc625f4cc1 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index c75c3b355b8..bafc6015b27 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index 6e4062595d3..ceac0898ea4 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypeId", n => { ContentTypeId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentTypeId", ContentTypeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index e63520d082d..7ba5d7c8399 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs index 141365f0359..95df6032a5f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/ContentTypesRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Count/CountRequestBuilder.cs index 861867b2d88..267b7424847 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index e5594648ac2..31fdad3d771 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index b3858110ff2..6a328e597f8 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index db8b8c7ebf6..929a27a75f0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -51,7 +51,7 @@ public static AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("hubSiteUrls", HubSiteUrls); writer.WriteBoolValue("propagateToExistingLists", PropagateToExistingLists); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 439384bbad4..30c995ec63d 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociateWithHubSitesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index 62d3ce50cff..b6bcaf43ccb 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index d913ffc1ba4..e91badc69df 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 4293c438c66..05ca5ff8d36 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index 576321a02da..87f4a0a7251 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index fbdb1333123..ae04d7a10be 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index d67960e2dea..e4a313fbf02 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 3d2801cbc41..35edae9b042 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 2fd07e8f33d..b20bb6ff41f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index d51e91e0dca..ff23e3087df 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 9284c15c0fa..c309e098eb8 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index a535ac34f3a..874efecd1c4 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 782e26ad605..f11512e4440 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index a15832d0fce..beffe3f9efd 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index e7f0ab4eb98..c4092fc16a6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index 0153b4aa096..0d142650b27 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -159,6 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -177,7 +178,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -205,14 +206,14 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index ab377715b0c..604e0c1ebeb 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, {"sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); writer.WriteObjectValue("sourceFile", SourceFile); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 01503b3b322..1b4286c5d66 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 0e404e1fcf2..faa14168144 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -37,7 +37,7 @@ public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index ddcbdd96cc6..d00dccb91eb 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs index c6c8c74b71d..7bac9c733d3 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index e2511f34917..d9c24cd34c3 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs index f5e371c6668..05a3f7c8992 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 7d1f9ace944..b722441169a 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c20054ed52c..9f76e50e1f7 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 5d12f8524ab..5f3deed0282 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Drive/DriveRequestBuilder.cs index 17b92d43a8f..198bc3d9199 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs index f4a19c0a123..ec0db0b300f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 0b96b87a64f..16dbdf3ff1d 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index a1367279a3d..5bf6a31e371 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 021ee6f3736..951430cbb88 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 9e7670e3d26..b5945f36c3c 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs index aba2b3eb75c..e9cde2584f3 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index d9427e8ef6e..3a0573bf288 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 845e868196c..6c336be19a5 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs index 2fb42c7fdf0..650e49ea945 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index 119a35c3dbf..c25750983e2 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs index 672d4f9c837..502411064c0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs index 1971cc13c1a..7696231a785 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs index ed6271b25e5..3d21385c1e0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 613976d925a..c077b575639 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index cd500df245f..948462c0553 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 3f051d40374..080ec27fef9 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 9d29b9077fe..11b4bb772d0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 36d34c8a075..74b401e205b 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index bd3c800a413..bfb912a26f8 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c4a2ea73b41..ccde1cecdb6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index db9cacc9a71..77e34183f20 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs index 86aba81c853..22be02a74c7 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -164,6 +164,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -182,7 +183,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -210,14 +211,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.ListI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs index 4f084969182..f515bdce44f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs index 1527ec1a5aa..5e32958467d 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index e58536d4b53..d9591880a44 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 3dffc64eb26..3aa4d19f778 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs index 37a5935c81e..252728f9483 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/Versions/VersionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ListItemVersion body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs index 5b4802f64b8..46ff8f4fcd8 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/ItemsRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.ListIt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 34449f84c82..87909a24a9a 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 1b0b8bdc5a2..ff612d4e3fb 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 096e70e9b4e..b39ab20d26d 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 698964685ae..4da5b37f20d 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/ListRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/ListRequestBuilder.cs index a0afdc11b31..b9eaf33348f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/ListRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/ListRequestBuilder.cs @@ -149,6 +149,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -167,7 +168,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -195,14 +196,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.List UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Count/CountRequestBuilder.cs index ca6e2e712f7..e1f7fddb4c0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index c0c7e56fdbe..416c4afe486 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RichLongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/OperationsRequestBuilder.cs index 237ff0c8dec..4b400119951 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Count/CountRequestBuilder.cs index f4d438e505b..24de5a9940e 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 5fb1048d00d..5b516eecb58 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index 3cacbd97352..c09a341589f 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs index 11a7335a305..0f5ee4a4712 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/ListItem/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/ListItem/ListItemRequestBuilder.cs index 8153391421d..37c92e0fd9c 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/ListItem/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/ListItem/ListItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostRequestBody.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostRequestBody.cs index 6835a25dc4b..384c03f5db0 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostRequestBody.cs @@ -61,7 +61,7 @@ public static GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteCollectionOfPrimitiveValues("roles", Roles); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs index 517ec6fb25e..9fa19db1967 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs index 84800578495..4240228cefc 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/Grant/GrantRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GrantRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Permission/PermissionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Permission/PermissionRequestBuilder.cs index 3abb5b9f0ca..dab81844e52 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Permission/PermissionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Permission/PermissionRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Permi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Root/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Root/Content/ContentRequestBuilder.cs index 6322176377d..bcc5b043244 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Root/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Root/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Root/RootRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Root/RootRequestBuilder.cs index 0ea237056ae..864e30f52a6 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Root/RootRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Root/RootRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs index a65dcd009bd..3ff743b50d3 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/SharedDriveItemItemRequestBuilder.cs @@ -155,6 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -173,7 +174,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -201,14 +202,14 @@ public RequestInformation ToPatchRequestInformation(SharedDriveItem body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedDriveItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Shares/Item/Site/SiteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/Item/Site/SiteRequestBuilder.cs index 8c25d5dee67..2ea9f1d7a69 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/Site/SiteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/Site/SiteRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs index c76766e9958..0e7763cf3a5 100644 --- a/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Shares/SharesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(SharedDriveItem body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddPostRequestBody.cs index 7ed39f766e2..367fcd8d853 100644 --- a/src/Microsoft.Graph/Generated/Sites/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs index 767634e2a88..08eebe7fff9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs index e657af349f2..e169e5d36da 100644 --- a/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Count/CountRequestBuilder.cs index 4e26a62d0c8..4e88e36e63e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..2495889e73b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Delta/DeltaGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Delta { + public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..ed17800502f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,175 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Sites.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDeltaGetResponseAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsDeltaGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public DeltaRequestBuilder WithUrl(string rawUrl) { + return new DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Sites/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..6fbf921974c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Sites/Delta/DeltaResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Sites.Delta { + [Obsolete("This class is obsolete. Use deltaGetResponse instead.")] + public class DeltaResponse : DeltaGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs index ecc15bd1757..8291487dce4 100644 --- a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs index 4ab68baa193..90153572434 100644 --- a/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/GetAllSites/GetAllSitesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index 450c6964bfd..cfd888082a8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.cs index 56e665ec9bb..4baff028e7d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/AnalyticsRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs index f3ffc56caae..070c4d8881b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs index 2371a15f1d1..09bf04825cb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ItemActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs index f1f78094fde..818c110749d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs index a3da59aff00..48816785d36 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs index ece0e18b926..4d9e6b4d75e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs index 754725fdd24..7a5f0f5f2f1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ItemActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs index 17de56baf43..616a0e19738 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemActivityStatItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs index b1e4833841c..047b4a3a511 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemActivityStatsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs index bdffb26a58d..bdf88c969aa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs index 32d03529f09..8d2be655331 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Columns/Count/CountRequestBuilder.cs index 72b2af263c8..4f5e97499b4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 9f3b961a5b6..6c646655f35 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index f572030f829..7a2b70507f1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index 7d8b5b73116..933826deea7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index ab3ff1bf50a..85b064abc3a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index 88e5522a797..981ff698c3f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypeId", n => { ContentTypeId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentTypeId", ContentTypeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index cc8f590963e..a9b059e1e59 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs index b38d95438f9..11d628eca00 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -114,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -142,14 +142,14 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs index 019ac3d8354..e1d93583ff1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index 5f060587d09..a6754bb2363 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index e0de13aba36..555c8897fc9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 397a22b0190..7f6670c192a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -51,7 +51,7 @@ public static AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("hubSiteUrls", HubSiteUrls); writer.WriteBoolValue("propagateToExistingLists", PropagateToExistingLists); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 7a563b18eea..9eb68e3e6d3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociateWithHubSitesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index a9dcbd11460..18413286c56 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index b030bf45d79..126db954e74 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 2016ce3667e..60d38593b42 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index 83a6b93e61d..4bf13dc3be4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index 44b08a67053..571c02ec08a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index 7c06ae3a687..9b50480f310 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 206ccf7f881..a4a528f2a51 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index cd7628afc4b..0953ce64ef7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index c0d32ecda1d..6a8ae83ec10 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index c2f7cccf48e..b996d0e068e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 2caebb4600b..f1f8cb62222 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 9e45a000684..73e0cff0115 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 3cb6d0dc02f..c7f32dadde4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index f95e3b3ae64..e2ac1e41567 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index 0db493a8cb1..2640a621d3f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -162,6 +162,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -180,7 +181,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -208,14 +209,14 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index 00223bc97f3..0c4e7b6ccc0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, {"sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); writer.WriteObjectValue("sourceFile", SourceFile); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index f1c5a2d4ae7..92e0709b19b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index bdd8f44f92d..4704c0d3b50 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -37,7 +37,7 @@ public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 105044351a9..6e28a0c0306 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index 410cb13628c..3ebeaccb119 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 709cb600fa0..3fa0a28474a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 98c1b95fe03..fb25eb695a3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index f6495b4d44b..9f6a90a7573 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 02d03522eaf..99ce1c8bbb0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 10fd3b37dc0..e7342d7aeae 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs index e2c299a7dd5..edda799eb43 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Drives/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Drives/Count/CountRequestBuilder.cs index cf3d25428fc..186bbc01f5b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Drives/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Drives/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs index 0df32eda1c5..4737d128b0b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs index ad7edabbe49..ab8c41198fa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs index 20f47bb6574..9d434cbf923 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs index f56a521114d..ccf9067ad13 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs index 2f7bed64691..4b77a98f319 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index af12c5c27e8..de63a5e4d07 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index e6bfe20d379..ecb0cba71ef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 6bd65b7176f..106313d1372 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 9b79b0f143c..e0cf4f06e51 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs index 77871fb81b9..fe11ce99add 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs index 5974c8b1efd..65cd888f459 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs index f7327046e47..b9bfef964c8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Items/Count/CountRequestBuilder.cs index 5b8d855be2a..2843e93ac03 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Items/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Items/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs index 147ac7b0846..c5a2c6831ad 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Items/ItemsRequestBuilder.cs index 139ca7ed9d6..c964d24e7f3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Items/ItemsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 8aa2d38e383..972e6e994df 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index a3e90bc471d..e529c177598 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c1bfe0b3bde..06ae3bcf984 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index cf2ae6f8ef0..fca1a1a6fb7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Count/CountRequestBuilder.cs index ac3c9107bd1..607f089c196 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs index f02fd4eeab9..dc9ebc9e0f4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs index 4a0d6421ff9..4032739f833 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index abbb7090578..dc1dea1792d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 17f631da4af..f0b838cd0f3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index 55eaba9a96d..f2292f61168 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentType", n => { ContentType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 3ebbec411a6..4ca3428a041 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index cec56e86eef..859410296c5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -46,7 +46,7 @@ public static AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorVa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"contentTypeId", n => { ContentTypeId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("contentTypeId", ContentTypeId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 73003a38c5c..c4c35fa71fa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs index 34bc00a81b8..3d3891cee7e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs index e9008a65e49..8bba52e0e86 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index 9da2bb896ec..4ce97047711 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 1849d4a1646..57cdd6bf211 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 04e0a7297e2..70127964ea2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -51,7 +51,7 @@ public static AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("hubSiteUrls", HubSiteUrls); writer.WriteBoolValue("propagateToExistingLists", PropagateToExistingLists); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 8d165725f08..897986761ba 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociateWithHubSitesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index d4e4b58be46..3c0b055c409 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index 1f13b52c662..7267904232b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 9d93b66da04..8c8793bd5b6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index ca9925a63c1..516c78c209c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index 8bd26725a3e..303ef794bef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index 209aa03542e..8bca6226018 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 770936c33ef..41677d0e841 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 27d5584f22d..23ab5ffdff2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index a1eadea11f1..47d20a530b3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 8b4bf151f16..a92bb667018 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 69a4bd71d47..645273f06e2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 872c146118a..69f15916cc8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index bd2a5d42572..42e73f35fe6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ColumnDefinitionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 15415035b41..8d528b5d294 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index cf32d07a629..89363cda89e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -159,6 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -177,7 +178,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -205,14 +206,14 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index c9acf99d8b0..8d5876a83b5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs @@ -61,7 +61,7 @@ public static CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminato /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, {"sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); writer.WriteObjectValue("sourceFile", SourceFile); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index f75d81e7537..03bf3b2fd47 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToDefaultContentLocationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 79e5b54df5a..12d282af3df 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -37,7 +37,7 @@ public static IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index f8013b175bd..de38869af6a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs index a0e57feaa8e..4a64892f317 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs index 0fffc7ff438..91b61260e24 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ContentTypes/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 5d74c63e72d..a06e58bfc4f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 0b910c99517..ba12b2aece2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 92c59e842a7..fe2ba05e204 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index c5dc67ff2f5..2b203de7cfc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs index 5601a2c3f6f..2aa6b1c46ee 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs index e08a5ceb0c2..1250ec402d9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 49c317802a7..ab26d359762 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index fa06fc00160..e5cea9ea383 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 93a38b45b15..3d5a343e8da 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 16a97550c3b..e5c6ab65736 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs index c3ecdec435f..0d82462a386 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index 18711504681..d1f526bcf9a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 7b2645791cb..286d110af0b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DocumentSetVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs index 7be4d2471a8..de1f67a75f1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index e3d390c1707..6fe4be32e3d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs index 5fefd718eea..d6cdd169b2f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs index 7f624d6fb57..0a124904193 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs index dd3d5d3c6dd..24b710d5840 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 044df638468..b6d7fb137e4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 9cf2466a072..db31f370094 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 861089e23cd..1edea0119a8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index e19a7959749..2c9a205efd1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs @@ -88,7 +88,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index d75edb4efad..eb8228a402c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 9da9caeade2..41ffc470ce7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 9069c48c6b5..98e1323b1de 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 5ed9a5f3586..7da694c95f6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index 094ab48b085..04bf23207a6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -164,6 +164,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -182,7 +183,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -210,14 +211,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.ListI UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs index 3eb5bd14907..8f06e8fc238 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs index 0182e87a445..a218934eb25 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index ef11b607d56..8a12ad02606 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemVersionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 5966a0a6a67..627ed8362f8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs index 181bea32dfc..0fa1d22c134 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/Versions/VersionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ListItemVersion body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new VersionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index 9dd26136c01..20776a04de0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.ListIt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index e26e08c6b48..f0aa9644068 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index f9a4925386a..17ef702b8ca 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 993fd794a0e..3051b9e3508 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 37aa1b823f5..9b0384ee3ef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index e6cad5b2d76..b677a0f29b4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,8 +88,8 @@ public async Task DeleteAsync(Action - /// Returns the metadata for a list][]. This API is available in the following [national cloud deployments. - /// Find more info here + /// Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,10 +150,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + /// Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,7 +169,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -196,14 +197,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.List UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -230,7 +231,7 @@ public ListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for a list][]. This API is available in the following [national cloud deployments. + /// Get a list of rich long-running operations associated with a list. This API is available in the following national cloud deployments. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs index b952278d606..ac390cb3e3d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index 809ae3da297..539bd1e1078 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RichLongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs index 6043edccbea..2eff48fd808 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs index aa592122643..de45c732816 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 11a451ea921..5b03ea333ab 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index 3fa729198a0..efb84e5a90a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs index 16a2209a9a1..e44413553c5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs index a7a77a2b3e3..f5f14b1f437 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/ListsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.List b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ListsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs index af2c620b930..5f91cd39553 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index 50146e81930..7bb89e05809 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -46,7 +46,7 @@ public static GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"webUrl", n => { WebUrl = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("webUrl", WebUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index c8dfcca372d..0cf83edfeaa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index d6ec7d30a3a..efa436553ee 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 334e08d5b16..fa7fcbb2394 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index 8e7d81ce00a..a8febf87d14 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"notebookFolder", n => { NotebookFolder = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("notebookFolder", NotebookFolder); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 024104dda58..add80e97b16 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index d8f582d428c..845454ec87a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index 29be74648ac..9c3d4a7b397 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 72eb17b7c9d..f4f09c5be19 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index afb2b52f1fb..5587774d40c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 9e6238dd412..f8182622290 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 481addc59cb..95c03de52d7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index b8260b6c8ec..2e0f11a308d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 0ee36697332..7407462d195 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index d939dfc5f03..42c68b82596 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 9b5c1149adc..afb40d4b3de 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 1388627ffe3..fe4dd35ce3a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 29bbf361bf1..1bd04c01aa6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 99c9c187492..615186bbaa0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 79789a84660..4bf73781a18 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index a082d2eb4f0..3a581bce0c3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 2be1e12ab12..efbdd780f0b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index c20bc4e0b6c..20f3a30de6a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 1bdf19b569a..9c30ffb596b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index dc1d3567147..2818a5c682e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 6d2725eb5cc..4dd36e1a747 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index b27abc22be4..9387f8c5873 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 9e633ee79c1..ac03ef1c06b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 13b05e15f66..025ec87c524 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 8ae65517f3a..9157e9a92e3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index a3485647378..cefb85efb04 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 4f2211db086..87959f884ab 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 25191c19c19..976f139a3a5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 4807313e392..0d1be4d0d5c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 43fa6133f98..c7c2728ce36 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index e883480b42e..0f99635de3e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 1574ac8e0b8..e2397a823d9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 184aa96a0fc..7475d2c71ea 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index c4ae9a9541f..901067b3ddc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 97d5a685bc4..040b2cff5e9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index b9f06dbb7f7..b36c1bf90fd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 6bb340cee75..292937f89b8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 9683d1b086d..c9d88405070 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 47622a628c0..6c42b3dab25 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 2c192e569a6..b3b1ea7e3cc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 2ae709d031f..86955a55407 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 6b5b3322ea1..70d6e7a2aa9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 4fb519858d9..00874a4822e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index c6e70b7b158..f8f39fae734 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 06a03562c8b..164e05bb535 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index ee38fc19889..b5db7319c04 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 702019349f6..1f936804f4d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 89d0b52da53..c61ea662cbb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index c0ed51ac057..a2116a8c048 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 740e8c37635..b3eaf962cf8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index a60fc30a207..553533057bc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.cs index 8cd35a27c00..397ea0da244 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/OnenoteRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Oneno UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs index 79a518becb1..56c40ea054c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 00aa01d929a..f80d43823f5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs index cbd29af8e29..4693dfb3303 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs index 2f810a58db4..75e8f1f1faa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index 7b31a7fcc48..0fbadb79da4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index a2b97c4bd06..fb64396e634 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 0c98d1eeed5..530975daa95 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 5b9e7b3fbd8..7ee7cabcb50 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 638a9e199ad..c60ddaf3c6f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index a38c3c0fbfa..04821b6fadf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 135f103a5de..c0dae83bf18 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index aaabdb926f8..c31744981d7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index 77593d24789..e187d9af15b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs index 04d107ae31c..08148809b22 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs index dae82235a3f..049a45e69f1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index 0302b14a610..7e60f7228af 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index adeb534d7e5..3efc107db40 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 338059a9c8c..1f551fb0718 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 634dbc477f2..942703fc96d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 50d91afd6d9..a8d94d63bff 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index b9aa28febdf..116681879ac 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 1120f98cbe0..f1ed8f0615d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index afaffe5bcb2..9c93914b275 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 4dc7e8c1e53..0abc5c61e0c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 82601beb7e2..7951eae7759 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 8aac4a612c4..e2cd3cf2fd5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index fdf8a8465e7..d2308ab273c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 9145a932b13..f9d39d3ff03 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 912d8a7183d..94be62de08e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 6b3dc556c7c..2333ec862ad 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 66203fc58d4..910e4b579c3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 0ad140f1d0d..3be8cf9f517 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index b9b96253df2..aec69595704 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index f6647f483df..ed105d42986 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index a30fe2760f7..75e7d2a996c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 12687df8653..8d3925989e7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 4a2c79f4fca..d0a2686a4eb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 6979f5d5c04..153c1a73244 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 5fa70a7c58a..2efb8fecd9f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index e107252495f..0bd5763942c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index d1e11014521..9c1f6ffbcab 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 7c4a289afb7..964dcb3b3e4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 71287cd0a72..a28f64e7693 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 1a74ff3b427..79f4f95bd5c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 1e6a65a77f6..1bd8eb0167d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index f9583d598d4..5f463d84136 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs index 104d570162c..ce17752187d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 148ff6bec26..011a4961172 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 962e64ec744..60281ec9dba 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index c773d049d7f..4633262090f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index c9569bcfd6a..6117ab3f59b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 22f48236c04..fa5b0139fda 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index 5fbc6b7eff8..7a6317adbd9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 480029b4361..7c4c5838255 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index f7925e5220d..c93774c3a0b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index a6941bb920f..851a64d2bcf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index a1f79c82d43..fa4a7e1313d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index ee344c0ff91..31dc0575638 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 249fd0addfa..6bfa836d531 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index ef26944a927..5162a6c9eda 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index ac5ddd5ae3a..285bd531310 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 2943508594c..dcbf824bdb2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index 33d303e3646..6f55678aaca 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 940384298f9..c77a4c868df 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index df477186531..aca493e3cdf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs index 8821efd306e..4645dfc42b5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Operations/Count/CountRequestBuilder.cs index a661c8d2e8f..0664e89e388 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index 7d05cbc008a..21b403ac3cc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RichLongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs index c616e52709f..a0cd13dde4a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Operations/OperationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.cs index b0679cfb635..82f29a8365d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs index 57d1fe7ed3c..b55977dce9b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs @@ -61,7 +61,7 @@ public static GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteCollectionOfPrimitiveValues("roles", Roles); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs index b3389380602..cbff0bb8352 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index b71ab350dda..be37ca45f5a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GrantRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 0d361bf8ad2..4723b87a037 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Permi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs index 8daa62de8c4..776c058d950 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Permissions/PermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Permis UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/SiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/SiteItemRequestBuilder.cs index 825e8975117..51115af4fd7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/SiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/SiteItemRequestBuilder.cs @@ -201,7 +201,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -229,14 +229,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Site UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SiteItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Sites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Sites/Count/CountRequestBuilder.cs index 0164c171773..95143861092 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Sites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Sites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs index ecc65e02488..8ce3fd02df7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs index 197adae608e..703932f82e6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Sites/SitesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs index 813db0fb7de..1bcc55ba364 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs index aa2b4ec54f4..f4b1276bcfa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs index d163893143e..25a5ced5c1d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs index 632f9ade87e..52d24ff3239 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index f7e44b6d778..912e77aae9d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index 852129f8729..841495a4df3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index b5ec8f14829..a07ef49c6b4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 96bea896820..446ce238f08 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 9ed3712f3ba..6eb294e9efd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 47b71e31163..867a8a44f98 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 6826185199c..a10f639ec78 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 73a107bc16e..e9dbf9b992c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 02040c710ee..8e34af18dcd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index aa4dbd4fa2e..81b06e2caee 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 892cbc6f5d5..54400eb3c9c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index a6059140394..ffeaddc9182 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 9a196789c9f..9180f729961 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index aa392459906..a0de23faf35 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index df6564dcf47..c5e416693ca 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 51cb487f4ad..ea4366d30b3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 5917b92bf7c..4af8465daa5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 763c414c8a1..3c24b026549 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 6d3b4e73a11..5ce9e053fc7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 273e01f96b5..1e9c009c32b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index 8eb7457ff5b..e2ef60e6929 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 7a9035ad7bc..529236ed0ca 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a74cdbc7bba..f51d803d01c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 5a4abeaee63..1d2ff2b7a0d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 177008a3ee8..f260e81fafe 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index ae39b9d4420..c8afad50f40 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index 1e182064c7c..757691089de 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs index edffa57abd3..40718687109 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index 5ba0eb1be3c..9c7a88ffb8c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 2f74483d179..e276986d2ef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 8625e33a17d..d29637d9ebb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 7d0cbe9e0ef..1a44301ac56 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index b7c3e1cbec5..526c1b09649 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 5ba845fa737..f29afcdec77 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 8b3ddfba582..44dfeaa8d9f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 7775e6fa9e6..ff2d61a57ac 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 6481e51fb01..485759ed8bb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 2cee25ca7af..0744ea79fda 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index ae02842cbd4..2a52a81d4dc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 4d3a0fd310b..c73c95ff65d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 6347042d119..209ee500a5e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index db60400cde7..b25c644da6e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 438c8ec3957..01abae3e616 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 0c2448a2081..2a9ac120cc1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 4db6ebf82ff..bd12e587726 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 1b77d1a42fa..4fad9c6b818 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index e7cfebaa1a8..5dcc69bb3be 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 7e679fdf0f3..8adfc760e6a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs index a0a84d24c7c..4a3598fd875 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs index 8df82f27306..550c5b34311 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs index 97e518989e8..0567fd72ba9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs index b3c55296f33..dfde466328b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index d04c47d9c86..5555b9355db 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index e56cbf5c1fa..a4fbe86178d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index b485fc769cc..799d96bc6e6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 5c5e9696161..7cbf848f3b6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 5807c1fbcc3..106dcea2739 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 78cea8ab298..2668e43b829 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3bf37b4652b..b4e1c3b778d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 1692979d81a..c850d429cd3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 4031d285cd3..57b3834ac4c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index a56af17a7ca..c4e2bc5c0b8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 4df6603be77..4347eee137a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 7782884fd07..87741288bdd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index ffdaad355e9..3b2d6ae804d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 8c480d20627..488bf6df9ff 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b5e303c959a..360f8017a4e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 88264e3fec1..efb1ff44daf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index c0fdb2a619f..aaa304dc4c8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs index b112b046127..4dd82ef83a1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index 52acb5f5ce3..16ba27ea5c8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs index 4fbac4f5442..750f05ea0ee 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 3556851b750..5c1821079d0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs index faac3b8932e..a45bb8ce660 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 6644718c75a..33778637a10 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 6bcd0473358..da800c4abc1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index d679c6bd756..52682d985b0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 074ae7d87d0..6144ff890a7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index b51c2dd48de..7aa514c61dc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 1846cfea5fe..32026a6b447 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 547b9a80634..379583d6f39 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 45ceefa1327..75344ebed64 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 157966018c1..d26a77c3552 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index b767cc14d0c..a960bd241d0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 0b13931b6f4..a6ef4d79fc1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 1fdf359b697..67babf6bd6a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 3f6185b1dcf..5d1ed67fa70 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 32668c924ac..c305a67aead 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b119bf4c167..2928a4ace71 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index cdcb3355650..56d8ab32c2a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 31ec0bbe017..8bbd32b681a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 84335971ceb..83c6c80d72e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs index e2952e61200..077d7ca1e04 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 348b3a371f7..f98cf9cc93b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index b67f9bf52cc..185be00c6ea 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index e55927e3bb8..e359fb5cadd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 31f3f580b29..edd05763972 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index d45a9b729b5..2279b9107d6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs index 11061f3d256..bab7b1c5f78 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs index 1b159d6a36d..93cc0562d42 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index ff3e444b2d6..4e78355d709 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 0e8fc75601b..0cbca77a568 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 5abf7c4d5bd..abf79674f2c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 3291e3fe1d6..e7b0270967b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index d9e93e768df..492f16c8ec0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index d474edf041f..e202a3e05f3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 172cca2fb31..dcfeebfc6d9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index c0c24b2e732..81b30d755f0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 9fd0d004265..5a0082a3a14 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 60a3d06a918..dcb1a8055ef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 9fe1d0fb7fa..abd5d32db70 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 054436c45ec..2578649a1f2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index c659ed71c3e..726fe3671ef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index e0d82571168..11d0968bb27 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3401656d28a..4368b804af3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 15fbc7173cd..cc9e3fb1b5b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 767c876ba11..3caba98da0d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 2f05bc646ab..68451daa8cb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 87a4bec82e6..9a2dc4c39c8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index 8f55523cad1..f8a4a4aca70 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs index f511671d48d..300737aa4fa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index f34a248a9bb..70563568d03 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 7bfd6cfbe76..bb0848e6d55 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index b0eaaa45a31..e66dcf5988c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 6bd260e4e13..bf5ec6b62ae 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs index 5bda19cd2ac..adef19873ed 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs index 1f9ac10e4db..b19325333bc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs index ae9e359ca56..455b0ee23a2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 3cb6cb93837..4e670130012 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index e544e1cfab9..759d826d4ef 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index b4b3fb8c2ef..846c8e379a8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 1a03fa31388..f037cb1274e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 3636adf7b1e..4a29c949c4d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index ccd61f61d8b..82e244bd1dc 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index c1b43a388c0..e06a6772fdf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index a8aab934669..5a1e159a9c5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 73bd1e507b6..aba94c3c6ba 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index cff2df95ae5..4100f29faa2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index f4ba61c5c2d..32569d2a44d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index ad177e0c3fc..5aacbbe965d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index ade9fd3eec1..cb08e52ca0f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 7091df5270d..ad4f72aaa3c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index c6170bd47a8..ea38f8b2a19 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 30bb04b7727..ea6a11b374e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 2a0651f1ad3..b12dffba4aa 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 7bb060c9a0d..ae11a87e63b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs index 6b5832b8305..23c2cf2e729 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs index ff1a8b5c072..61d817a408d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs index f7032683ccd..b3986374a39 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStore/TermStoreRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(Store body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.cs index 91394b4a7e5..8fb212dd8da 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs index 5a24d979f0f..120f8217a0f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs index f1a4f5dbae5..8bac7dd57f6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs index f1e8c76d616..d9c295ad01d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs index d59b9a3f496..36777f44cd6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 25c5e86f932..6d3b17f5474 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index 384ab042559..055efffad6d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 4cb48e77493..725069ee248 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index cfde83e582e..52073a96648 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 18819e7e592..278963c3a4f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index e1bb2c3bfaa..077f4b6bcee 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 511be35d66b..08466d1e557 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index aed54291bcd..56675526d9b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b65dda028fe..690ae590705 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index f6c2187bcbe..97645f63b36 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 3b2ac3038f2..30590a56533 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 70665d60685..88141c8bb35 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 104c9bed7e2..91876f985da 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 9ec18d4d7a6..6766697b64f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index b909ad95537..76dd16580b0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 01bb4df84b3..e56e9f843a9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 1118eb5e47c..636fa762335 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index ad2478da192..01f8686aa3c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 6f6219c591e..76137d72dc9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 9faa9e864f4..3ceea2781af 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index 60520e10d4d..9fb667b5b29 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 41c9fb54f39..c5b2447e30d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index d8983f2c5e7..f3381db23a7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 6f66ef1543f..0016b8ca455 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index dcd3b169522..f8590af7213 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 7ccdbfb2b45..7f5de427d29 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index f1f919587cd..70042f2b632 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs index 13528a60be0..8762a576351 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index ebd096dcff9..349ac73c332 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index dd0edd4b57c..8d85adfeef7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 5315ea4e8d5..f837b6e62e6 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index a8d2e219b50..586ed30f480 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 3b6aa813837..2e298f32e5d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 51538bf2a61..64e0468d022 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index faeddb9dbff..b5f3e5a7dec 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index ed825c00a41..50fa7a5e1f4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index addb4fc7556..edcb99c2919 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 9efda21b0d5..0d74c306725 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index fadba60bbbc..0dd218a5343 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index fb83e1d7eae..9c590f49de0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 5dce0cd35d7..20d3b54fe5c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index e6b8423f609..5c340f3e895 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 545091e61f8..c450bb5642d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 97b3b642d80..51fbb326b3c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 9d85e754731..c3d6b37f323 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index d06ea631f92..3a5a3ac4c36 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 5bbc55def5b..f171104d487 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index e37910d65d1..2164d90680b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs index c996ea77cfe..7f6b88f9cf2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs index 880fe3dd510..9c3df4ff733 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index d8a5afc57c7..f14d9b281ae 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index ea03cf8e07e..86faca9bdc5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 8dc5bbe3f23..37518b8b7f9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index ab8891d6027..0e31954a470 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 0c29b2a3eee..c7317891374 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 67382bcdd82..3252e2999c2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index fcca6a6cb31..a1f0c5ec996 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 26e35998828..3844dc44689 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 892c71a2a88..09b38baba28 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 5e6ae4ab190..953aaacf879 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 79c1effffdb..2e88f7dd815 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 3f0fceddd42..a12bad4c7ba 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 83ebce231c7..93a176a1fc2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index d6a7c5cf56e..de309affbc5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 89c973e6284..2f07cc380b2 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 4e6ffdbd6ff..637c0c16206 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index faabb1e4f6d..7c3854eee90 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index fa7599c8a31..e9f34b6c1d9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 0dab1957949..9ded582af67 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 5fda4c2ea03..9dd95e3c734 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index b2af46c0057..4b3336d9f9b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ParentGroupRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs index 8ae9b6a0bfe..a24cfea87a5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index eff5f786afc..26c63d495d9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs index 38a63c31aad..1ec4aeb8abf 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 5f8344a6f0d..c78b2f725c7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index ea9aeac74f3..65ba414ef50 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index d4fab5f23f4..ee00e85587c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 6f882b3db40..4942cba396c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 82fe2aa6f74..4b4987638eb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index df22561e45c..e8ae726d036 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index f0e4018b72b..3e5f800c505 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index ef774b65889..cb0c7b0f7eb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 158474b2466..2e60e9c076f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 7d23a1eeed5..1b5d0c3b437 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index ad58fc56f0c..24eee03594c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 2c5b16de142..9b84d8f4ae5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 8b972313d26..c02db8e6b4a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 7244904eb09..424baba51a4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index a4ed14326b6..b41219d4448 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index bc0a1e23a06..4346f1cb68d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 9fe7b488769..4426a1dbcc8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs index efde339de36..0b128bd7830 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs index 53af6efc744..941797dfad0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 686a3b78f16..717cb874f55 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index e8611189fff..cf637a00436 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 30aab360135..69bdb95fc46 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 6ba0da084ce..07912c21d93 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index d18381c696e..14c5c388748 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs index e212b5ecb72..073425e5ee3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs index cf3d6a11a68..90836bc885d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 8248ee2e389..d66a2d7588e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index c631d69a56c..18106096191 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 29744fdcac6..13c133b272c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a447970a312..f9ed82aa9b3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 03efda2ecc5..ffe12ac5d19 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 75c205797ae..7e4c33fcece 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index c00241a7c76..65306f61048 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 344537444ad..50e06ce749f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index f36fbed15f7..8fec6cdac66 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index d182e46da80..f5bdc45092e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 0086116b148..339eabe773a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a8fa6ddec4b..f2621aa51cd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 44647b31919..35c3677705a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 72d82814f51..46892b46048 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index d68e1fb1ed6..3b41881e22f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index d8e4992bdc8..8c0a005e82c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 00a53db6dc2..92596b90d02 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 1ba07113bbc..119720013d1 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 24bcbe4bdc7..fc20c424847 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index 98724b5bdc1..3f9272e6a99 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 1febbe5902a..082a6e6e26c 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 3a669cda7c7..bb96483437d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 871398896d3..c911b14f067 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index de90a4dc582..d7d7518268e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index a23ea17ae95..6323541e38a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index eef27660452..8e53dd38661 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs index 8a7a81303f0..cb863b9e46b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.TermS UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index 3dd566570b5..1bb7fb09b57 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 6ed0418e25e..5f0ddc7527a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index e1329f4e080..765201a977b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 73ce1e78d40..59f3d7532e9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index cc52eddfd8e..65edc15ec50 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 423d1a3fc8e..f20ec56456f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index a62734267e5..e7c2a4fd3e7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 60000b665f8..4384d4eea39 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index ec7b432afe1..122bada3cbd 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 806c67c8c9f..b3d6e2beb0d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 215aa7f77de..72f76672445 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 6999fe09e6d..48ddfc46ab3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a37bdcdd226..e919b3bfdd0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 3b3beb6b670..525877d482d 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 6ca8c0b37af..4aa913e28d8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 49b02fbb77b..e18d0332ce3 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 7c9067d5342..c77b50d73f4 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Relation body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 5aeb5d710e7..47e6c4b0ac0 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index f002a143607..44f90ce6999 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 59b81c874a9..d55eb03dc47 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Term body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs index dfe28867429..2b4e3cce1c8 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.TermSt UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs index 300ad6856ec..51998ac67df 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Store body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.cs index a30bf4ccc51..8f92930e47b 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/TermStores/TermStoresRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Store body, Action diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostRequestBody.cs index 9e2afe71310..c48c36801da 100644 --- a/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostRequestBody.cs @@ -47,7 +47,7 @@ public static RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs index da14dcb2167..43bbeed770e 100644 --- a/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemovePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs index 4528f6463f2..a64be3e93ff 100644 --- a/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Remove/RemoveRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(RemovePostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RemoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index 9d498054e6a..d7ef1d5de2e 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Models; using Microsoft.Graph.Sites.Add; using Microsoft.Graph.Sites.Count; +using Microsoft.Graph.Sites.Delta; using Microsoft.Graph.Sites.GetAllSites; using Microsoft.Graph.Sites.Item; using Microsoft.Graph.Sites.Remove; @@ -27,6 +28,10 @@ public class SitesRequestBuilder : BaseRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAllSites method. public GetAllSitesRequestBuilder GetAllSites { get => new GetAllSitesRequestBuilder(PathParameters, RequestAdapter); @@ -92,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs index f348475c444..7384aad3182 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/BookingBusinessesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BookingBusiness body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingBusinessesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.cs index 21bc1da3299..0e6d2ebf279 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs index 8536cd7b5bf..650935854c4 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/AppointmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BookingAppointment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppointmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.cs index b0ac565a969..6ad5a5213ef 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs index 38104aa4a86..17b574445a6 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/BookingAppointmentItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(BookingAppointment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingAppointmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelPostRequestBody.cs index 08d265abd2f..fb57d26b3d6 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cancellationMessage", n => { CancellationMessage = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("cancellationMessage", CancellationMessage); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs index 62cffb7a27a..3c760063494 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Appointments/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs index 8c99f311fee..13bd80947a1 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/BookingBusinessItemRequestBuilder.cs @@ -157,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(BookingBusiness body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingBusinessItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.cs index eb49f4aca95..63b09879c9b 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(BookingAppointment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarViewRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.cs index 3f297b754a9..f396009ea34 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.cs index c796c510262..5e6f6c23ebb 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/BookingAppointmentItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(BookingAppointment body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingAppointmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 28285af0fba..0cd6d10d85d 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"cancellationMessage", n => { CancellationMessage = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("cancellationMessage", CancellationMessage); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index ad699db3de1..06465906fc4 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.cs index ff53b5b1b08..9408256e837 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs index 90abfb4651c..c47ffc16220 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/CustomQuestionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BookingCustomQuestion body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomQuestionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs index 3013b777b4d..84d39d35dde 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/CustomQuestions/Item/BookingCustomQuestionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(BookingCustomQuestion body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingCustomQuestionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.cs index abb0de39ef0..88d4d74788b 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs index 27f872693cc..bccbca571de 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/CustomersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BookingCustomerBase body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CustomersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs index e6a4ef3d54a..63bed8a2120 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Customers/Item/BookingCustomerBaseItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(BookingCustomerBase body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingCustomerBaseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostRequestBody.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostRequestBody.cs index d9358c018d3..5687760db79 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostRequestBody.cs @@ -75,7 +75,7 @@ public static GetStaffAvailabilityPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"staffIds", n => { StaffIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("endDateTime", EndDateTime); writer.WriteCollectionOfPrimitiveValues("staffIds", StaffIds); diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs index a95fc3864e0..060acc5d4db 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(StaffAvailabilityItem.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs index ab8f730ad31..cdb4ad39276 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/GetStaffAvailability/GetStaffAvailabilityRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetStaffAvailabilityPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetStaffAvailabilityRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs index 04a7535b163..47400e61f8c 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Publish/PublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.cs index 75baf7d5aa9..f2934db2c0a 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs index 4277574bce9..7495218cd86 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/Item/BookingServiceItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(BookingService body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingServiceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs index 2f13f2db0ef..11afec7e5a9 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Services/ServicesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BookingService body, Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.cs index f4aad43e507..4b4a168fd9c 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs index c81212f64ab..73b3f5c1f63 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/Item/BookingStaffMemberBaseItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(BookingStaffMemberBase body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingStaffMemberBaseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs index 24521612120..2aba8eb2c43 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/StaffMembers/StaffMembersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(BookingStaffMemberBase body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new StaffMembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs index 0df98cc7a7c..25b9592f35b 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingBusinesses/Item/Unpublish/UnpublishRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs index 9a5bf4838f6..7f8a72b1292 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/BookingCurrenciesRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(BookingCurrency body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingCurrenciesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.cs index 63275d0374d..ef3e03328ed 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs index acc8b9332f8..22a3473e9c5 100644 --- a/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/BookingCurrencies/Item/BookingCurrencyItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(BookingCurrency body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BookingCurrencyItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Solutions/SolutionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/SolutionsRequestBuilder.cs index 42b77c71b73..838a84c61f7 100644 --- a/src/Microsoft.Graph/Generated/Solutions/SolutionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/SolutionsRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPatchRequestInformation(SolutionsRoot body, Action diff --git a/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs index 71c60685214..bebece68a3d 100644 --- a/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SubscribedSkus/Item/SubscribedSkuItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SubscribedSku body, Action diff --git a/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs b/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs index 3640e3f0638..47f5f804b71 100644 --- a/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SubscribedSkus/SubscribedSkusRequestBuilder.cs @@ -93,7 +93,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -121,14 +121,14 @@ public RequestInformation ToPostRequestInformation(SubscribedSku body, Action diff --git a/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 34c5e91d266..c4bab78a221 100644 --- a/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs index c3ade12c3f8..f946d3d6e72 100644 --- a/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Subscriptions/Item/SubscriptionItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs index 939655949eb..631db9ca58a 100644 --- a/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Subscriptions/SubscriptionsRequestBuilder.cs @@ -94,7 +94,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -122,14 +122,14 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Count/CountRequestBuilder.cs index 2378e7fbcb4..4adab49d771 100644 --- a/src/Microsoft.Graph/Generated/Teams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs index 9fda42986f1..4053dbac2d4 100644 --- a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 5cff23d88da..4caf88f69fa 100644 --- a/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs index 7077a988d3f..0a222f62622 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/AllChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.cs index a5f10646b19..52b791d9e72 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs index e8ec9e82ab3..f6e01fb858e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchivePostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchivePostRequestBody.cs index f46a0d38131..852fe8f4d39 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchivePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchivePostRequestBody.cs @@ -37,7 +37,7 @@ public static ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"shouldSetSpoSiteReadOnlyForMembers", n => { ShouldSetSpoSiteReadOnlyForMembers = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", ShouldSetSpoSiteReadOnlyForMembers); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs index 1de3dfd7ce9..cabd2e033ee 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Archive/ArchiveRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArchiveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs index 403f71eb509..e80903cc28b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/ChannelsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Count/CountRequestBuilder.cs index 8f4b4487401..ff9bdcd355d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs index e2889cf248e..656ac17dcf3 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index 2f5f6a9f630..821cce8ffdc 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs index 96e1500817b..dd76afda5ce 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -157,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 3969f3873f9..4ed5032c3b5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index c6bbf4c3b60..3a9673493ad 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 8eba7e0756b..66c9de30dfa 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs index 7d7b7166baa..1d122aa417d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index a58c2f21aa4..c9cbb9d91ac 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs index e5782358f94..8482e1cca7c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs index d64487911ce..69498444288 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index de3fbce44ff..efbddbf5b32 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs index 98567f25663..ecb71739523 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 5062018ee45..f5dc66af235 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 36d206ec405..d6e5306a69c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs index e3b978ec775..bf12ff50d68 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs index 4379e00de1f..b5f2534eaf0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index c1a7ee71156..57c7d9cdc10 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 704624a814d..ec9c15e351f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 175b05fb6bc..38b6b54be27 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 74dda352f4a..596a8c1cb7f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index db358082999..53218e2c962 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 885cf6293c1..d03d84a7829 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index 8618e008257..1aa2fb7a02a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 9b750cc6cd2..134a5edface 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index ae2925300f0..728e53f0d7f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 12f5e9cc1f2..88121c3753d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index ff7313301c5..ae1e21a75c9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index b0edfad4c48..35d2d52c7cb 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index cb2f621b8d2..0f8dc650270 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 6a3aadf74ee..c466eadb76f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 614b578b962..966e1087c1e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 8c0e6b1f7c1..f99b19611ae 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 16904ddb74f..4c042714079 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index f40c545d595..9f8386ec30a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index d2479c8674e..ff15d7a3a0b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index b2294da9f1c..82a706880a4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 316cd1792e3..e08b3229c1c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index e4114365bbd..80f1653568f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index bb39b746277..36b278e02d3 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index a6aff2a0926..180bb6f2fbf 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index a516649e9c3..d69eef75d0a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 00419846150..252973c688b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 151278489de..d63941751b6 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index d5a4ec3f9fa..38219f3c6fa 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 41ab9577a1f..c4bde08ef64 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 224dab63703..e2a4d47ca03 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs index e6f25aff246..d736222516a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index db6994cc813..6911f7d7fbf 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index 08c8042e171..7811e810784 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index 945d3975105..e1354b5c1be 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 77956045b75..32f6c7bd8ac 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index e4fa9b10f93..9153b39eda1 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 024e3da1db5..7c39c933bd3 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs index 9229e96fb5c..7375926b3a3 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index aae5f770cca..1ec6a5c0545 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index b54edf5a614..1affe368b01 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index e2929ab4dbc..7f12fbd3246 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Clone/ClonePostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Clone/ClonePostRequestBody.cs index 44a16b59cbb..04b29af457b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Clone/ClonePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Clone/ClonePostRequestBody.cs @@ -99,7 +99,7 @@ public static ClonePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"classification", n => { Classification = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("classification", Classification); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs index 4317adab421..6f671c69042 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClonePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CloneRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 64c81be0e04..ebacbafce87 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs index fdd302c3593..f0b743b14c9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 92b8124e245..3b6664d659c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 917b359a7ed..a0aeb3fa04d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.cs index bd7e4671363..4187cd6cf6e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs index 66c0991f847..1860ebb3e07 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs index 17c110e0eb6..abe26dd8d54 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.cs index ba77bb82320..5669d659930 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs index dd80c82b716..88d3f951eea 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index e4693caad63..633ce96feb2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 19bf1253b63..e430f54941b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 7b445eae2cb..661f07a3169 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index 27d23877bf7..cc1498a887f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 4600d951fe6..c0d18dbdcdb 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostRequestBody.cs index de700607570..e3e847f63aa 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs index 3d45e5a4088..d21505c1fec 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs index 0d881e45a85..1b30539e6b0 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Count/CountRequestBuilder.cs index 487b92e4e7c..e19b0de5ce4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 3a9cc155d9b..9154703b780 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs index 625a65f8f07..df05260ea38 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Operations/Count/CountRequestBuilder.cs index 7b1719e60e8..767e7c23ede 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs index 477a8d51706..ca99f6190ea 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAsyncOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Operations/OperationsRequestBuilder.cs index cd3081dad59..b4436aaef6d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TeamsAsyncOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.cs index 346fe121245..226057bd6b7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index 95d42f10bbc..0fca947a2de 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 6d9a8ab4e42..ada3d324d98 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs index 965177fe7a4..dcf8bb4153d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,7 +90,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -118,14 +118,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.cs index 0ccd734c4da..d5410a7a947 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Photo/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index 639e6495f5f..487e7566178 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index 753bd0cd094..7cff7841046 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 36e2b0e3866..b7466771bd7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs index 1855c06dfe4..6f880d87965 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index 491f0150095..1374407df9e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs index f7f956c5745..25f996ddb8b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs index 0aeed31f705..48051e1d7bf 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 55599110dbf..d89b318d73f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs index c84a49c57bb..a2e3cb41410 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 156d8c24a75..5d72b4449d7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 56ebe5edb2f..2781de403cb 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs index cfe642ee25a..14457a7bdb7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs index 934892e7ce4..94a6f8ee04f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index 13fab3723fc..b7fa9253932 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index 0b3b2414c70..b0f08a10d1e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 84d318436a8..636ac7333d5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index e8c5be58567..39f338cc012 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index e2cafa6a930..2fe55efacaf 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 98df2249653..2e195d69fb9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs index c00628403bf..0ee5ce201f5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 80a8a490af6..ebfc339260e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index a5c092823fc..9911f358e38 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 68cd7b17eb6..2a5c44d8722 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index ec18e2c3d73..93b30054dd8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index cd0e86bb3e9..f2fe4d69769 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 0186146dabb..112b630a6a9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 2caceeb2084..051a78e0e95 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index ddab6330bd3..61571e209de 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 3813972e208..18c9382aa12 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 84342a670e0..138a771dc17 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 995d24884c7..0229cb92525 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 31c1104a8b5..e27500f61c7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 78e85ae9756..97a90996e14 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index aeaceb9f73c..23b1a9934e4 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 05518d72d21..41f4c9580a8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 9dea1ff0e61..83e6fcddeda 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 7beaf41400c..1adf2297a66 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index c5f13c21476..c55d9afb0dc 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index a232050506a..aa71a224801 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 960c935eff3..b5048f1cf7d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 8a54e821250..7eeca056a2b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs index c9b245f1ed9..67a8c5f1e9d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -155,6 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -173,7 +174,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -201,14 +202,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 6591097b18f..7cd14748a25 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index d9ca45198b3..a546606b3ab 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs index 107e4dbddd7..d4b21d70d74 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 94563ec30d8..3db697ae6f1 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index 08f5a191a18..f10cfb9f7e8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index 0acfa5b9063..4d297c0e6ce 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 020cace43fa..ca610eacf0a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index aad352aab41..0301e441bab 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index db403158b5a..0b8ffea1716 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs index 964cdd21504..f522eb04147 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 2dd6d38e12e..078eca970d1 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index c6490cb241e..d7b70a4f18a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 003d6d17fe1..f6a5ee9bf3c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs index f94f92e8e71..bca8ba5cdf9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 9c20a3938ff..129797d0234 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 3a74e403873..8f4404c9d61 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OfferShiftRequest body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs index 039d01a8a5d..57de3f5c71e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index df2d5f44abc..4eecae7218e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index baf0e198cff..1c12d363951 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs index 5bcd929ee25..1007d0d3545 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 6a1be7fda2a..2f475b4eb7d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index fd4b2a9dc05..cf8d79fbe4a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs index 1532beccc5f..7a4c3b1232d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/ScheduleRequestBuilder.cs @@ -160,6 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -178,7 +179,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -206,14 +207,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Schedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs index 40e38cfbcd5..a414d5af6e9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index b2d0ca02a9b..a6e0db333bc 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index 1f00009cb51..9d692792b58 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SchedulingGroup body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/SharePostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/SharePostRequestBody.cs index 323a60d39c5..032465e39eb 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/SharePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/SharePostRequestBody.cs @@ -47,7 +47,7 @@ public static SharePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"notifyTeam", n => { NotifyTeam = n.GetBoolValue(); } }, @@ -58,7 +58,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); writer.WriteBoolValue("notifyTeam", NotifyTeam); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs index f61ab9e1e8c..9627b768f5a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Share/ShareRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SharePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ShareRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs index a9158fe3c51..15f74c2c6a7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index 8ec86dda3d5..37672309b17 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs index 706c0f48ee5..312aabb81df 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs index 3c3cdac3318..5bd0f2b9e08 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index 1acfe8922e8..04e9e38f432 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index d5b4d033583..ebc7bedbd44 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SwapShiftsChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs index 87e9c0f03b6..b2dac88e57c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index f1e57cefc95..00925c0d108 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 7a54d42e4ff..00ad15ef4db 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs index 965f6824849..ca14a63ff3b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 422eb4a7855..11eb6e7ab09 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TimeOffRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index 0369c0c2dd2..4cbc864dc96 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(TimeOffRequest body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs index 3b68575d2b1..37f0ebfe714 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index ecab8adf038..3746df4ae36 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs index 79f4ffae599..6fc6ee89f5a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 21698e8be17..261390d4333 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 38dade6806e..fc177b322db 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Count/CountRequestBuilder.cs index 8d1cded5378..0069d6e9c1d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs index 364a75301ab..c28ffa9d943 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 21879f8d9ed..a86c43495a7 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamworkTagMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs index 5364cb6975b..14dd92a9c8d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 1c8f96adf7e..153e7e77ea6 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs index 6e4df5fabbf..943cf40a50f 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Tags/TagsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs index 0a3ef156ffa..82a8d91aa99 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs @@ -201,6 +201,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -219,7 +220,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -247,14 +248,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Team UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Template/TemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Template/TemplateRequestBuilder.cs index 19ee68b56ac..da1b3cf4d4c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Template/TemplateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Template/TemplateRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs index 949b9c8b7b2..65ad05d49e9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs index d53756110b3..ae3120d1540 100644 --- a/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Team b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TeamsTemplates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamsTemplates/Count/CountRequestBuilder.cs index c7152defd02..9af5734b33d 100644 --- a/src/Microsoft.Graph/Generated/TeamsTemplates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamsTemplates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.cs index be0a25487b0..8afd59e5f71 100644 --- a/src/Microsoft.Graph/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamsTemplates/Item/TeamsTemplateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTemplate body, Action diff --git a/src/Microsoft.Graph/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.cs index 7a41b2b81ac..08eccd06aa5 100644 --- a/src/Microsoft.Graph/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamsTemplates/TeamsTemplatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TeamsTemplate body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.cs index 2186e53f8a7..fb145940274 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs index 94cdcbadd79..7e655bc3caa 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/DeletedTeamsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(DeletedTeam body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs index 67cd196e8b6..8264dd1964f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 51b24831612..61e0a70bd2c 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.cs index 1877c626082..640dc6523e2 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/ChannelsRequestBuilder.cs @@ -102,7 +102,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -130,14 +130,14 @@ public RequestInformation ToPostRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.cs index 5607dfb4746..eb6191f517a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs index 1de197aea0e..6e124203eb6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index e1d53488400..7375c1b89c3 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs index 640448eba49..d1c8e1982d4 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -154,6 +154,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -172,7 +173,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -200,14 +201,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 626862d49d9..17b3077ea59 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index f2b1d985251..dc9c2123733 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index ea8c8db2f71..a76e4680e8f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs index 734b2559fc7..1f91d40a325 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index ebffebd29c5..6e07e23ef1b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs index 49e816e1cd3..4eb3b19b1ba 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs index dea0dede9b7..d068ac6bd6a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 091d700e611..dfbda691044 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs index 5fffba06a59..ca0dfae8dc0 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 5107702db00..1927a7d8213 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 257f8f11a6a..c892d4dc78e 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs index ce495dfeefa..d9eec843865 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs index 6a21bdd63e7..79df9083400 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index e2e7f1ee7f1..bea4ce0123f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 83511cf023d..abbac090b1e 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 4cca308268a..47c1e6c6730 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 1028eb89f5a..18bd13a3362 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index d745e52e141..0bad37b73b8 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 94fe87e88e9..ebac772886b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index 8ca644e0c76..4d24e8267b6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 172bb11311d..ab054d1943b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 2cc97bed303..8a04b48b0c6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 4a82d44edb7..6e7e58993b8 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index a073fd3efa3..48537254c7b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index aaeb4c6627a..0e312a09007 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 96c4b6b89fe..88c92cb6e84 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index fa4bc924264..14695c514fd 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 5c293539bfe..5597aa36915 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 94099b6410e..8a6b850e540 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index fef1a8e40af..f133b4b5c3a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 01508d31151..afcf8202a1a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 118cd9ed230..a1490d80de9 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index dbbf0fee391..12201593ce6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 9f98d79d87e..d8670edbb2f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index d65bc2822cd..1b0326092e9 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 99afdc8dd15..388834cb3a9 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 9ecf2baad2c..bf425a98d9b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 7706edd2f22..cec336a21b1 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 99f62df7cef..f95d29ac07c 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 8d026a1f24f..5d683d95e37 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index c8c19794c5a..83aaf12820d 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 5796e084e36..a7d0ff89442 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 0a80f01ed5d..f7c6b20b68b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs index 082d65ff89c..1f2a84b8d29 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index fd2570efb6e..db0feba7c50 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index 5ed6bc8b399..8784830b118 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index ed953d2fd68..57dd03a8f45 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 8272f1f8914..3eab4fae0a6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 1e855e17f80..d33578cc07b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 6f2450e0e82..7ef9a2ea78f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs index c02f36fef07..97a28587386 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 4620b3de413..49d409b06ed 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 5529fbbea74..c707f937e16 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 9ad328e140d..3381b7491b6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.cs index 31db2a2a1f5..d7020b90577 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/DeletedTeamItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DeletedTeam body, Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs index c3985fd1298..dbbe29d8768 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsPostRequestBody.cs @@ -122,7 +122,7 @@ public static SendActivityNotificationToRecipientsPostRequestBody CreateFromDisc /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -137,7 +137,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs index fccdd4b352d..a14573ccf3f 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/SendActivityNotificationToRecipients/SendActivityNotificationToRecipientsRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationToRec UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationToRecipientsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs index d59a2393fb6..08dfaa5874a 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamsAppSettings/TeamsAppSettingsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Teams UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs index 17b7d722766..5667e2ee4f1 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamworkRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Teamw UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamworkRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.cs index 72cb078886d..3097f8d8657 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs index 5ccd2a2ce40..b913076d1c2 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/Item/WorkforceIntegrationItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(WorkforceIntegration body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkforceIntegrationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs index b19bc9a4132..d7c9791d7c6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/WorkforceIntegrations/WorkforceIntegrationsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WorkforceIntegration body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WorkforceIntegrationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.cs index 195175398ad..aaed908f45f 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs index 6b56b0d8faa..b733a83a39c 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/DelegatedAdminCustomersRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DelegatedAdminCustomer body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminCustomersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs index 1f051834159..7e623d68767 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/DelegatedAdminCustomerItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedAdminCustomer body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminCustomerItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.cs index 714a5d69965..d40702d6b1c 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.cs index f6866f135d9..133d7eed6d0 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/Item/DelegatedAdminServiceManagementDetailItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedAdminServiceManagem UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminServiceManagementDetailItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs index 9eb48a5e1bd..495bb530abb 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminCustomers/Item/ServiceManagementDetails/ServiceManagementDetailsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DelegatedAdminServiceManageme UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ServiceManagementDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.cs index 55db7c52594..590fbe5f53f 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs index 4b854bc1981..e7488fb5f3a 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/DelegatedAdminRelationshipsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DelegatedAdminRelationship bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminRelationshipsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs index 7d69c38682e..c934444cc9d 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/AccessAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DelegatedAdminAccessAssignmen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AccessAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.cs index be8c910b2c8..66c03519dbb 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs index 0845ae6d258..8a93d25be28 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/AccessAssignments/Item/DelegatedAdminAccessAssignmentItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedAdminAccessAssignme UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminAccessAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs index 43c3b2286a8..af0c6ab0496 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/DelegatedAdminRelationshipItemRequestBuilder.cs @@ -127,6 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -145,7 +146,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -173,14 +174,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedAdminRelationship b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminRelationshipItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.cs index c2d22e90163..27d09bf9239 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs index 36d76f86f45..c79ff1ad4d0 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/Item/DelegatedAdminRelationshipOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedAdminRelationshipOp UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminRelationshipOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs index 39d56b61f38..55fdee55339 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Operations/OperationsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(DelegatedAdminRelationshipOpe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.cs index 508cc58d7c2..3584004d3b9 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs index d93395fd181..036a8484db3 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/Item/DelegatedAdminRelationshipRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(DelegatedAdminRelationshipRe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DelegatedAdminRelationshipRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs index 4991f37f118..a86efff63fd 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/DelegatedAdminRelationships/Item/Requests/RequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(DelegatedAdminRelationshipReq UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new RequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs index 1027a253902..eb39b98638c 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs index 43b887b77b7..a0477cbe7ad 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs @@ -65,13 +65,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs index 4e83f1d164f..f1f9e3f0057 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs @@ -112,7 +112,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -140,14 +140,14 @@ public RequestInformation ToPatchRequestInformation(TenantRelationship body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TenantRelationshipsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Count/CountRequestBuilder.cs index e1ba0f7be58..f2cde2b2fb1 100644 --- a/src/Microsoft.Graph/Generated/Users/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs index 9c4bb79316e..25d7f2487f5 100644 --- a/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.User.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs index 78ed42f5c38..3f7d1d710b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 9e4bef1ed8c..e688b0cb22a 100644 --- a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isSyncedFromOnPremises", n => { IsSyncedFromOnPremises = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isSyncedFromOnPremises", IsSyncedFromOnPremises); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index b7b2eeec3f4..fb0a41ca961 100644 --- a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 3c715a09970..d5ee907db4f 100644 --- a/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostRequestBody.cs index 3a2d3f7056d..210a4b59003 100644 --- a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostRequestBody.cs @@ -60,7 +60,7 @@ public static GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteCollectionOfPrimitiveValues("types", Types); diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs index c5afc5cb350..e2f9acc78dc 100644 --- a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs index 5fc9333ffaa..81fc9b91cf0 100644 --- a/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/GetByIds/GetByIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetByIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs index 394e030c315..ca931dc225f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/ActivitiesRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(UserActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Count/CountRequestBuilder.cs index 82e6415b9e7..f6419a417dd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs index 74c96e4aace..f719c92def0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs index 173d38290c2..c9ce814a617 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ActivityHistoryItem body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HistoryItemsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs index da023060ab0..128688077f4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index 18bd9b97105..076c789fd00 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ActivityHistoryItem body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ActivityHistoryItemItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs index 4f8aa760d4e..703b5d92b69 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(UserActivity body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs index 03ccdfb880e..d2817ebc660 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(UserActivity.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs index 7a46138e046..1b9a5cd8744 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Recent/RecentRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index f34ae31e1c7..812e8a1e6ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.cs index 46cbf17ae96..ddfa2155c02 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 8d061e65eaf..041d4934c55 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs index c7a9a984756..b9ed3ce7294 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/AppRoleAssignmentsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.cs index 3e2104d6b93..36e416e2516 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index eb94bfe3bc1..b93c22f98b2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicensePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicensePostRequestBody.cs index 1d7ede851cd..012abcde13c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicensePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicensePostRequestBody.cs @@ -61,7 +61,7 @@ public static AssignLicensePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"addLicenses", n => { AddLicenses = n.GetCollectionOfObjectValues(AssignedLicense.CreateFromDiscriminatorValue)?.ToList(); } }, {"removeLicenses", n => { RemoveLicenses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("addLicenses", AddLicenses); writer.WriteCollectionOfPrimitiveValues("removeLicenses", RemoveLicenses); diff --git a/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs index e242b646384..99373402793 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/AssignLicense/AssignLicenseRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(AssignLicensePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignLicenseRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs index cd772f0fff2..6628bc0a420 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs @@ -159,6 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -177,7 +178,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -205,14 +206,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Authe UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.cs index 7c2a4abbd0f..4379685924d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs index b24204198d8..b9c039986c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/EmailMethodsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(EmailAuthenticationMethod bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmailMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs index 57a0918a595..e956cce7220 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/EmailMethods/Item/EmailAuthenticationMethodItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(EmailAuthenticationMethod bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmailAuthenticationMethodItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.cs index a13bfdf8a17..070dd4df4ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs index 65eeb250d60..b5f01938247 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Fido2MethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs index b170ddafa20..d90081ef247 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Fido2Methods/Item/Fido2AuthenticationMethodItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.cs index d522283c6a8..d9cb895630e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs index 37c4738ec3b..9e8631e63fa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/AuthenticationMethodItemRequestBuilder.cs @@ -90,7 +90,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -118,14 +118,14 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethod body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AuthenticationMethodItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs index a8755c06c05..2c7dc7b10fc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordPostRequestBody.cs @@ -46,7 +46,7 @@ public static ResetPasswordPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"newPassword", n => { NewPassword = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("newPassword", NewPassword); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs index 6bdf4b7a789..996004f431e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -29,7 +29,7 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl) { } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ResetPasswordPostRequestBody return await RequestAdapter.SendAsync(requestInfo, PasswordResetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and cannot be performed on a user's own account. This flow writes the new password to Azure Active Directory and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. + /// Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(ResetPasswordPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResetPasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs index 1ef4891b59a..dc3c2d04016 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/MethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public MethodsRequestBuilder(Dictionary pathParameters, IRequest public MethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(AuthenticationMethod body, Act return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethod body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public MethodsRequestBuilder WithUrl(string rawUrl) { return new MethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Azure AD authentication methods API overview for a list of currently supported methods. This API is available in the following national cloud deployments. + /// Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs (available on the beta endpoint only). This API is available in the following national cloud deployments. /// public class MethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs index b4dbb8f22cc..afe2b806640 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs index 731c0bd710a..0775370362b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/Device/DeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs index 9930402edd2..5986f4682ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/Item/MicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs index 44c7e108812..79f9d53b771 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/MicrosoftAuthenticatorMethods/MicrosoftAuthenticatorMethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.cs index b697dfb701f..a6ae5838439 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs index 19abe41d77e..c3817cbe46e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/Item/LongRunningOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(LongRunningOperation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LongRunningOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs index ff3a95baf38..1592dd953ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(LongRunningOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.cs index 77bf808b081..636f6cddb0b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs index 3dc753ecc98..7c49d22fd6b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/Item/PasswordAuthenticationMethodItemRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs index 957a0c887fb..12edbfa3282 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PasswordMethods/PasswordMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PasswordMethodsRequestBuilder(Dictionary pathParameters, public PasswordMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/passwordMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(PasswordAuthentication return await RequestAdapter.SendAsync(requestInfo, PasswordAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PasswordAuthenticationMethod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PasswordMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PasswordMethodsRequestBuilder WithUrl(string rawUrl) { return new PasswordMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This will return exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. + /// Retrieve a list of the passwords registered to a user, represented by a passwordAuthenticationMethod object. This API returns exactly one object, as a user can have exactly one password. For security, the password itself will never be returned in the object and the password property is always null. This API is available in the following national cloud deployments. /// public class PasswordMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.cs index 7e26d6ef772..dafdbb315e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs index 64731f1ca7c..040cfcc5284 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/DisableSmsSignIn/DisableSmsSignInRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs index 35c3f93e9dc..50a8e0b70a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/EnableSmsSignIn/EnableSmsSignInRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs index 0cb3e277b89..58bb0b82675 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/Item/PhoneAuthenticationMethodItemRequestBuilder.cs @@ -59,7 +59,7 @@ public async Task DeleteAsync(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -122,10 +122,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(PhoneAuthenticationMethod bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PhoneAuthenticationMethodItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -202,7 +203,7 @@ public PhoneAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a single phoneAuthenticationMethod object for a user. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// public class PhoneAuthenticationMethodItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs index 7bcaaf9cabb..ee0ad158f7b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/PhoneMethods/PhoneMethodsRequestBuilder.cs @@ -42,7 +42,7 @@ public PhoneMethodsRequestBuilder(Dictionary pathParameters, IRe public PhoneMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/phoneMethods{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(PhoneAuthenticationMethod return await RequestAdapter.SendAsync(requestInfo, PhoneAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PhoneAuthenticationMethod bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PhoneMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -145,7 +145,7 @@ public PhoneMethodsRequestBuilder WithUrl(string rawUrl) { return new PhoneMethodsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Azure AD and B2B users, but not B2C users. This API is available in the following national cloud deployments. + /// Retrieve a list of phone authentication method objects for a user. This will return up to three objects, as a user can have up to three phones usable for authentication. This method is available only for standard Microsoft Entra ID and B2B users, but not B2C users. This API is available in the following national cloud deployments. /// public class PhoneMethodsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs index 2312f9ff1a1..f1565eeea51 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs index a6ece5bfc47..693b2e8fb13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/Item/SoftwareOathAuthenticationMethodItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs index c56851709c9..9274aeb449c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/SoftwareOathMethods/SoftwareOathMethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs index c6543aeda8c..d4065657b40 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs index 8a10d04d1ad..cd74bd57146 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/Item/TemporaryAccessPassAuthenticationMethodItemRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -108,7 +109,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs index d2c2494bd85..ee7ab8c10c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/TemporaryAccessPassMethods/TemporaryAccessPassMethodsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TemporaryAccessPassAuthentica UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TemporaryAccessPassMethodsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs index 4d22e8a5651..1a8f5075777 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs index 03bff4f62af..61c0a7923d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/Device/DeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs index 28dc8bb600e..25fbc65a827 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/Item/WindowsHelloForBusinessAuthenticationMethodItemRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs index 9aa02bec7f5..7139775d81a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/WindowsHelloForBusinessMethods/WindowsHelloForBusinessMethodsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index 682572e5c55..ed00fb4221c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 35ef37320c1..586e73583bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index ce5f4c17105..2ad4668431d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs index 6fba619a856..d09df8303f5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index 20c14651665..5a44d1dba4e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs index b981c92d268..b548ac2ee5f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs @@ -115,7 +115,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -143,14 +143,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Calen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs index 1c452e7e12e..c16552ee986 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs index b4645f7bc24..56f77577d49 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs index d027b4f8a91..0ab617f4ae6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index e81cfc1fc80..c332ce557e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 982497e3f5c..acdd6163513 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 31217173b3d..ed6f4def078 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index cbf7b0f6ae5..e5032d3ba99 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 07ae2deef67..38b18993617 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index f6af8fc86d5..18cab811c46 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 4486d8cc35a..ab08bb869d6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index d9500f5e3a7..89afb4f3cc8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 0c2b3c008f1..648e0a91149 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 54f7e3a1e03..0da359fe44d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 3d416c1faab..144e94bfb1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs index af755231e44..b6bba083a80 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 16bcfa21821..45808c7416a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index ce8bc008657..7d0821e82f9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs index 490dca3b69d..45259f45b76 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index a8d8dacfd9e..0526b6f6ab3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 41b7af061ea..6d65d42dee3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 51d872bbdb9..b96aaadce33 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 29e97264762..b6d2befeb1f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 1e3166bf498..5be2b6bc4c8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 0957bce8bf5..6ac51776de4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index d611bd9673f..22589491332 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 6181f93bd8c..a61b4cf5ae9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs index ed8ff605cca..074d29f484a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 5e94f2a65cb..a37704c7164 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index b08d52038ff..1b00be09bc8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 1d3279144a8..662bcfa23d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 17ca45f6245..5f575a7e481 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0826e4ef7fa..fe38db80948 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c5d36ae6fe0..03f694fb412 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index b76a3979c4b..a3fbb5bfc24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 3ec278a8174..3b93d99bb7e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index f865a106182..1c24cf1f515 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 52c1514b171..49488eb5d3c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 94c88c65849..f5748f9b757 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 6afb5d62da1..b11983bd0ac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 0d14b7444a9..6e18b661fc9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index d44336e424b..7251a78a6b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index ac85cd6eaa1..a662c286d25 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 66537fd9f14..038d3bb110a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index b82f5d1a9fb..94c8480d394 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 2761b3d9a31..d73d51b0b3b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 8915d5e8f1d..1d1e7d7c845 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 7131f5fd6c5..56468ff112d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 6352035c77d..31bbdf2f645 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 27967c54915..3a0632fb33f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 2b022c9884d..b6a5856d698 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index b2d0f9d5d65..aa2fa07521d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 85ff6b4cbaa..532b690c566 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 6d266e4238f..a0469cd2696 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 84b1b398996..312277cc5b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs index d9e90df5815..cd7170ac017 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs index 123381e1cc0..22d36ca6d89 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs index 6fd754c1e0f..60b486b6163 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs index 1b56bb417b9..7c086c76a2f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs index 29aefd4e31d..7b8fd31458d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index 4f364e556b8..ad5a58d6c88 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 5cd11b18b44..3ccfe85ffd9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs index 9dcdf57d1b9..bf7cfeb9534 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index b98bb3e9338..4547bead29d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 28569355bfa..78d15333a59 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index dc0a231e6e7..7f5edb209b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs index 15098b4e8cb..d345f6c98c3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs index c2a206f1963..a0fe2704872 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index ad2ea8e92fc..97ee7862df1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs index 0c1598788e8..9a144d87698 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index 55d54e1cbe9..81221cc4732 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index d6cdf3533d0..e3e7a7c121f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs index b57c37a3092..bbf8c510ac5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs index 0387a1f2c6f..5f2a97a3e8a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 6b2fa67bccc..9223a0daa98 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 97d222ca65e..6f0616b168b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs index 78dde425532..6732df053ff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index 66c97834e43..cb3e123da2a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs index 1b7b0f74053..9c66643d902 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs index 24d72ff8c62..aa3637b42e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index e6991d617a9..0e63ddea747 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs index d78c3311f16..1bdef9cba28 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 6a44c3affd9..9e8ec171698 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index cd513b95b31..1076dfbc191 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 65d819e28cd..2e8c60c3326 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 4eca4a5febf..191dc048071 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 5ed21eee48a..ad3f1cb4ead 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index baedbedbd0f..aec616cd6bb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 706e9030090..4f528e9e413 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 84c12a6434d..f4c58f22f1f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index e6e60937096..f28b92dd293 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index ab6b02373e1..2721ee6c401 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index b7e66971068..ab950f14280 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 9b01031150a..c9cb0d58102 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 73e56c498a0..1aa751f8eb7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs index cb62cd78179..fafe143cfe5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index d4df4eba3a3..565862fc67d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index ab8cd7d25dd..c64be7b368e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index c01792630e3..e74ddc5b1ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 71802eac2bc..a6663985f54 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index b5ba05cf464..1c14df1a38a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index dd91d20b3c4..7cb828b8be1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index d1dfe7c01f5..153d1272a28 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index aad166783ae..604feac9fdb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 24e1b585afb..15d80275f24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 4fba7d4bb33..73c32e68196 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index f7849a90208..0e25f2d7b3a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index c3780c2d6a9..d190db069b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index cce883c0c5e..1f9fd5e18e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs index 9bfa54422a1..845ad2c8e6b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs index d347478daf3..bb4cae92420 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index 2c466c5ab1c..05238f85d4f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs index c637ce0cff8..bed306d0204 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs index e32e945ae0a..800d1bbae0c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs index 7d83cd68509..f9211cc2d3b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(CalendarGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs index 12ccb1a3448..c3f4f2d555c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Calend UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs index 8427548e004..12144bdf358 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index 78003bc9f1d..646866ee330 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index a26b972fa3d..32026d1ed73 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs index f3399e89007..9d3e41d7ee6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs @@ -138,6 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -156,7 +157,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -184,14 +185,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Calen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 5702ddf74b7..db70969140e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs index 164684f74e5..6d9d5140c93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index 6e98ed219e1..fa8af3a0fb1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index f2be11c30a1..d63594e921f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs index ce2027531fb..f9f41be6bbe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs index 96c2ab83056..0442498b123 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 43eac5e4b36..c4a83b1f3ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 12ee97fac6a..1109c41e602 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 58ee2a5cdea..1c77d4203a7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index cc609f64e94..47d62b3b066 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 939fd857201..d25f4cab7a8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 1b2f429199b..19fa4d533db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c650135f6ad..86a184a27bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index cfc90783c18..8120f372f27 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 782acfc7b26..f00bc6b6f50 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index c1a5dcf9b8e..b054dffe7c4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 8a7317e5535..bf258a07292 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 81f7e9972f0..888498273ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 4d8523f3be7..9584df6dc51 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 3135f44671f..4f6a9f11004 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs index 0976a7cc3f8..f7172025347 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index da646c899c8..620d8d01166 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 045aa0d323e..1de12e96c7f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 8efb6529063..85af2e84401 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 7efc17db7e1..d52c03b1805 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 7f0aa716cfd..db6b7a46994 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 8c45e076642..302d801b670 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 2e271efa8ec..a3e5a938ba6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 50b18f31812..84f0ce86c13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 9c04209a5fd..9e30a6b936b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index eb0f88860f9..eea6a4fd0dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 9893b5612b3..144c46a87ed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c9bf6ec1567..2ac9a6d1b3d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index c2500510a03..0355bb4b96f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 301c62aa08e..e885f1dfb5f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 692a6761165..10d1aa104a8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index dc15728040a..13744926c8b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index ed8d2104c87..c9c9abe71f6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 15d907784cf..68598a035ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 18d8d072c43..62fa17be417 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 922775f5113..f94d47b0a90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index ea561228658..f22863e242e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 804b71cc4ed..3d490db5ad5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index f4e787d2a60..cc829b671c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 9a43c834677..0ec6bbe73fc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 452d7b4cde5..31d938c32b7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index d8e148209dd..3ffe81c171a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 94cdac4dea0..054d0782765 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 6da808a003c..dcabd843645 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 8ff32621134..5128feb7763 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index eec5ae93900..1acfcac3559 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 805e413e81a..420635c61e3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index f82d738289b..e52d396fb90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 3c72ca5c14e..b77cdf328f4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 96aae9d38a0..18447373406 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 16f925d091f..d08f1f7fff5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 3bb0ca1c439..6df3c4a3dac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs index a5e94df5879..4a490a3b51b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs index 6392190d2a5..5a885a560af 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index cae067483c0..d73b562453c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs index eba90ef0de7..f8655b08d9d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs index fac9a14472a..766cd37db51 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 9ca8abd3b10..1a74243fc24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index e97f49349dc..9df7ccc6fff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index 2ee978552ae..e2e5384435b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0338e2c5947..ac3a0f493a1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index bbd98bb6c7a..219a5a99adc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index a980491e535..d09d6488e63 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index 4171f84c87e..8e8828c2974 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs index 58cd08ca4e9..55bba1cc3d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 338e3bda3ff..45a6b57557f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs index 3f4fdb53fe0..10db5602157 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index f3454a0e6b7..71b6a9625b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 0066dc858ed..95e7924e1db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index ec7acdcb613..6466ebab360 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 10ff9d1f9ef..f6e2116be05 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 6e32bb6b9a3..97c3e0cfde0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 00b3909b8a0..335acbf5d5a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs index 7a8ac59e317..5f158d36219 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 50235dd24aa..7708e96792e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index 5b82e242400..13c72b3c187 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index c8a56596e69..5e0758f3057 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index c2d7a114af0..3654b371061 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs index e3cbfc98283..3e58ab2c37f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index cde3ed2fe88..8c6c570271a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index d8de9d7bfaa..5ab57af989e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c7df39c4738..8967cfcdfa7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 86b3bfcce4f..c92819ec6ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 23087b34d0e..b14f791f892 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index dfc30657022..188bfcd1986 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 513018c45df..8e4f913f206 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index ca996796cc9..fd82592eda2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index cc1e226b99b..4e4ab174dd1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index e0dd8312b82..713721ab75f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 0f951d04b86..61d735c6f1b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index aa03eecfe2c..42caf97f37a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 91c8f2e7869..2efba628b1c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs index 2492f7d24a9..ddc6b672fcc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index a420e1cc6a8..6a15361a6a1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 12e7d512176..96ac49ba467 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 43bf2301c85..4ec44e29596 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index dbc6a1d4363..c7f91b03fc0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index d5b51681bb5..4663db3e2f4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 9524f1adb21..90863bcb49f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 89e9cb78a12..056da2c1f57 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 12baf48da03..ba881ec41dd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index c163f0cbfb7..0aeb3e7a5f9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index e6c5b2860f6..cd2d8d550a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index d23877a28b7..b1b9a7c7b2b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 79c6b9ad1ca..e3652aeb843 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 88a20551ca1..0e2432223a8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs index b2e7b815e88..5407393a4b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs index 8354eb90782..feb85529c33 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index 5cd9cd9adc2..37053a69ef1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.cs index 289448de793..83e65d6559c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.cs index f8d2aab6613..f8a7bc27928 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs index a97a6f0613a..936bfb8f28b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 648d7c00a33..fa29baf6bcf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 698c5d5b54b..2851d250de3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index caeb58b29c4..defee93033b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 49aab2bab22..889746d24b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index cdd744b88b7..2cb38ebe69b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 85937c14bb3..a85cc23210f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 67dae9a8b24..35c51291901 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 6aa1926526f..67f5465268e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index e990d6ae881..a518283ba95 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 0fef8e8a8fe..b3b8e4bb018 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index bdfe78cf232..c1873b84fec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 4f33ea86527..52e6812a167 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 9bcf86be7cf..b0e0c43c7c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 0cb62e35ab7..41e74624a24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.cs index b3656f6595b..94e2dc11052 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index e3f50b639a5..22cfb7777c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 1f6f891d2c6..3b1701feed2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6bf63bf3fe4..3f36432f4e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 67eac43c21f..50ceb591375 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 7f20d6b2c8f..599c66dead2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index ff9cb879d12..32e8087f5d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index b126dfee4c2..1a948cdab90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 49a431feffb..8cd8a69a8a8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 954cc1b9a84..75e8742f8d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index f360b4afb4b..108be2b37cc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 8de77b9b220..9882a43c27f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index abf7efccbb3..5cdf2bda807 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 741fbd642d6..adf3519a653 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 3376fa44dc3..136b755816a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ef3c6257835..5d9b9ce104a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 65917d5a133..8d8e8e2e0b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 65afda0f9b3..b31ef29fdb5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 36467213e94..c56cb1a5c84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 30e64bf95f4..1f2d0bdaf3f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index cd08fa76845..e68bd5aec97 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index df7dc805d59..758a566d0d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 8bc328d1cd4..70d8ad8e9e9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 6bf57d0b9ec..2f5f9248792 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 9dd4c8dfc79..a051b0819f4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index bc528d439cd..30e08d97f89 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 8196f2f0d86..163385c4b9d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 4effad8b235..7eaddb62ec5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 4e7885e887e..c8737912ea8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index d39370111da..3a2ebf825bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index b540fd80cc2..00c78da648d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index ea67b4e1eee..5d5d596774e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index d8969e68642..56b5689a3d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index ec1907037ee..0656b14e952 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index f99f48f3088..4f3b257eebb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index b222ad94a07..d87977e35a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index eab979c02f3..09260cfbe3a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs index 521f7ec1b03..a57df55deb5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/CalendarsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Calend UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Count/CountRequestBuilder.cs index fb5433a753a..adfcbd84f78 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index 0409ce4a6d0..886dad71146 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfEnumValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index 5701d8a816a..7f4e52a919f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs index c54111cbe61..fb8ceff4058 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs @@ -138,6 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -156,7 +157,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -184,14 +185,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Calen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index bcd15440bf8..d1d7f369fd2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs index db672be2451..0c7e35e37bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index a2d037759dc..890a48408a1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CalendarPermissionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index 0f15081fb87..c8616039a39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs index 1d940f08e9a..3ab18be1401 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs index 1b5b51fef0b..cfa507b7194 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 96300e01bf2..2680aff19ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 2b37169dbe3..b3672d494ed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index ee9229f3166..936733873d2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 5259c6529e3..39b4ef2dd89 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index f2e51505dea..a3b583107ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 7a42572ef10..35cb090b63e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index eddd103d641..97f26c2e53e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 7de09510d52..643ba19cd24 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 783ead96d1f..18c026ae4f4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index 957daea33e6..949edf72428 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 7b0c52255f5..83a66b66261 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 8afd0d684cf..bdbf014c8ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 92549141e62..b9c8e6c9212 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 2b83fbbd29e..948b8397a84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs index 5c26f7d0e18..dd3eeaf0b7a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -118,7 +118,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index 2c6643a6eae..6bbc71d4bc1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index a2616b0d149..fb297671374 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 9a08c8954e2..ba53f81db22 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 77e338aeca5..fcda704b7c4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 28f71d9dd8d..8eb2f3a4487 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index d57041f1f78..4b216702569 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 495f1bc4cb9..ec089afe202 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 4ab273fc910..11f0d8fd148 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 16ccefb6d25..8c023b86a2f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index eaf87ff8129..3de897849e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 70e5b40974d..1092c272748 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 9ce6109f5df..886169f5954 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 49ff40b15a9..f716ae2729e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 71af6a0d07b..6014d697e9e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 28ede515cfc..195fa7a6014 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 624b18d667c..e1ae52859b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 4ba7d81a563..515086ebb5c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 1daa23ab556..23b1c32296c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 178cffc4f84..e4d37a3568e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 6688e0c48b8..7bf57e214f5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 53e895168cc..b5abb44bb84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 851c22e58d2..91951fca415 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs index 835b5a1cd80..629f3962786 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 304625d4f04..aeb1b5d192d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 771385b5f0c..ab566563c4f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 57b626edb9f..0256b7c103b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 7a29ba7a6e3..fcdb2975b45 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 091fabe0456..71a2dd191d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 256a241bc2f..31ef4e3830d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index a915880a860..9eae20ccc82 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 220d5b563eb..5cda8febdd0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 0d8a7b6ef8f..2695e52d983 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 6755bba46e3..ba4c735e6df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 7c59327c2c3..ae9ceaf150f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index edbc30ab836..1f7125cd483 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index adb4eb828a7..3821db7de37 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs index 48738995443..d942f737432 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs index 4bb956ab887..0ee4787450b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs index 86275126f4d..b0fc6366d98 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs index e0444c701b3..76fa9e1acf8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs index 3123d12e05d..08e4b95c890 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs index a376077d5a7..a34975cb0a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index db83d2717c4..5762f6494e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index 367bf027f56..076dcb0eb5c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 591b0bbbfc6..3bfe4693362 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a9f61ba17ba..d6c66992388 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 5dbf7643a27..645fd167e6e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index 0f28f1c1327..c21d8659131 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs index 3353e8db34f..46815592824 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs index c1b47d6fc09..ff0f2f66536 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs index 03cf2e32556..0396736d2cd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 27ce5ba17be..0f318bdcd72 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 9bc18f3bd83..7b216c52b7b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs index 3da69ed372e..201fddd888c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -165,6 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -183,7 +184,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -211,14 +212,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 0793ce828bc..4331474e73f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 8e91a6a47ad..39c9267e7a6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 40bf199d173..dd519f5cbf2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs index 69fd8ffffb7..d62ee3980e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs index a61457d39e1..f3f9a32a7ff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index c31fb48e8b1..5f8b8663123 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index 7183dc0bb6b..1dff777058f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index 2b1f8bc0f66..e24395928bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs index 4c6253992b8..b5e0249f566 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 0efea12af1a..329502371ca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 2d85554c054..31994ecd3c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 36c9c59f7e0..183c7ce76f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 49efe914ac9..1505ce0e06a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index e56bb601711..26e2119c77e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 8987b951201..ee3a8ee3dcf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 482d97b7d9c..818f25577e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index b4c5910835e..89f10391fd7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 0a02716f151..c55fbec66d7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 77e21b974f0..a1548d689b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 47215931a9d..5cbec05c674 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 72dda750ce2..cfc178ddef8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index e37170c7fce..e9d37806c2a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs index 6179760dda1..e7304957ab3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index e16e1d09ef7..19e1b6e89dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index dccb7b2387f..1b437f07bac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 0236360aac8..f1fa1d245d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 8da263cdc5a..0b1abf98713 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 6863de250a8..ba9392f892e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 3a137d0b1aa..891fa47ab64 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 8a7cd616e8a..33d04e0d563 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index b4cddded9b0..ee93365c493 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 6e7e150b99e..317ba7d92c9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index aeba3b44ac9..4991dd8ac9d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index cab1f9f7916..476323ec1df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 41b051237d3..8928a150e75 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index d69e556a134..76aa49f82ec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs index 0b68282cde2..27b4f29980c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs @@ -80,7 +80,7 @@ public static GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, {"EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, @@ -92,7 +92,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); writer.WriteObjectValue("EndTime", EndTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs index 93c6cb45ec8..92fd0de7599 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs index dee5fc0c31d..af23f89fe16 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetScheduleRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordPostRequestBody.cs index 561668c3e91..65a701cdfe3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordPostRequestBody.cs @@ -60,7 +60,7 @@ public static ChangePasswordPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"currentPassword", n => { CurrentPassword = n.GetStringValue(); } }, {"newPassword", n => { NewPassword = n.GetStringValue(); } }, @@ -70,7 +70,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("currentPassword", CurrentPassword); writer.WriteStringValue("newPassword", NewPassword); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs index 99037cff563..f23b3361ab6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ChangePassword/ChangePasswordRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ChangePasswordPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChangePasswordRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs index 2873b017b7b..48bd273a82a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/ChatsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Chat b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Count/CountRequestBuilder.cs index b9f733b9176..754e7880a31 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs index ee2bd5644fe..75603a15653 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index 2d77a2cdabb..136e29114d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs index adfda637fc4..0964345c4f6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/ChatItemRequestBuilder.cs @@ -170,6 +170,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -188,7 +189,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -216,14 +217,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Chat UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserPostRequestBody.cs index b98821c68ba..a404d2045ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static HideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index 93b77a84d1e..816b7935b38 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/HideForUser/HideForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(HideForUserPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HideForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs index 233750a4991..b08ec66833c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 5615d5138ef..e25fdf056e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 9482558a113..59a34b16da1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 963cc8524ab..ae6ed05f878 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 10e32f3c029..0c74ce3383a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index ae03aef0ab3..81c7fab6db9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index d0f61b7454a..3573ff91f16 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs index f006fc17303..1bcc1dbdd93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageInfo body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LastMessagePreviewRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs index 10cf4cecd2c..639ba82329e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static MarkChatReadForUserPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index db177a3064c..70e8c95a03d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(MarkChatReadForUserPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkChatReadForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs index 207d501bd51..166c8240573 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs @@ -52,7 +52,7 @@ public static MarkChatUnreadForUserPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"lastMessageReadDateTime", n => { LastMessageReadDateTime = n.GetDateTimeOffsetValue(); } }, {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastMessageReadDateTime", LastMessageReadDateTime); writer.WriteObjectValue("user", User); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index 30a5e330b90..404495cf850 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(MarkChatUnreadForUserPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MarkChatUnreadForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostRequestBody.cs index 3e4f4eb9247..1530ef475d5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs index dd017144d01..96d082f3b5b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs index 932b079e464..841fb43ca9c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.cs index fdb7c12d08f..b7405598068 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index ca7c9eaf140..becf795b650 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs index 2f82c8dc601..d3b1edfbaae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.cs index 4c144e46f2f..b840faaf9fa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs index 5c7dbade9fe..64178e85a85 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index dedd9f9cf8c..d868d0eb3a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index a6cc90a1f94..0605a7f1e91 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -140,6 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -158,7 +159,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -186,14 +187,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 5e6e4faa055..d7a0d9cb6e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index be091acece5..010524fa49a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 21be1549983..52d74f9c04c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 643b6cdf6d2..5c86895115f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index 5d23ac030e3..4451821204c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index c355c1ee9d6..c65620a2020 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index ddd09a7cee8..6a54ee47e85 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 73fcbab5242..d6f8a9883a6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 67c6ae1f908..b8103ea692c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index c10b9c2e548..a6664f6e754 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index b0c14d1cafb..216cc4d7629 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 5acd6d95d04..e2043a945e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 3f3dc768c10..b4f6afd0acb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 612453bd7a9..ef3f9416d9c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index c3ebd655f55..468222a664a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index b21a5bd71aa..6f8bcd94327 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 22c871ebee9..8a156f015f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index e3653d6e61a..f0c800f250b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index dd73b129cdd..10619e891d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index e093fd367aa..05f9f3f7c0a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index da9a1b727bf..a5b5c8c9e29 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index ce34596e640..8a019a91120 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 0092e38c68c..121f852b940 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 29340a91543..1032318761c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 91599e898e4..6aaeaa50100 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index 6050947eb80..62ca594eb13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments. + /// Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs index f30167a5db6..547fe8cd4c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index 7c525486022..6852a1d9b1f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index ed9eca85b28..1bd48ecb401 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Azure AD apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs index 0db2a720ba5..dd2fcee702a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs index 2083bda1e98..4754dc3932f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index be84ad1f99a..1e1d79ffc66 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(PinnedChatMessageInfo body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PinnedChatMessageInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index 68fc60ebd80..0fa3c070c1d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(PinnedChatMessageInfo body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PinnedMessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index b4192fefc81..c60ceb97d5e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 88932bfbbe7..3c135cd56d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.cs index 1e9a7b5de0d..951d9c4ad9c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 7776848327e..61bc0120767 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 9b925fbb686..9a68ccde56d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs index f0e32d2af5e..6627400de7a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs index 92d1a895009..3ae22394f3e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs @@ -47,7 +47,7 @@ public static UnhideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index 7699ee382af..78b34e77f9d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UnhideForUserPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnhideForUserRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index b3eb6e3463f..86c2071ceab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("groupIds", GroupIds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 5aa591f662d..ad824284667 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2e1a216abfa..57b6a446647 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs @@ -28,7 +28,7 @@ public CheckMemberGroupsRequestBuilder(Dictionary pathParameters public CheckMemberGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsCheckMemberGroupsPostResp return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// Find more info here /// /// The request body @@ -73,7 +73,7 @@ public async Task PostAsync(CheckMemberGroupsPostRequ return await RequestAdapter.SendAsync(requestInfo, CheckMemberGroupsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. + /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 65839ee22b0..e0d8cf6c42e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -46,7 +46,7 @@ public static CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("ids", Ids); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 0174c9365f8..21369fc392c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index e062b836ea6..37fcdd52291 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs @@ -88,14 +88,14 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CheckMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs index f297673e6ff..4a35174b687 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/ContactFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.cs index 68f38c934ac..9b26ca535dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs index a6ea8351b17..3d4671fe0ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs index c7298f488d9..3db82255ca2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 5541913d551..4860877aba2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs index 9b889a52f7b..00772d644e9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs index 9ef638b230f..10e819bf4df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ContactFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 230c64eed99..634110930d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs index 68b515e65ef..68d40cd019f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/ContactFolderItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs index c3ae27b9c94..52afe052f5c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs index f4bb4665232..bab0d970075 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs index 96a4992a159..69e0428c04b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index f4f70aa8fb4..ad2905488a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs index 66696ce894d..31e46ef2127 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs index d4a4fd2fea8..b5c79b3c66f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs index 183b6fce4c6..5bc103a6295 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index ef843531e0c..802b9d94ef8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index 40fc611cdd6..525e0db0c2b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs index 5b016ebf1be..a7254d4a86c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs index 2b8faae3198..6cee89ee93d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ContactFolderItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(ContactFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs index af1ee1bf4e8..1836fc7cfe6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/ContactsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs index b0379221c27..3b4b2c2303f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs index 27476a54bc2..dfcea2564b2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs index 179ba080531..4f0002e4d42 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs index 4c75a720711..2f73d141cac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/ContactItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs index ad8b0e53124..d81fcfa4f88 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs index f40c56fd676..86d6a0bf8b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index e25091ddf86..ea0916ff41f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index fadfd41f16e..2b111862229 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs index c791f30715a..57731ec7d9d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs index 9290d0d0748..35513e6925c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/ContactsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Count/CountRequestBuilder.cs index cd45e9aae83..6981511979f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs index 0e0c09570b6..0e915303c49 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Contact.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs index 87739e2e3be..e1689ed13b2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs index 8dd64a5664a..d43f06c31b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/ContactItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(Contact body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs index c2c11e2dbf0..251f9f70f02 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs index 3ae0099e861..a9f20ef876a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 2988a98874f..0d0b7dfc737 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index e567df5c908..0aa99b4c0f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs index a15431ffe9b..3d0167034d2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.cs index 02a314a14b1..621f99a2040 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs index b886d0ac688..3aee9a91f30 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/CreatedObjectsRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs index 9fba45df48f..705f61f8ebe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index b44373f648e..8e4f743b094 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs index 9dff889ebfc..e1126d5a188 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index a1aedcbc46c..82e1484c4cb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CreatedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs index eafddcc4dee..e72aee95455 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs index e080056d8ac..6ba7119998c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/DeviceManagementTroubleshootingEventsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceManagementTroubleshooti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementTroubleshootingEventsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs index 9d31fcb3866..c7219c852fc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DeviceManagementTroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementTroubleshoot UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceManagementTroubleshootingEventItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.cs index 0e894580e41..55e290bf71c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.cs index 807aa946181..a7785bc0968 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/DirectReportsRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs index fdc197f7d1d..100c728e2e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 2e8fcc75715..f95131c0071 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs index d8f8c2f35c3..2c3558937d6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs index 39589a411b6..f71e1af54e8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs index 22ba80edb20..d440c358c03 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs @@ -73,7 +73,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 72b0eeb6eb8..caa89ac4800 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs index 8039e465e44..15dec6e9391 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs index 05af7712bc5..4806d491eee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drive/DriveRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Count/CountRequestBuilder.cs index af7cb595002..6f8dc79d820 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs index 8c588793418..218e1691075 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/DrivesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.cs index c8de89f48b7..42ccd566a59 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Drives/Item/DriveItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.cs index 7e6f9ee5a6c..428f2529f13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/EmployeeExperienceRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(EmployeeExperienceUser body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EmployeeExperienceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs index 535b8d4c803..6aa4e4bdc95 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index 2c60c0320df..7dcec9cc736 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 8a2726721f5..914179cc794 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Count/CountRequestBuilder.cs index af4fa9b1b16..48b081625f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs index bb88606d36d..57be027fbf7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs index 52965e56d3a..ce1facbfa90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs index d85d005ddb2..7f7fa89d817 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: This API is available in the following national cloud deployments. - /// Find more info here + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: This API is available in the following national cloud deployments. + /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs index 953ab4caf85..9dbf91d47fd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 797a6e0212d..22ffed558a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index da2111cead1..423b9b97c60 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index 4d6541b9257..58e79462f3a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 94734a60380..e1517612673 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 380214326b6..d20a5675f9a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f396f95ef22..3f4ad1eb86b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index 3b77b1eba06..52a4020ac39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs index 679556fc0ba..2fa226fb546 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs index 3139240aab9..37603e733d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs index 92627dd7977..ad16f59a455 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs index df7a199f1af..33221481e75 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 067afba18ee..b64f613dd47 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs index 03e41ab98d0..a5871196400 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/EventItemRequestBuilder.cs @@ -167,6 +167,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -185,7 +186,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -213,14 +214,14 @@ public RequestInformation ToPatchRequestInformation(Event body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 9fd0c6002f9..7d457f1a457 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 7dd44fa218a..8d562c8edbd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index ea10567d136..c98b434d552 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs index b951c632e78..0246495282d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 75944c1ce7e..dab9152cf9a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index 4b4c35e5203..aa5a3a45331 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index fd54bb9421b..1336b395396 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index b38b4307013..cc1d1bbccfa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs index 67a2bf506b6..22b44bde063 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index b3b5103c998..ef16fdaf1e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -51,7 +51,7 @@ public static AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"SendResponse", n => { SendResponse = n.GetBoolValue(); } }, @@ -61,7 +61,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteBoolValue("SendResponse", SendResponse); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index f65ad66eaee..cab352ce688 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e7b38cf823d..96d36d09ecb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 655b12fdd68..2346413fbe6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index d2a5bfc541f..2d3a997a8e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 3be9047b554..ebba80b2dc0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 1f552fb7b8d..11faa0cf38b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index bd8547a0bb0..d17abd6dc01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 45fa680d3de..c65dd55a335 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -46,7 +46,7 @@ public static CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode pars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index ec3d5781002..a1027e974dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CancelRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index dad93c570a1..fbd9081ff46 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs @@ -66,7 +66,7 @@ public static DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index e55d94617c1..84a2cc1efe7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeclineRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 56ce71432ca..47cd8eabd77 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs index 2082e837756..e075f48372c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/EventItemRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 117c6008ebf..4fa4abfeb45 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 8744c85569f..305a59aae39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index fdf8f8b3fec..6f524b886df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 2cae35e2666..45f2651495b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs @@ -61,7 +61,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 61fd9f18d2a..7b03fdc72c3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index c635796823b..915c86d9dc6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index a5b29702fa6..c473498d1d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index d8dc4f9458c..74d168b14a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 268f6c20548..b73b8bfd74f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index a8eeef88432..1e19ffe53b2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -47,7 +47,7 @@ public static SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 6d98b24df5d..1e5ec49c520 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SnoozeReminderRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 668650852f6..373ab099143 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -66,7 +66,7 @@ public static TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, @@ -77,7 +77,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 4740f434ae9..8dbf980af2f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TentativelyAcceptRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs index ed7e028f7fb..aae62019323 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementData/ExportDeviceAndAppManagementDataRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs index ffdb218b1dd..498abe5c29f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ExportDeviceAndAppManagementDataWithSkipWithTop/ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder.cs @@ -67,13 +67,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataPostRequestBody.cs index 5a654dad114..2d63759c674 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataPostRequestBody.cs @@ -46,7 +46,7 @@ public static ExportPersonalDataPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"storageLocation", n => { StorageLocation = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("storageLocation", StorageLocation); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs index 03d06499c66..f5c570b3da8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ExportPersonalData/ExportPersonalDataRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ExportPersonalDataPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ExportPersonalDataRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Extensions/Count/CountRequestBuilder.cs index 96042662771..01ba00bd09e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.cs index e72383f2ecf..1f3e3e199af 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 9e0b080b38d..40aaffcdbb3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs index 61aeacae69b..34783e2a615 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesPostRequestBody.cs @@ -100,7 +100,7 @@ public static FindMeetingTimesPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attendees", n => { Attendees = n.GetCollectionOfObjectValues(AttendeeBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"isOrganizerOptional", n => { IsOrganizerOptional = n.GetBoolValue(); } }, @@ -116,7 +116,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attendees", Attendees); writer.WriteBoolValue("isOrganizerOptional", IsOrganizerOptional); diff --git a/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs index 677d9f225d8..677e2e7d2df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FindMeetingTimes/FindMeetingTimesRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(FindMeetingTimesPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new FindMeetingTimesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.cs index 01320ae949c..dc2c93813eb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs index c92ec619103..01f35ec0de4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/FollowedSitesRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.cs index d5496193407..ad7a0ce9f9b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/FollowedSites/Item/SiteItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostRequestBody.cs index de66318726a..6254daf12d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostRequestBody.cs @@ -52,7 +52,7 @@ public static GetMailTipsPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"EmailAddresses", n => { EmailAddresses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"MailTipsOptions", n => { MailTipsOptions = n.GetEnumValue(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("EmailAddresses", EmailAddresses); writer.WriteEnumValue("MailTipsOptions", MailTipsOptions); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs index 9c6bde011b9..15fd2dd9c1a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailTips.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs index c020e1de45e..e46de477c68 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMailTipsPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMailTipsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs index 490d2e97b9e..3186e862401 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppDiagnosticStatus.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs index 3d09b2565da..b45cff10c87 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppDiagnosticStatuses/GetManagedAppDiagnosticStatusesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs index 5f01c46e0f3..68658c52253 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ManagedAppPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs index 93a600dfe93..6845ba2503c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedAppPolicies/GetManagedAppPoliciesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs index 714b2366474..376301c2796 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs index 2cea5162396..ea6155cc552 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetManagedDevicesWithAppFailures/GetManagedDevicesWithAppFailuresRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 808f8727631..94e2efde458 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 0ccf103531d..749c739e8c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index af4eab0348c..8dd7497e1dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 59fd7d67e05..53bc80f74ac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -37,7 +37,7 @@ public static GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"securityEnabledOnly", n => { SecurityEnabledOnly = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("securityEnabledOnly", SecurityEnabledOnly); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 9327f4cc00e..0487a8d9574 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 368c47dd89a..43d207e357c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetMemberObjectsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs index 9186fcd878c..32faf1d5ea4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs @@ -89,7 +89,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -117,14 +117,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Infer UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InferenceClassificationRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs index 70b72116bdd..ee40270e1d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs index e6118fdd2cd..527a95b3b13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(InferenceClassificationOverr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InferenceClassificationOverrideItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs index 097a09f0318..d5d1949ff97 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(InferenceClassificationOverri UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OverridesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/InsightsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/InsightsRequestBuilder.cs index 06c425deabc..a0bef0f535d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/InsightsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/InsightsRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(OfficeGraphInsights body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InsightsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.cs index 03ddbac0746..91698ae3680 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs index 171881ca986..d759a080641 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/LastSharedMethod/LastSharedMethodRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs index 8ba142662e2..e0a54a57ec7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/Resource/ResourceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs index c7e26781e00..7f7ae39fd81 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/Item/SharedInsightItemRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(SharedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs index c46999b0466..c9a7120e60b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Shared/SharedRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.cs index e383f0b573e..5fdf3d3b981 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs index ca2ed5932b7..480db5b5cd9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/Resource/ResourceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.cs index e869c723f44..69ffe3672b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/Item/TrendingItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Trend UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrendingItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs index 35c3452a320..80e0ccb0b98 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Trending/TrendingRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Trendi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TrendingRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.cs index 173bc8b1e21..702ccd3f3f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.cs index 92735627238..cd4ad3f3858 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/Resource/ResourceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.cs index 1ad69e2f7b4..67498e211ca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/Item/UsedInsightItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(UsedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs index a2289dfa0e4..0e29b07173d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Insights/Used/UsedRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(UsedInsight body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.cs index 40e421d2818..45cd9ac52b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs index b89734882ae..e49441190f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs index 7bbc52cc68b..c6aec8b040d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs index 0b058b04f8a..6ec92d611ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/AllChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs index f7725e25d3e..d2defb66c99 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs index 0da5ee314b0..d3bcf9ca02f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/AllChannels/Item/ChannelItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs index ecd8f2a87ac..788b0d17466 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchivePostRequestBody.cs @@ -37,7 +37,7 @@ public static ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"shouldSetSpoSiteReadOnlyForMembers", n => { ShouldSetSpoSiteReadOnlyForMembers = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", ShouldSetSpoSiteReadOnlyForMembers); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs index 9bde2635852..0870dd08e0a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Archive/ArchiveRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ArchiveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs index 090180945ac..20269226776 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/ChannelsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs index f54d23dc2d0..bf8ff228029 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs index 3e676795705..05b31492910 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index a2d92ae9879..bc982055b6c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs index 8c50bbfe483..2c1bd75b955 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ChannelItemRequestBuilder.cs @@ -157,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -175,7 +176,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -203,14 +204,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 871820acb25..4dffb45981d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index 89a0f820227..ba51261bc46 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 200179f443d..f175da48419 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs index 97962c7a04d..dbd137c5c39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 8f3a60576bb..7cddee7e61f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs index 67d5b2c549b..40bcb1924e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs index 7a690c49cd8..6c6741c86e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs index 1bbb770c612..89a7b03473a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs index 6d815bd2a59..368fc03bfa0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index bb4562c7a4a..978d4fee797 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index c02149b0955..47633cef791 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs index 89ae835523c..9a3cb00dd8c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs index ba3db50335f..a29f3e3b377 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index bf37f9ce0ef..c9d1ad5479d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 66387278214..5f49151965e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index b29c26b6d05..76b72b90f09 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index bd915539bc7..6de00ba5ea3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index e182e0544e4..9dd101e6c5f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 639d415b99a..7d75b6b2a17 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs index dd69755a8bd..a6ef8d4e8e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index 06161c3f198..9f943ab3f75 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 95a0683621a..be7bfb64aa9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 17b46097ecf..e088dc08c85 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 9de9f4c7311..c3565a54e9b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index a23a9f803c9..63c02b3a067 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 60ecd09440f..058c0a9d060 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 4fbf46e5eb9..90e9be34688 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 3d6626b43a4..de20cd2c989 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 62a21952c01..e29a724b066 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 94809474ede..f8be0a20f87 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 90a9ac11157..b17c853f3d2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 16878bae6e7..20332d17ec7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 5dc9d57d96e..11405e945f5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index ff7e0b9ee01..d381a9d28d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 65cc5e82562..8993c136c23 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 8de5e04c0b1..b00ca2c3356 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index cd36badfac5..916bd3ea286 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 50343a08795..a8447f3a8af 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index c2a187ea344..96e7824cb81 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 16adee3efb3..0c9cc37d06f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 4c14aec8dce..ee93a063dde 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index 32a7c2ebdba..901de5be8f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs index 19029932fdc..d8d629d30c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs index ea034fbccc2..b708eb75d62 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index bd93893d3de..20f3f45d7a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index 770c7bec495..4dd1cf93889 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index 708556c0c91..7f789f5fae7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 455e9a1a5cb..783bbcf65b5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 8ba2d8b0b67..3cbdd7f82bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 89d6126a9bc..b3fd9436268 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs index 14e51290693..d2536d3e1a9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index db5b7bf7941..329fcd0d9b2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 7670125c318..3060a3981a6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs index 4fac6b96c65..74bd4ed307b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/ClonePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/ClonePostRequestBody.cs index 22e2c50d862..caeb66785b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/ClonePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/ClonePostRequestBody.cs @@ -99,7 +99,7 @@ public static ClonePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"classification", n => { Classification = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("classification", Classification); writer.WriteStringValue("description", Description); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs index 5c36110f780..0773cf5c212 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClonePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CloneRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index d4465515163..52c77aec1c7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs index a5fe3afabbd..6b9acd74d65 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/GroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 695f3df3367..5ec6632c3f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index a978d955881..cf569bc5d01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs index a36cfb8cb38..09c2867099b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs index 2ff75a3538c..158d1b63980 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs index dc4a11902b9..4b4594e609b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/IncomingChannels/Item/ChannelItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs index a3a5912853b..6414455ac3f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs index 486971a8f95..1f65cc38089 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 1164fa8da29..62749cb0f46 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 52e2d6957df..8d95b39a5f9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index ea35282d5c1..92f98faab21 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index b8035725523..2a07bf6fbdf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs @@ -47,7 +47,7 @@ public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index b29274d6ccb..fa2e4541b52 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs index 650d3d7842a..d490415ea01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs index 17dc3d89caf..9afa05397e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs index 6924f7fe3cf..e1671a1749f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs index 833b7b0afef..f20e58c9fde 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index b79a721de6c..63c85aaefd9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs index cc218e03df7..9199e8f014c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs index 6358a261c6b..866a5c38ed4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs index fae557522f9..bb450d27b11 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamsAsyncOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs index a57dd7301a8..b0c86b7c025 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(TeamsAsyncOperation body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs index eb82d7c6ad3..b5f1ec43641 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index cf291dc7563..a62dc366805 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index a5ff19f8dec..05066b44015 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PermissionGrantsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -144,7 +144,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the team. This list specifies the Azure AD apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. + /// List all resource-specific permission grants on the team. This list specifies the Microsoft Entra apps that have access to the team, along with each app's corresponding type of resource-specific access. This API is available in the following national cloud deployments. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs index 8d6eabda29c..4ecd34b91eb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/PhotoRequestBuilder.cs @@ -34,7 +34,7 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/photo{?%24select,%24expand}", rawUrl) { } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,7 +90,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -118,14 +118,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action @@ -136,7 +136,7 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs index 8c37a4fda60..57c37d105da 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Photo/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index 3e43f77a5b3..65b9da30a85 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs index a6b962cccec..668df77f383 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse.cs @@ -37,7 +37,7 @@ public static DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 495dd8face7..b8a9160c0a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs index ec3c6c85cd2..bb91de306cd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index d995eec432c..02fe5190e5d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -69,7 +69,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs index d58eb505fc7..c998a4b8273 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostRequestBody.cs @@ -47,7 +47,7 @@ public static AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs index 17a29460f88..0b2e30ef690 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 7febbd9aeef..92f2e34edfe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Add/AddRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AddRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs index 8cc63a0a1db..4aa27d6cfc8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 0b661541145..3d62bc0b1e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ConversationMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 8e2f6542564..de9772e8863 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs index 7e533f79bed..83b3bfe5859 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs index c23510588cd..ce7a4a86af2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index fd94855392b..a2a203d38a7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index d6cee9a4c53..d73a6e07675 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 3e4959ceba8..55d6aae2219 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index b676a3c9f80..d1d4a86c425 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 7aa7df23d71..cd78848a379 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 3ec0d2aee4d..a3ea111ef1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs index 739ad339eb3..5063126b553 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs index d39cb9d6732..951bce824a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index b1e30e4ba38..40d8f2a2caa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index b9341748c50..97b218d064f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index a1d31730b96..1ba27dd992d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 61fecfc7486..6b2b456bc69 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new HostedContentsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 6120f05bac4..ad38f4ecdab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 488270333e9..87715922776 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs index 734a3eda8ea..c28889c4804 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 94faa72be79..f6574de3646 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 0f90ddb6fae..2c71da970b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index b51ee43185a..d112de12bc3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index cbe0a4a2dff..9e296c75efd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index ed3f441730d..886ff2d5804 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 26bea76a347..2edcdb575c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. - /// Find more info here + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. + /// Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 422f947d2d4..edc44de8bca 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 6edbe25182f..f5c1c2cdd09 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index c124be80b10..b34bd39de61 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs index 65b1be53dae..56e14ed13db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UndoSoftDelete/UndoSoftDeleteRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs index 19e12fb9a76..a75150d8931 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionPostRequestBody.cs @@ -46,7 +46,7 @@ public static UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"reactionType", n => { ReactionType = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("reactionType", ReactionType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 7b8433c6fbd..7fd536f9f49 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UnsetReactionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index d25763e273b..63e4766dc11 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs index 366d9758da3..4010c91216d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -155,6 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -173,7 +174,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -201,14 +202,14 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index cafb1bf2e83..f0190fcb3ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs index 75fb7aa7d65..4d29c889664 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/RemoveEmail/RemoveEmailRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs index 6a3ea1e957c..6876804c704 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index a1a6b5966a5..420835dd75f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index c36abb5e379..056c728f033 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index e98dabceb4f..eedb5c831f7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 00cd905f51d..61c61883ef5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -121,6 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -139,7 +140,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -167,14 +168,14 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithChannelTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 55646532815..b005eff7204 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index be3b9ecf5b3..dba484e9519 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SharedWithTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs index 81432bda839..07dcf75c6df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index a836c9b853d..70036eff94b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index 2314ffd7818..9d8e452cb8f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 21d26f1d3f7..064a4ff8452 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs index ebc6bb83361..209a347e1e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 4361b167dde..d927e22f5e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 0922e042148..935813c5528 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OfferShiftRequest body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OfferShiftRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs index 5b911850474..6cf2526801c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index 20a31e4a6ce..e98693a120a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index fa90493b0aa..6bc4145eef0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShiftChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OpenShiftChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs index d282d6da34d..bc3c4bd619a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index cc9024b23f1..706060f6bac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 8191447d67b..211318f3a18 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OpenShift body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs index 84726ca6ff6..b8d9f029b05 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/ScheduleRequestBuilder.cs @@ -160,6 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -178,7 +179,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -206,14 +207,14 @@ public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.Schedul UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScheduleRequestBuilderPutRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs index 81eebfd521a..dcc87fb4bd4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index 423bb009e37..6ed91d15763 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index 31e92828cc5..3e12d1ed092 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SchedulingGroup body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SchedulingGroupsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs index 833223abe6f..f1609742a39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/SharePostRequestBody.cs @@ -47,7 +47,7 @@ public static SharePostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, {"notifyTeam", n => { NotifyTeam = n.GetBoolValue(); } }, @@ -58,7 +58,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); writer.WriteBoolValue("notifyTeam", NotifyTeam); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs index c7f343f7f72..e28dbb3bd14 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Share/ShareRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SharePostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ShareRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs index aa118dcdb3a..64576e0cf8c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index c17cc7e46ac..eb0a07f609e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs index 5c6b77fb21e..eb06c8e4673 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(Shift body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs index 8ad0025671d..18c0ecaa9cc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index d166c1da7c6..b16162e3cd9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index 27bb61188fd..1e338250872 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SwapShiftsChangeRequest body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SwapShiftsChangeRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs index 2564ee5e3ae..cf03d705db6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index 37fc75255e0..65ab2998419 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 86566b1ce33..456919c05a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOffReason body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs index 5cf15023e75..98c5f17150a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index 8a2b255eaa2..6b5a08485d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TimeOffRequestItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index 42010cc27db..3f710f2a37f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(TimeOffRequest body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs index 39dd691333f..cc0bde7def1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index 94e9af82891..3a753b0e132 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs index 176f766589c..6cfe398c7e9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TimeOff body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index dd69cd4172d..217e58c761f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -108,7 +108,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -122,7 +122,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index c61bb258925..6fbb1d06cbb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs index c6671797381..911d4aaddaa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs index 7f4b6ef21d4..47853305a5b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 3c9afd49c22..7daa4db4a0c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamworkTagMemberItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs index f238ec4f80d..f63f68cd134 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/Members/MembersRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MembersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs index 8d04a5aa914..af3e9ad8267 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -117,6 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -135,7 +136,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -163,14 +164,14 @@ public RequestInformation ToPatchRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs index 0094bf18e0b..86380f1c21a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Tags/TagsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(TeamworkTag body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.cs index 279fe882202..b709dca9b06 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/TeamItemRequestBuilder.cs @@ -199,6 +199,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -217,7 +218,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -245,14 +246,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Team UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TeamItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.cs index e0882db99c5..5d722dbbd85 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Template/TemplateRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs index 3c536750f4c..8319f6e21a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs index 0614b573295..c2cb9d8586b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/JoinedTeamsRequestBuilder.cs @@ -103,7 +103,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -131,14 +131,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Team b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new JoinedTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.cs index a047db3c565..df091d5a621 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs index 1dae69b30d1..f4647a28765 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/Item/LicenseDetailsItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Licen UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LicenseDetailsItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs index 8cadcfb3a72..6f7678e4127 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/LicenseDetails/LicenseDetailsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Licens UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LicenseDetailsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.cs index 817b6e43929..aebb8aeea7d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs index a10a68ad184..8e7f3cae5e8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs index a62e87ecd14..e8de22e54b7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 2c69c9da7e3..1eee8bb6845 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs index 5b799888e8c..8102a065f7c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs index 3ea929f61d1..83b8a3703a8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 4f3ed55a258..04cef6893bc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs index 9700e7590d2..42fe122a270 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs index 3f56b2c0520..3f9b337136a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs index 507373e6189..5a5c1434dad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs index ef2b3921098..b61ada1871f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 18a027a8a1f..45860862ef8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 69218c06aff..5f9d75294b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs index 5b1a9ca1e02..af4cecbf843 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs index 89423a6ed9d..b2041f46e77 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 1c167ca9213..16049469e2a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 4e80bfbcb47..650a813f6e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index e6220d2471a..721b2f7cb01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 99162aa94e1..faa9eaa7339 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 659dcb485e2..f759e0c4437 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 7d5716e3f58..128e353fe32 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs index 0d18c9548ac..75e3779f5f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index 555020304cd..f80122690df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs index 640750fd9df..0872e5aaa3e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static CreateForwardPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 9f22212d98b..fdb41e260a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateForwardPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs index bc85f52b490..e8ee7d29f69 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index eece5cbe1ac..28f77732b6b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs index e64b2311699..974b2075de2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index a783e799029..103e6ea495f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyAllPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 42261416175..9ee30eba53c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 49ae385622c..985cac4a796 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 9536311cb1b..faa8cec8082 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs index bb1eff9170f..f0a7713fc72 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 7de6de59adf..59c1b8f3f15 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs index f252d3e23f4..9537abdc167 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Messa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs index 540f99e2fc0..c22f5aed3a5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index 429c94e1d47..ccb2ed0630f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs index 6f2eca034d8..9b37d8ee1e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 2d63ff553fa..fb319f53005 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs index 6dda9963f3d..7df2ac65f45 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 73e40578cbf..78d6047f6f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyAllPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 50548a87a93..67aee4b3e73 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs index 414ffa39a4a..f3b94c96819 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs index 0b08c29ca41..0d1180b45f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs index 4fc2ea571f7..d0d121cd030 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs index efd3af8d070..35c778032ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyPostRequestBody.cs index 490550fa72d..5e100444a7a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs index 660a601faa2..3e19fdcf757 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index 5fc1d765f7b..ecb217c59f9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -94,8 +94,8 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of mailfolder object. This API is available in the following national cloud deployments. - /// Find more info here + /// Update the writable properties of a mailSearchFolder object. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of mailfolder object. This API is available in the following national cloud deployments. + /// Update the writable properties of a mailSearchFolder object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs index b610a0a86f7..197f70fd679 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 26099345ffd..71d29997277 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index ce91fc6ab12..d0dd02f4fd5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(MessageRule body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs index 450be76bc9f..5cb49787054 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs index a45e591cd77..e4cc435de1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index c602f56983b..f3633040113 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 0ef919b8d50..7e274d9bd79 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index 8e3e878ec46..e58521590e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index ba282788dfa..656a2ebf0a9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index e6fb3fb02eb..a1c9c2fdd28 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index efa315d762e..d189871a92c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs index 32cf5a6fe21..5105473e56c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs index 1d1b1c2658f..14835e6ffef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs index f76653c430e..9a53fb9e40a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static CreateForwardPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index 9dbc6b8d6dd..f77285eeb1d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateForwardPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs index 201a76e10f8..e8e8a5808f7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 36618ecfb39..ced31e7a0f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs index c419bde891a..2f7e467ffa8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index dbe412a0659..013657ca9e2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyAllPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index ff253a1a33f..c4edc5e4e84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index c917ee4e35f..ef853945dc9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 4bcbfd06ae9..db4ce903d36 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs index d87c5080d8a..67c45964899 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index b89acf7eb7c..c7e9721bbcf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs index 3a68a86554a..3a62f1fad89 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -169,6 +169,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -187,7 +188,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -215,14 +216,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Messa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs index 26ceff6e9f9..81993e92dd4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs index a536178cff2..f4d9b7bf423 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs index 79f938d55a7..abe968242fa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index 95873ab4196..26ad5f35586 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs index b8bbac5da0a..e9500eb018d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index af0c1391b51..30284e898f5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyAllPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 94dcd997a44..6b098506470 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs index 69d7a9a4118..de2b67bedfc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs index 8d6527638e1..81579c669f8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MovePostRequestBody.cs index 6aef0430711..20a3ad2bb1b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs index 076f8445f59..9b8e44e02c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs index 01a87582936..7f30dba4427 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index ecbc67577e1..7245c2bc81e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -112,14 +112,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Mailb UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.cs index 7ebfee551ca..bb2f2055e47 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index 5c8f582f43b..8ab6dd0c809 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 67352a7e8cd..ce3ac032484 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.cs index 8acb99ac8d7..ab2f297a8ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs index e4433ccd568..7789a1623d7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs index b54876e625f..469ea613862 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDevicePostRequestBody.cs @@ -37,7 +37,7 @@ public static CleanWindowsDevicePostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keepUserData", n => { KeepUserData = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("keepUserData", KeepUserData); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs index 7fde87074af..ab1b445374b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(CleanWindowsDevicePostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CleanWindowsDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs index e4a01e12d10..58d658e4639 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs @@ -46,7 +46,7 @@ public static DeleteUserFromSharedAppleDevicePostRequestBody CreateFromDiscrimin /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("userPrincipalName", UserPrincipalName); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs index 805e33a5e27..303b27897e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(DeleteUserFromSharedAppleDevi UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeleteUserFromSharedAppleDeviceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs index 4b7a83abe4c..95be2154ca8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Devic UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCategoryRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs index 755137c485e..cffccdf0537 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs index 187b21364d0..5ccfc0914f6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyState b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs index 8ffe84805bc..022f6e57f93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyState UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceCompliancePolicyStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs index 114bf4cdd15..af34b4c3e93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs index 46f53334473..154c93227bc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationState body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationStatesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs index 99a2059604a..5f160e83817 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationState bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceConfigurationStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs index 40db0c2a6c8..dee571a410c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs index 04a4fbb64b9..69c4148a9c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LocateDevice/LocateDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs index bac2f677460..494d38e5c2a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs index 618a3470ab0..1190da1275a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -46,7 +46,7 @@ public static CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index b1bfc3f0620..cae1dbf8f72 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs index 5671b8fe516..6d2c7c4fba4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/Item/DeviceLogCollectionResponseItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(DeviceLogCollectionResponse UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DeviceLogCollectionResponseItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs index c105b724ac7..5c696140bb3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(DeviceLogCollectionResponse b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LogCollectionRequestsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs index 5051bd020df..63912f49499 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index dad209feead..cd0e1ef99d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs @@ -229,6 +229,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -247,7 +248,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -275,14 +276,14 @@ public RequestInformation ToPatchRequestInformation(ManagedDevice body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs index d1db2f679a7..8c8802018bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs index 629ba5a8354..75fafa2d948 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RecoverPasscode/RecoverPasscodeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs index 6faf988671d..4167c076097 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RemoteLock/RemoteLockRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs index f323534820b..eb3eea30a0a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/RequestRemoteAssistance/RequestRemoteAssistanceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs index bf2d1ddfb99..e2cd880e034 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ResetPasscode/ResetPasscodeRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.cs index 2cc51ca8812..a56a7af6674 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Retire/RetireRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs index 01fce8b477d..c920d67a2bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/ShutDown/ShutDownRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs index b32c22f5806..4316325d284 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/SyncDevice/SyncDeviceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs index 4842f4c24c3..3288fbc9d7e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountPostRequestBody.cs @@ -47,7 +47,7 @@ public static UpdateWindowsDeviceAccountPostRequestBody CreateFromDiscriminatorV /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"updateWindowsDeviceAccountActionParameter", n => { UpdateWindowsDeviceAccountActionParameter = n.GetObjectValue(Microsoft.Graph.Models.UpdateWindowsDeviceAccountActionParameter.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("updateWindowsDeviceAccountActionParameter", UpdateWindowsDeviceAccountActionParameter); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs index da51d03de20..abcddb833c7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(UpdateWindowsDeviceAccountPos UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UpdateWindowsDeviceAccountRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs index 56601f97b3b..941595c481b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Users/UsersRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs index 18e18f48fc9..ef88327347a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs @@ -37,7 +37,7 @@ public static WindowsDefenderScanPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"quickScan", n => { QuickScan = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("quickScan", QuickScan); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs index 04774330b58..e6172246545 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WindowsDefenderScanPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsDefenderScanRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs index 85a5676f2f1..711698bd6a1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs index ecbafa5c33d..9ef20098db8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs index ecf10aba5fc..805747b6fd2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(WindowsDeviceMalwareState bod UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetectedMalwareStateRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs index d80bf9d8273..3ac5ed3f2e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(WindowsDeviceMalwareState bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsDeviceMalwareStateItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs index 9bc3064389c..f7b3564f87c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Windo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WindowsProtectionStateRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipePostRequestBody.cs index 58b9edb87d9..3163b7f3b2a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipePostRequestBody.cs @@ -61,7 +61,7 @@ public static WipePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"keepEnrollmentData", n => { KeepEnrollmentData = n.GetBoolValue(); } }, {"keepUserData", n => { KeepUserData = n.GetBoolValue(); } }, @@ -73,7 +73,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("keepEnrollmentData", KeepEnrollmentData); writer.WriteBoolValue("keepUserData", KeepUserData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs index d289384ec21..e776972baf6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WipePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WipeRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs index f32b8826ec1..8828b28279c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ManagedDevice body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs index 7344431c4af..d69b9779521 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Manager/ManagerRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs index 759b63515e6..2f97fbf5c40 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Manager/Ref/RefRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,13 +131,13 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,13 +158,14 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.cs index 2691cd42e0b..b71229fd529 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index c9dd6ceb753..713699e7891 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 848139d8250..3435617b825 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs index bbe26bb18f4..64e24f1a271 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 31af2b7f9d9..c98e25fbaef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index e065a5364d7..ea031c88e34 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 06cbe08bffd..e9aa8594d8e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 9188a35f0e3..85b6c29a438 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 44cf295987e..8949fe73a9f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 3a6a1ad82e6..9b21447e231 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index b10e56f9bc0..f0705bace4d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.cs index c7f960a6972..c0c90d82be6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MemberOf/MemberOfRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Count/CountRequestBuilder.cs index 5425ec7ad95..6b3d58aa9d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs index 9dfc9b85f89..72b7df40d95 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs index f1007981af7..3a006ad8e07 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index d5f1781e86b..9c8f4cef77c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. This API is available in the following national cloud deployments. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index 3ac11feef58..eb095bcca76 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 1a00f121367..4a93072df63 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"AttachmentItem", n => { AttachmentItem = n.GetObjectValue(Microsoft.Graph.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ed3046d5948..7b8981908be 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 127510c87cc..8f1b21cb74e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -107,7 +108,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyPostRequestBody.cs index 1317e756dcd..8ad7281b3b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyPostRequestBody.cs @@ -46,7 +46,7 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs index 63ad2a2944f..1f5311df029 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Copy/CopyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs index d1ae41e8009..ab2970b4e32 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static CreateForwardPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs index e375ce0984a..25c3cd19e70 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateForward/CreateForwardRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateForwardPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs index 261ad4201e7..6f7983af2b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs index 1c6e531efef..cb74f2c69c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReply/CreateReplyRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs index a9c4c530182..63b1ce5784c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static CreateReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 99ff89bf325..f9c478218e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateReplyAllPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 2dbd3c5b65e..3c58b930070 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 5ce7aa6bbe0..74163da6426 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index dfc3e509486..2cf4a155a8f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardPostRequestBody.cs index 22c4804267a..725d0dbb9d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardPostRequestBody.cs @@ -75,7 +75,7 @@ public static ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -86,7 +86,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs index 33fa632a515..513e37fe851 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Forward/ForwardRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ForwardRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index 1ccdb8f4087..8677ff18ed7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete eventMessage. This API is available in the following national cloud deployments. - /// Find more info here + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,8 +129,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an eventMessage object. This API is available in the following national cloud deployments. - /// Find more info here + /// Update the properties of a message object. This API is available in the following national cloud deployments. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete eventMessage. This API is available in the following national cloud deployments. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -172,6 +172,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -190,7 +191,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an eventMessage object. This API is available in the following national cloud deployments. + /// Update the properties of a message object. This API is available in the following national cloud deployments. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -218,14 +219,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Messa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessageItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MovePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MovePostRequestBody.cs index ac0c534fd33..f2b36069345 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MovePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MovePostRequestBody.cs @@ -46,7 +46,7 @@ public static MovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"DestinationId", n => { DestinationId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("DestinationId", DestinationId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs index 4ff11480081..7597f66bf87 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Move/MoveRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(MovePostRequestBody body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MoveRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyPostRequestBody.cs index 4590105c10f..ce86f6b587b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs index f213bb5f32a..07cfcae07bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Reply/ReplyRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs index 4c8779e8621..6fd0edf69cd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllPostRequestBody.cs @@ -61,7 +61,7 @@ public static ReplyAllPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Comment", n => { Comment = n.GetStringValue(); } }, {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, @@ -71,7 +71,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); writer.WriteObjectValue("Message", Message); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs index 1937bed9c48..44bc693b0ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/ReplyAll/ReplyAllRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ReplyAllPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ReplyAllRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs index f125dcd2990..cdd98341bc6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index f39225de88e..3ca7e63883b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index e5f6a9cfb26..5acb46ef001 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MessagesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs index 05ed50e5d92..955b3e65666 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs index a552756e1a7..30aa6ed842d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Item/OAuth2PermissionGrantItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs index c745c404af9..3211cc10dd2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Oauth2PermissionGrants/Oauth2PermissionGrantsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs index 624d9beeb20..7a04b779d45 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index 68003347cd6..59771ffb943 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -46,7 +46,7 @@ public static GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue( /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"webUrl", n => { WebUrl = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("webUrl", WebUrl); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 0eadb3f6e08..18e5e3f5d72 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new GetNotebookFromWebUrlRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index ce0178e4a1f..967743df1ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index a792a1bd05b..b34fba9feb1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index be933d5ce4b..36ad8ac45c4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNod /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"notebookFolder", n => { NotebookFolder = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("notebookFolder", NotebookFolder); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 628c857e229..0e63781a6d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index d97ffe2558d..9c2f863d207 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -125,6 +125,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -143,7 +144,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -171,14 +172,14 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index ed145af5f89..654f8c545f7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 2463dc11572..f5ef9a7f680 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 2338a2a2640..0130620e0c7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 9a656365a10..1dc692220bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 5fbde2d99ca..ce97044cbcb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 751c2386dca..8113d0975ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index bc19ac831c8..86d88f43a13 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index aa0cbbda0f7..f945a43071d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 963d45d7fdb..d7d54583688 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index d111ccdb037..afc15d05c7f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index b094966fba6..eb2b75ce7ba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index de7ab770cca..779909f96ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index d2912c1bdf6..7c244cf9f9e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 271200f839f..574b4fd4249 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index a12372cdebf..00d8bd71a5f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 3f4a43218f5..8c5bf7c0eac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 019217a6105..ef0663ba02e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 38d882be7a4..56e67bdef50 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index ea65abb09dc..7b16173fe05 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index feb52c5ef7d..6dd7456cdc0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index e6973c7b5f9..2488f4dc941 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 003ef63dbd2..8ab8cecd660 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 7081e93051a..7e6d05e9c37 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index 461fc186758..37567950d3b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 1c78b446c9e..9b7c871c3d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index a929da35dd5..a546f8ce95b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 7660ae21230..1f35da780a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 0898bc0d7d6..aaeaf552a41 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index 75d36388dfe..5a332000188 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 30670908766..479c94e4276 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 980a8aabeab..92c1ecad4c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 21af8768425..01625a8c064 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 9a64cdbba21..7d44bd51112 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 0251a72a556..1abcce57e96 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 44b5e5eec9c..695fb5eb1bb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 1527bd04616..459d709158c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index a1954fb0df6..84a9b35b438 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index c59881f9b22..b14d7e30fe0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 2e711589a2f..6abaa9b3020 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index a75a4c73b6b..147da0845fb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index c6f3c2a4246..a343ca88c1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index ebcc881ecb6..b92701fc6da 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 840cd4fbad0..dfaafb47941 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 5e6b3cb5144..eb2f90e3624 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs index aa354452917..62176b464d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 3a429ab60b9..6db16f931a5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index abf9c9c497b..2b4b763238f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 4ef221ea87c..b42674c8012 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index cc703027b58..4a69b3e576c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -113,7 +113,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -141,14 +141,14 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/OnenoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/OnenoteRequestBuilder.cs index eeed05530ea..a6ceded5bf6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/OnenoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/OnenoteRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Oneno UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.cs index 77718568838..b314a72ddd2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 9696a524ef7..3f0929639b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs @@ -110,6 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -128,7 +129,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -156,14 +157,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteOperationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs index 3cd07843a05..ec41931efa6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OperationsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.cs index 7d58c70061b..3fa301bdb1e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index ca5f45cceff..c2dd3a704ec 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index c3955f99a27..f5ca959f858 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 7808fe86132..d16fc175754 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index a0e8e2bb82e..433f40d0201 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -141,6 +141,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -159,7 +160,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -187,14 +188,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index e9a937df23d..7ea1214743e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 87adf520d90..41c3535b03d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 4f8dea38a87..017d15f53d7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index b42c6a06caa..c828de97ac0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index 8e9be99b683..93391f3d3cb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs index 8138496cbf6..73f61b37ef0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.cs index 06aa4b6d528..20d8298c076 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index eafa5c7a57f..ed3a7511cbf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs index d434ca6fa3e..10c04b9ea83 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/Item/OnenoteResourceItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 06ef1e5f942..f518c511cab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ResourcesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 3f6cdd98070..6e45c56b9ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index d95bcb83927..d1cd275affa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index cbe25b57406..8d2efe34e12 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 6b17e5750bf..596133b9d44 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -130,6 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -148,7 +149,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -176,14 +177,14 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 1db39c8e9ba..9905a068534 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 8e1c5e13d1f..f5b18798f5c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 0f7d231957f..efcca0f4238 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index db282c24c6f..870202bbdaa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index e019a740ac4..ca16a3f362c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index be262862b22..49cc138a58d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 486ddbd9f1d..ba927f0ab5c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index eb1a9790e12..d5f4c99292b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 4ac73bc9806..cbe3df04c8b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -134,6 +134,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -152,7 +153,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -180,14 +181,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 4d5fa7daeb6..d68a4e22e01 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 24d3f1d0b62..4c922b830cd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index 1ce3874458a..2d420a24500 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 58e02df7582..68850008dfb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index a771c7b92fc..e18f74df9c8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 5baa62bdb29..e2badbc06dd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 97c5c65e4b6..8a143da3d4f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 8dc19ad4865..63c218f1984 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index c7205d5a769..219a6dcecd9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 2dd865ed350..9078c6c7e97 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs index a7f7101f07e..2c6b52dfae6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 5799fcdc836..d86d13c5169 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 939d7f6e8e9..b8a776339fd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 82569feffc8..3005364968a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index b9daeac8e29..e8f71440fce 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.cs index b98a87eea46..383d7d6de6e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index b032755b38e..22177bab907 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseN /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index a079f2d2bb7..fb44dd4d28e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToNotebookRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 8f11a930ea0..212c6cabdbc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -102,7 +102,7 @@ public static CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -115,7 +115,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index e86e31d6dc2..a10ed32756f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionGroupRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 6d2c3d54204..6c3e3ff1197 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -135,6 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenoteSectionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index 9f2b0cbadd9..9850bd48337 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 61c4ce35950..c983bd8d1b1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs index f2fe2d8b68f..baf28d4538d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionPostRequestBody.cs @@ -88,7 +88,7 @@ public static CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"groupId", n => { GroupId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -100,7 +100,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("groupId", GroupId); writer.WriteStringValue("id", Id); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 9be7fbc1f34..e86974acf19 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CopyToSectionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index d68216679f6..0bdeada54aa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -139,6 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -157,7 +158,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -185,14 +186,14 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index a57f75cc92c..99a103ebf91 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs @@ -47,7 +47,7 @@ public static OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index c25cf0b43e4..9d3c9db33d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs @@ -66,13 +66,14 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OnenotePatchContentRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 0e9c97e763a..5551d847f50 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 9dcc2138a4c..4b5767b2189 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 28b260f85da..cf4afab9aff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs @@ -63,13 +63,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs index 790ffa6c48c..55ab3ff1d2c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/Pages/PagesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index b8c3632b3ed..2d57144b8f5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 348c8d97e6c..260da2e9a15 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs index f8098ec9a76..320a5451ee9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.cs index d4b45b1c30c..f0767c78431 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs index 9e890489712..dc991c67764 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs @@ -99,7 +99,7 @@ public static CreateOrGetPostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"chatInfo", n => { ChatInfo = n.GetObjectValue(Microsoft.Graph.Models.ChatInfo.CreateFromDiscriminatorValue); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -113,7 +113,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index 9130623d84b..e58c597a62f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateOrGetPostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateOrGetRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index 5cef7106fb7..ed36ea57f6f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(MeetingAttendanceReport body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceReportsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs index 0440d32008a..1f3b03efae9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index b064a37baf8..e2c80bb7780 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AttendanceRecord body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceRecordsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs index c0b60e9ae89..757c35593bf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs index 69c16b7b595..64a72d9e00f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(AttendanceRecord body, Actio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttendanceRecordItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index e98fa5397b2..4c2ef41371b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -115,6 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(MeetingAttendanceReport body UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs index b928923e8de..f6b19199643 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs index 7ab63a50148..f0af6cefb95 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlGetResponse.cs @@ -46,7 +46,7 @@ public static GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminator /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index 0c8654507a4..94631fc9072 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs @@ -82,13 +82,13 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs index ef7e35a1a2b..b88fd0c31ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/OnlineMeetingItemRequestBuilder.cs @@ -132,6 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -150,7 +151,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -178,14 +179,14 @@ public RequestInformation ToPatchRequestInformation(OnlineMeeting body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs index fc7ce763126..f2e853c4098 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs index 7fabc36b14f..9bbf893791f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -120,6 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -138,7 +139,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -166,14 +167,14 @@ public RequestInformation ToPatchRequestInformation(CallTranscript body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CallTranscriptItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs index b5aae36f9df..575de6fae5d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs @@ -91,6 +91,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -111,14 +112,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs index 49722886dca..473c273b83f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/Item/MetadataContent/MetadataContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs index f3cc624d09c..1a94b12d5d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Transcripts/TranscriptsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(CallTranscript body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index ac9157eaf09..0dcf9ed6ccf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(OnlineMeeting body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.cs index 457e2bd2465..609562859af 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index 4ad8c2b0145..b39d0a1cafc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(OutlookCategory body, Action UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new OutlookCategoryItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs index bdbea5c9268..6b41df4e701 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(OutlookCategory body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new MasterCategoriesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs index 09d19cf6d2b..e5fe63e61fb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/OutlookRequestBuilder.cs @@ -87,7 +87,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs index 4abaa1196fd..c217410788c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(LocaleInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs index 37925862d56..32ca4645aba 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs index bc5bcf27400..c32b74890b6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs index 6ff12dbe5c1..44e17747bbf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZones/SupportedTimeZonesRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs index b44e138e11b..6633b1d862c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TimeZoneInformation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs index 523bbc23293..dfbd5dea898 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedTimeZonesWithTimeZoneStandard/SupportedTimeZonesWithTimeZoneStandardRequestBuilder.cs @@ -84,7 +84,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.cs index 1058d06b260..744d823fe16 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index 980588ecf4c..c3339e29d3f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 62fce4c0567..34ec48ca148 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs index 73b50b69a1c..6d82510c93a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs index 2f360167444..8492b248473 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs index b40a5f9d00f..23abcb16522 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs index df79a7cb1c7..906eb2e9d94 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs index 5527e86c562..49d78db9e23 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 4a213cb741a..c2fb0b3eb2d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 32bbcfd105d..aa456bf6f44 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 7aca1c4d717..ce68efb4e32 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.cs index 8b3f46883bf..bf4746c26ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedDevices/OwnedDevicesRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.cs index 610f19eca5d..7f0d1894a38 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs index 4364e9914e7..164e3b9ee40 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs index 4bbf52bda55..c54d780d999 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphApplication/GraphApplicationRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs index 960b34d590b..1667c1d3f26 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs index 9e4a826d45e..bdd67aaefa9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs index cbd896e06cb..67747129a6a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 1467ef86882..7e852caa4a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs index bcc05c7ff3a..a5710bb0e2e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs index eb6a9e290e2..e0cd2557cd6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphApplication/GraphApplicationRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs index b3557c09741..a9b6adebdc6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index a88837dfeff..3744082d70e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs index 67c2e7299b7..10463d26087 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OwnedObjects/OwnedObjectsRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/People/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/People/Count/CountRequestBuilder.cs index 526e5242af2..d1b7398df58 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/People/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/People/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/People/Item/PersonItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/People/Item/PersonItemRequestBuilder.cs index d007df35941..7c2e6d12784 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/People/Item/PersonItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/People/Item/PersonItemRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs index 8a2e59f5a70..9275f1d3872 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/People/PeopleRequestBuilder.cs @@ -77,7 +77,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs index 7568a3fed70..38a1a21c531 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -115,10 +115,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -133,7 +134,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -161,14 +162,14 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action @@ -195,7 +196,7 @@ public PhotoRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. + /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Microsoft Entra ID. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download. This API is available in the following national cloud deployments. /// public class PhotoRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photo/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photo/Value/ContentRequestBuilder.cs index 8fe623a6a12..08c210ee861 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photo/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photos/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photos/Count/CountRequestBuilder.cs index 7df2a016129..e59053d935f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photos/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photos/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs index b74c374a142..23cafef1f5b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.cs index 8152b851094..d828e97bfa4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/Value/ContentRequestBuilder.cs @@ -89,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -109,13 +110,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photos/PhotosRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photos/PhotosRequestBuilder.cs index 998a88d7b93..2301a90ac07 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photos/PhotosRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photos/PhotosRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/PlannerRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/PlannerRequestBuilder.cs index a31e5c65ca7..f7f9937af83 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/PlannerRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/PlannerRequestBuilder.cs @@ -119,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -137,7 +138,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -165,14 +166,14 @@ public RequestInformation ToPatchRequestInformation(PlannerUser body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.cs index ca71e90e511..12aafd0615a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index 22529beba21..89590625ced 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerBucket body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs index d93d3afdfd2..75110d0d50f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs index 2db9f6fe90f..12460c08b27 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action

diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs index 7826f42fbff..81ad2304ca9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index b2864652bc4..58485cce2cc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } ///

diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 9267db8cd19..ee7e05f75d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 1adc89cff53..c35712a61a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index f190d84b305..11fe732ad39 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 72d6e968f4c..6a5758a68c3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index c3c4172f3e7..e90cb9415d5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index 9b8e8b21722..bc7f6e00857 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlanDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs index 3d274a40707..a794077e5b0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs index 2bde473dde8..43d574a1e3d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index b8debcaaba6..67b00c13deb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index bb350bf016f..811328dfc9c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 63b070126ff..06d9b560e77 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index d0a52a51123..ff028b2b4ff 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 6a2aa3608a3..e64bb77ad73 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index a401543d3e9..bc6a25625cb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs index f4af74225e9..dc76c19015f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Plans/PlansRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerPlan body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.cs index cd4fc22fc03..089af2d1545 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index a10d9f47519..a2bb9b79d26 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 805c6440153..791ce4dcd57 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new BucketTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs index 013beb1d7ed..3044de1bdc5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/Details/DetailsRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new DetailsRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 57ece2df221..ba7638b34e8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -129,6 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -147,7 +148,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -175,14 +176,14 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 32fe23ce1a0..ef26a37b8ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs index 1760efccd21..ceac93de4fd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Planner/Tasks/TasksRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresencePostRequestBody.cs index 2449f8117a3..317d314a22a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresencePostRequestBody.cs @@ -46,7 +46,7 @@ public static ClearPresencePostRequestBody CreateFromDiscriminatorValue(IParseNo /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"sessionId", n => { SessionId = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("sessionId", SessionId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs index 4d3aa80a742..dca023e4006 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearPresence/ClearPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ClearPresencePostRequestBody UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ClearPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index 6c0a465041f..7504d57434a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs index 74b8a458f7f..17427f63ea7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. This API is available in the following national cloud deployments. - /// Find more info here + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -135,10 +135,11 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. This API is available in the following national cloud deployments. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +154,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -181,14 +182,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Prese UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new PresenceRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -215,7 +216,7 @@ public PresenceRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get a user's presence information. This API is available in the following national cloud deployments. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresencePostRequestBody.cs index 1a433e6a374..c67b4b9772e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresencePostRequestBody.cs @@ -79,7 +79,7 @@ public static SetPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs index 7eb93473f92..7d95549b58f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetPresence/SetPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetPresencePostRequestBody bo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs index 13fb91835df..79991112831 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs @@ -47,7 +47,7 @@ public static SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IPars /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("statusMessage", StatusMessage); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs index 0af83a6c136..253ee870d60 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetStatusMessageRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs index f575a273c9e..7afbb9103ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs @@ -65,7 +65,7 @@ public static SetUserPreferredPresencePostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, @@ -76,7 +76,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index 6134c1b7005..ae680697596 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SetUserPreferredPresencePostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SetUserPreferredPresenceRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.cs index 30de8c17820..0f01cb29499 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index 16e5c3f0ffb..01734c86ce9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 203d4fba08e..bd0839c17e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs index 3b5243b9b91..037212b55d8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs index f582732b8d2..c285b9903e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphDevice/GraphDeviceRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs index c11eed87664..77ac1b758db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs index 48be663b3f4..592b8241c55 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs index af81352db1a..01b886053ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 84901033cdc..67a8a5117d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs index afaa4127eea..9cdb9b39991 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphDevice/GraphDeviceRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 4dcca43633a..b7213adf411 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs index 44e15ac4991..80a3fe2aa9a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RegisteredDevices/RegisteredDevicesRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs index 1c71e4dbb8f..e35f93dcb8c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(Reminder.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs index 1a86e5cfae9..73374dddb10 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReminderViewWithStartDateTimeWithEndDateTime/ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -86,7 +86,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs index eb91c7a9d3e..3e3050758b3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RemoveAllDevicesFromManagement/RemoveAllDevicesFromManagementRequestBuilder.cs @@ -69,6 +69,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs index 4736cf4c5db..27443d2f8fe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ReprocessLicenseAssignment/ReprocessLicenseAssignmentRequestBuilder.cs @@ -29,7 +29,7 @@ public ReprocessLicenseAssignmentRequestBuilder(Dictionary pathP public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/reprocessLicenseAssignment", rawUrl) { } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is available in the following national cloud deployments. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. This API is available in the following national cloud deployments. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public ReprocessLicenseAssignmentRequestBuilder(string rawUrl, IRequestAdapter r return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. Also see Identify and resolve license assignment problems for a group in Azure Active Directory for more details. This API is available in the following national cloud deployments. + /// Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs index d6efb0cfe06..cc9ad86befd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Restore/RestoreRequestBuilder.cs @@ -64,13 +64,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs index 4ebba43d8ed..5f45d4a288b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs @@ -68,6 +68,7 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs index 0d8add9a716..b04e443c53b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsPostResponse.cs @@ -37,7 +37,7 @@ public static RevokeSignInSessionsPostResponse CreateFromDiscriminatorValue(IPar /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"value", n => { Value = n.GetBoolValue(); } }, }; @@ -46,7 +46,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("value", Value); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs index cd50728e44c..47a39f7f758 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/RevokeSignInSessions/RevokeSignInSessionsRequestBuilder.cs @@ -84,13 +84,13 @@ public RequestInformation ToPostRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.cs index 4c9b0feb8c7..be06590f198 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs index fcd667abaad..1f91d09e787 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/Item/ScopedRoleMembershipItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs index 61d9b48d1b3..d04b55f51db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ScopedRoleMemberOf/ScopedRoleMemberOfRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ScopedRoleMemberOfRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailPostRequestBody.cs index 42a355ea6de..0027e9debf6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailPostRequestBody.cs @@ -52,7 +52,7 @@ public static SendMailPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"Message", n => { Message = n.GetObjectValue(Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue); } }, {"SaveToSentItems", n => { SaveToSentItems = n.GetBoolValue(); } }, @@ -62,7 +62,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("Message", Message); writer.WriteBoolValue("SaveToSentItems", SaveToSentItems); diff --git a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs index 69ea904a5d2..22e2e07caa4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendMailPostRequestBody body, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendMailRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 83b4e0273b9..3e36887e2b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 69c1acdf6ce..d748a66abbb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs index 87c1f9ca526..d6c7deae329 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs @@ -116,6 +116,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -134,7 +135,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -162,14 +163,14 @@ public RequestInformation ToPatchRequestInformation(UserSettings body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs index 3f9d03d8a41..d11cb6e6bf9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/ShiftPreferences/ShiftPreferencesRequestBuilder.cs @@ -111,6 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -129,7 +130,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -157,14 +158,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Shift UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ShiftPreferencesRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs index b2a138eaea1..cba55dba07a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/AssociatedTeamsRequestBuilder.cs @@ -98,7 +98,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -126,14 +126,14 @@ public RequestInformation ToPostRequestInformation(AssociatedTeamInfo body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociatedTeamsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs index 2c2334182ca..4efdcfbab6b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs index 5dc1662095d..7735ae4e35f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/AssociatedTeamInfoItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AssociatedTeamInfo body, Act UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AssociatedTeamInfoItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs index 8c4d30d5547..be564bc42cb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/AssociatedTeams/Item/Team/TeamRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.cs index 6fe3595ce4a..d760c4db491 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs index 8db39bd8e0f..b3bd77ddd0d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/InstalledAppsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(UserScopeTeamsAppInstallation UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new InstalledAppsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs index 73ccb0aa53a..544673e56e4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/Chat/ChatRequestBuilder.cs @@ -64,7 +64,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 666b02d8ebe..339e0dc8525 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 3c148360cee..f1c48e8a0ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs index 993cb72a14e..9605b2b8aed 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/InstalledApps/Item/UserScopeTeamsAppInstallationItemRequestBuilder.cs @@ -126,6 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -144,7 +145,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -172,14 +173,14 @@ public RequestInformation ToPatchRequestInformation(UserScopeTeamsAppInstallatio UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserScopeTeamsAppInstallationItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 2db0b071937..a73089fdf92 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -94,7 +94,7 @@ public static SendActivityNotificationPostRequestBody CreateFromDiscriminatorVal /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, @@ -107,7 +107,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 403f79bd103..c8b6a0f9632 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new SendActivityNotificationRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.cs index 27cdc2380d4..4618a0bd0f6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/TeamworkRequestBuilder.cs @@ -124,6 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -142,7 +143,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -170,14 +171,14 @@ public RequestInformation ToPatchRequestInformation(UserTeamwork body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.cs index af550a335e3..07aaf4c0a37 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs index 655ea9c00c0..885b13359fc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTaskList.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs index df64e1e4467..150eb03298a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs index 85e96f655b6..e261aa777d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs index 6a67353ffa7..670a35941ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 16b9c168f5f..81f802c7fbd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs index e9ab762a860..8fb20f6404a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs index cd25bd9bbc0..ddc47b48fe1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaGetResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(TodoTask.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs index 73e7614127d..e03c0ab303f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Delta/DeltaRequestBuilder.cs @@ -82,7 +82,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs index 4248f05a1fe..5808b4a4179 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/AttachmentSessionsRequestBuilder.cs @@ -76,7 +76,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs index 9dc90f42754..5142b4cbe7c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs index 1c59d1ec415..5177d87069f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/AttachmentSessionItemRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(AttachmentSession body, Acti UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new AttachmentSessionItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs index f9786e5cce6..7e8075ef1c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/AttachmentSessions/Item/Content/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,14 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs index 6cc15a3038b..ffd8b05cb35 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/AttachmentsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(AttachmentBase body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs index 88997cebd15..e7eb055ab98 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 87bd74d2265..262d33f6f14 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -47,7 +47,7 @@ public static CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IP /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"attachmentInfo", n => { AttachmentInfo = n.GetObjectValue(Microsoft.Graph.Models.AttachmentInfo.CreateFromDiscriminatorValue); } }, }; @@ -56,7 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attachmentInfo", AttachmentInfo); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index dd5a49d4bd4..19d46753fbe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -68,14 +68,14 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new CreateUploadSessionRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs index b2b87f08b53..b7a96fd7626 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/AttachmentBaseItemRequestBuilder.cs @@ -95,6 +95,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -113,7 +114,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs index 134e5823e8b..d703e11248b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Attachments/Item/Value/ContentRequestBuilder.cs @@ -90,6 +90,7 @@ public RequestInformation ToGetRequestInformation(Action @@ -110,13 +111,14 @@ public RequestInformation ToPutRequestInformation(Stream body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs index d64ab825617..2c0f950c745 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(ChecklistItem body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs index b12f7b4e23e..a526d4bc77b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs index 9e3912b55b7..8c1f32fa42c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/Item/ChecklistItemItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(ChecklistItem body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs index 9f9e15f26ef..f2aa5e03150 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs index 3c8e657a6a0..93333be88a3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/ExtensionsRequestBuilder.cs @@ -97,7 +97,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -125,14 +125,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index d84f7dda212..fc9e535270f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -109,6 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -127,7 +128,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -155,14 +156,14 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs index eff6936dcec..5960d0039f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs index 72152c53568..ba29b54eca9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/Item/LinkedResourceItemRequestBuilder.cs @@ -112,6 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -130,7 +131,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -158,14 +159,14 @@ public RequestInformation ToPatchRequestInformation(LinkedResource body, Action< UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new LinkedResourceItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs index 42535f01f43..dde3afa31e9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/LinkedResources/LinkedResourcesRequestBuilder.cs @@ -99,7 +99,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -127,14 +127,14 @@ public RequestInformation ToPostRequestInformation(LinkedResource body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs index fa39da927d1..7ba58d1eb93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/TodoTaskItemRequestBuilder.cs @@ -137,6 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -155,7 +156,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -183,14 +184,14 @@ public RequestInformation ToPatchRequestInformation(TodoTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs index 5ebdc08df07..6de6bbff0f7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/TasksRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(TodoTask body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs index cac1e9f269f..1a282bd5217 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/TodoTaskListItemRequestBuilder.cs @@ -122,6 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -140,7 +141,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -168,14 +169,14 @@ public RequestInformation ToPatchRequestInformation(TodoTaskList body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs index 093bb946ae8..9dc08fefd91 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/ListsRequestBuilder.cs @@ -104,7 +104,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -132,14 +132,14 @@ public RequestInformation ToPostRequestInformation(TodoTaskList body, Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/TodoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/TodoRequestBuilder.cs index 77788da6f93..10301765928 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/TodoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/TodoRequestBuilder.cs @@ -114,6 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -132,7 +133,6 @@ public RequestInformation ToGetRequestInformation(Action @@ -160,14 +161,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Todo UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TodoRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index 4d5f48b9a94..f8eab745fee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 9c3ac6e0e66..f6031785fa9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 52de48164d5..b1a622dba35 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs index 366c6a034df..6734d6f6d84 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index 1644648d5cf..3e28bcb747a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index 564ad751339..2a185a530d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs @@ -62,7 +62,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index b0fdf62e854..d0b29c0f96d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -68,7 +68,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 8fa3e11e8bf..96086475df1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -78,7 +78,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index cc77afd5242..254c74a13f3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs index d2c9bfb45fe..83d964e4e54 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphDirectoryRole/GraphDirectoryRoleRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 3d39a348dd1..627df659423 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs @@ -63,7 +63,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index 672f3404dba..e7cbb695bdb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -92,7 +92,6 @@ public RequestInformation ToGetRequestInformation(Action diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs index c5fd6b8a085..efe15f3c93c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostRequestBody.cs @@ -57,7 +57,7 @@ public static TranslateExchangeIdsPostRequestBody CreateFromDiscriminatorValue(I /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"InputIds", n => { InputIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"SourceIdType", n => { SourceIdType = n.GetEnumValue(); } }, @@ -68,7 +68,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("InputIds", InputIds); writer.WriteEnumValue("SourceIdType", SourceIdType); diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs index 4a2e3ff338c..c16e1c3b59a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsPostResponse.cs @@ -32,7 +32,7 @@ public List Value { /// /// The deserialization information for the current model /// - public new IDictionary> GetFieldDeserializers() { + public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"value", n => { Value = n.GetCollectionOfObjectValues(ConvertIdResult.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -41,7 +41,7 @@ public List Value { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public new void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); diff --git a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs index fe8101c62d5..2d4554c30e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/TranslateExchangeIds/TranslateExchangeIdsRequestBuilder.cs @@ -90,14 +90,14 @@ public RequestInformation ToPostRequestInformation(TranslateExchangeIdsPostReque UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new TranslateExchangeIdsRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index a556b055342..14e76a8bbee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -412,7 +412,7 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic } /// /// Read properties and relationships of the user object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -431,8 +431,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is available in the following national cloud deployments. - /// Find more info here + /// Update the properties of a user object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -484,6 +484,7 @@ public RequestInformation ToDeleteRequestInformation(Action @@ -502,7 +503,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. This API is available in the following national cloud deployments. + /// Update the properties of a user object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -530,14 +531,14 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.User UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UserItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs index ae08216fba1..ca90b646a68 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagPostRequestBody.cs @@ -46,7 +46,7 @@ public static WipeManagedAppRegistrationsByDeviceTagPostRequestBody CreateFromDi /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"deviceTag", n => { DeviceTag = n.GetStringValue(); } }, }; @@ -55,7 +55,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("deviceTag", DeviceTag); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs index a54cd80b94c..47b93f6b1d7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/WipeManagedAppRegistrationsByDeviceTag/WipeManagedAppRegistrationsByDeviceTagRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(WipeManagedAppRegistrationsBy UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new WipeManagedAppRegistrationsByDeviceTagRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index b43e72ab3db..b2afd1dc375 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -62,8 +62,8 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users{?%24top,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the user objects. - /// Find more info here + /// Retrieve a list of user objects. This API is available in the following national cloud deployments. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,8 +82,8 @@ public async Task GetAsync(Action(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This API is available in the following national cloud deployments. - /// Find more info here + /// Create a new user object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the user objects. + /// Retrieve a list of user objects. This API is available in the following national cloud deployments. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This API is available in the following national cloud deployments. + /// Create a new user object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -147,14 +147,14 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.User b UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.Headers.Add("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new UsersRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json;q=1"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// @@ -165,7 +165,7 @@ public UsersRequestBuilder WithUrl(string rawUrl) { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the user objects. + /// Retrieve a list of user objects. This API is available in the following national cloud deployments. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesPostRequestBody.cs index d6c19be372f..a043f2d0dc0 100644 --- a/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -79,7 +79,7 @@ public static ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IPa /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() { + public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"entityType", n => { EntityType = n.GetStringValue(); } }, @@ -91,7 +91,7 @@ public IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("entityType", EntityType); diff --git a/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 0a40ed10c54..58ec0fabffb 100644 --- a/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/ValidateProperties/ValidatePropertiesRequestBuilder.cs @@ -67,13 +67,14 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new ValidatePropertiesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } + requestInfo.Headers.TryAdd("Accept", "application/json, application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index a9df21dfa5a..7068d3de0d2 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "4E9EE5A919527E9DB1F189CE1F96EAE05337CA7210F924E4B2C33F6D366EB0B65761A371ACDA2AE9848823F1F9BBE976B3530B201E1199B0F7746451AF771D23", + "descriptionHash": "7D71C80CC2146174F8D8AB291B6D44A99DD05C3385B4AA3978E6B156539092B308A9941D6AE5C4C9DB1789EC99902436AD99DFBC87654AEBEDD78CA1631072A3", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.8.0", @@ -21,10 +21,10 @@ "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" ], "structuredMimeTypes": [ - "application/json", - "text/plain", - "application/x-www-form-urlencoded", - "multipart/form-data" + "application/json;q=1", + "text/plain;q=0.9", + "application/x-www-form-urlencoded;q=0.2", + "multipart/form-data;q=0.1" ], "includePatterns": [], "excludePatterns": [], diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index fed92b036cd..0a440862cf9 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -5,7 +5,7 @@ © Microsoft Corporation. All rights reserved. Microsoft Graph V1.0 Service Client Library Microsoft - netstandard2.0;netstandard2.1 + netstandard2.0;netstandard2.1;net5.0 latest false Microsoft.Graph @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.31.0 + 5.32.0 @@ -34,7 +34,8 @@ https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/CHANGELOG.md true true README.md - NU5048 + $(NoWarn);NU5048;NETSDK1138 + true bin\Release\Microsoft.Graph.xml @@ -52,6 +53,14 @@ https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/CHANGELOG.md bin\Debug\Microsoft.Graph.xml 1701;1702;1705;1591 + + bin\Release\Microsoft.Graph.xml + 1701;1702;1705;1591 + + + bin\Debug\Microsoft.Graph.xml + 1701;1702;1705;1591 + true